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 : 794305 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 (2982204) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2982204) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421668 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2982204'] with mtr_portfolio_ids : ['23421668'] and first list_photo_ids : [] new path : /proc/794305/ Name: python3 Umask: 0002 State: R (running) Tgid: 794305 Ngid: 0 Pid: 794305 PPid: 794304 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 794305 NSpid: 794305 NSpgid: 792603 NSsid: 792603 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98924 kB VmRSS: 98924 kB RssAnon: 60208 kB RssFile: 38716 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 51 nonvoluntary_ctxt_switches: 145 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '794305', 'Ngid': '0', 'Pid': '794305', 'PPid': '794304', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '794305', 'NSpid': '794305', 'NSpgid': '792603', 'NSsid': '792603', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98924 kB', 'VmRSS': '98924 kB', 'RssAnon': '60208 kB', 'RssFile': '38716 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '51', 'nonvoluntary_ctxt_switches': '145'} ('datou_batch_current', '794305', '1107216', '0', '1107216', '865964', '98924', b'', 'marlene', '2982204') 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 (23421668) 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 (2982204 ) ) 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 (23421668) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361544784, 'portfolio_id': 23421668}, {'photo_id': 1361544548, 'portfolio_id': 23421668}, {'photo_id': 1361544543, 'portfolio_id': 23421668}, {'photo_id': 1361544510, 'portfolio_id': 23421668}, {'photo_id': 1361544504, 'portfolio_id': 23421668}, {'photo_id': 1361544499, 'portfolio_id': 23421668}, {'photo_id': 1361544493, 'portfolio_id': 23421668}, {'photo_id': 1361544468, 'portfolio_id': 23421668}, {'photo_id': 1361544463, 'portfolio_id': 23421668}, {'photo_id': 1361544460, 'portfolio_id': 23421668}, {'photo_id': 1361544456, 'portfolio_id': 23421668}, {'photo_id': 1361544452, 'portfolio_id': 23421668}, {'photo_id': 1361544447, 'portfolio_id': 23421668}, {'photo_id': 1361544400, 'portfolio_id': 23421668}, {'photo_id': 1361544396, 'portfolio_id': 23421668}] map_portfolio_id_photo_id: {23421668: [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396]} ##### 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.01733088493347168 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu May 29 06:03:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23421668) 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 : 23421668 get user id for portfolio 23421668 get sub ptf for main ptf 23421668, type 3726 and hashtags ['Carton_gris', 'papier', 'kraft', 'autre_refus', 'plastique', 'flou', 'environnement', 'cartonnette', 'metal', 'Carton_brun', 'mal_croppe', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23421668 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','kraft','autre_refus','plastique','flou','environnement','cartonnette','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) 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`=23421668 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','kraft','autre_refus','plastique','flou','environnement','cartonnette','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 23421668, 'sub_port_id': 23421686, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627812, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23421668, 'sub_port_id': 23421687, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627813, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'cartonnette': {'main_port_id': 23421668, 'sub_port_id': 23421688, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627814, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'autre_refus': {'main_port_id': 23421668, 'sub_port_id': 23421689, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627815, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'Carton_brun': {'main_port_id': 23421668, 'sub_port_id': 23421690, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627816, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'papier': {'main_port_id': 23421668, 'sub_port_id': 23421691, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627817, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'plastique': {'main_port_id': 23421668, 'sub_port_id': 23421692, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627818, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'mal_croppe': {'main_port_id': 23421668, 'sub_port_id': 23421693, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627819, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'flou': {'main_port_id': 23421668, 'sub_port_id': 23421694, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627820, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'Carton_gris': {'main_port_id': 23421668, 'sub_port_id': 23421695, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627821, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'environnement': {'main_port_id': 23421668, 'sub_port_id': 23421696, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627822, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}, 'metal': {'main_port_id': 23421668, 'sub_port_id': 23421697, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627823, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421686 , 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=23421668 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 (23421686) result : ((1361544798,), (1361544799,), (1361544882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421687 , 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=23421668 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 (23421687) result : ((1361544711,), (1361544789,), (1361544877,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421688 , 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=23421668 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 (23421688) result : ((1361544718,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421689 , 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=23421668 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 (23421689) result : ((1361544713,), (1361544715,), (1361544716,), (1361544717,), (1361544790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421690 , 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=23421668 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 (23421690) result : ((1361544719,), (1361544720,), (1361544721,), (1361544794,), (1361544881,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421691 , 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=23421668 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 (23421691) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421692 , 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=23421668 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 (23421692) result : ((1361544723,), (1361544796,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421693 , 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=23421668 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 (23421693) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421694 , 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=23421668 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 (23421694) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421695 , 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=23421668 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 (23421695) result : ((1361544792,), (1361544879,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421696 , 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=23421668 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 (23421696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23421697 , 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=23421668 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 (23421697) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23421668) result : ((1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,)) 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 (1361544400) and cspi.crop_hashtag_id = chi.id; 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`=23421668 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','kraft','autre_refus','plastique','flou','environnement','cartonnette','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) 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`=23421668 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','kraft','autre_refus','plastique','flou','environnement','cartonnette','metal','Carton_brun','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 23421668, 'sub_port_id': 23421698, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627824, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 23421668, 'sub_port_id': 23421699, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627825, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'cartonnette': {'main_port_id': 23421668, 'sub_port_id': 23421700, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627826, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'autre_refus': {'main_port_id': 23421668, 'sub_port_id': 23421701, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627827, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'Carton_brun': {'main_port_id': 23421668, 'sub_port_id': 23421702, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627828, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'papier': {'main_port_id': 23421668, 'sub_port_id': 23421703, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627829, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'plastique': {'main_port_id': 23421668, 'sub_port_id': 23421704, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627830, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'mal_croppe': {'main_port_id': 23421668, 'sub_port_id': 23421705, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627831, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'flou': {'main_port_id': 23421668, 'sub_port_id': 23421706, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627832, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'Carton_gris': {'main_port_id': 23421668, 'sub_port_id': 23421707, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627833, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'environnement': {'main_port_id': 23421668, 'sub_port_id': 23421708, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627834, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}, 'metal': {'main_port_id': 23421668, 'sub_port_id': 23421709, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15627835, 'last_updated_at': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 18, 16, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 18, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421707,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421708,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23421709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23421697 lien utilise dans velours : https://www.fotonower.com/velours/23421698,23421699,23421700,23421701,23421702,23421703,23421704,23421705,23421706,23421707,23421708,23421709?tags=kraft,Teint_Dans_La_Masse,cartonnette,autre_refus,Carton_brun,papier,plastique,mal_croppe,flou,Carton_gris,environnement,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23421668]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] map_info['map_portfolio_photo'] : {23421668: [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396]} final : False mtd_id 4302 list_pids : [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] Looping around the photos to save general results len do output : 1 /23421668. 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, '2982204') ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204') 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, '23421668', "{'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697}", None, None, None, None, '2982204'), ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204')] time used for this insertion : 0.01740288734436035 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42446374893188477 time spend to save output : 0.017679214477539062 total time spend for step 1 : 0.44214296340942383 step2:final Thu May 29 06:03:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (23421668) 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 23421668 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361544400,1361544396,1361544468,1361544463,1361544460,1361544456,1361544452,1361544447,1361544510,1361544504,1361544499,1361544493,1361544548,1361544543,1361544784); 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([23421668]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} new output for save of step final : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] map_info['map_portfolio_photo'] : {23421668: [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396]} final : False mtd_id 4302 list_pids : [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] Looping around the photos to save general results len do output : 15 /1361544784.Didn't retrieve data . /1361544548.Didn't retrieve data . /1361544543.Didn't retrieve data . /1361544510.Didn't retrieve data . /1361544504.Didn't retrieve data . /1361544499.Didn't retrieve data . /1361544493.Didn't retrieve data . /1361544468.Didn't retrieve data . /1361544463.Didn't retrieve data . /1361544460.Didn't retrieve data . /1361544456.Didn't retrieve data . /1361544452.Didn't retrieve data . /1361544447.Didn't retrieve data . /1361544400.Didn't retrieve data . /1361544396.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, '2982204') ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204') 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', '23421668', '1361544784', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544548', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544543', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544510', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544504', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544499', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544493', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544468', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544463', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544460', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544456', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544452', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544447', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544400', '0.0545037807898262', None, None, None, None, '2982204'), ('4302', '23421668', '1361544396', '0.0545037807898262', None, None, None, None, '2982204')] time used for this insertion : 0.01651906967163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06195569038391113 time spend to save output : 0.017025232315063477 total time spend for step 2 : 0.07898092269897461 step3:velours_tree Thu May 29 06:03:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {23421668: [{'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697}]} input_args_next_step : {23421668: ()} output_args : {23421668: [{'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697}]} args : 23421668 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 : ({'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23421668) 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([23421668]) 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.3210113048553467 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.32105302810668945 step4:send_mail_cod Thu May 29 06:03:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} input_args_next_step : {1361544784: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544784 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544548 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544543 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544510 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544504 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544499 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544493 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544468 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544463 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544460 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544456 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544452 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544447 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544400 depend.output_id : 0 input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ()} output_args : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',)} args : 1361544396 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 : {23421668: [{'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697}]} input_args_next_step : {1361544784: ('0.0545037807898262',), 1361544548: ('0.0545037807898262',), 1361544543: ('0.0545037807898262',), 1361544510: ('0.0545037807898262',), 1361544504: ('0.0545037807898262',), 1361544499: ('0.0545037807898262',), 1361544493: ('0.0545037807898262',), 1361544468: ('0.0545037807898262',), 1361544463: ('0.0545037807898262',), 1361544460: ('0.0545037807898262',), 1361544456: ('0.0545037807898262',), 1361544452: ('0.0545037807898262',), 1361544447: ('0.0545037807898262',), 1361544400: ('0.0545037807898262',), 1361544396: ('0.0545037807898262',), 23421668: ()} output_args : {23421668: [{'kraft': 23421686, 'Teint_Dans_La_Masse': 23421687, 'cartonnette': 23421688, 'autre_refus': 23421689, 'Carton_brun': 23421690, 'papier': 23421691, 'plastique': 23421692, 'mal_croppe': 23421693, 'flou': 23421694, 'Carton_gris': 23421695, 'environnement': 23421696, 'metal': 23421697}]} args : 23421668 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.0545037807898262',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23421668) 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 (1361544784,1361544548,1361544543,1361544510,1361544504,1361544499,1361544493,1361544468,1361544463,1361544460,1361544456,1361544452,1361544447,1361544400,1361544396) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361544396 begin to download photo : 1361544456 begin to download photo : 1361544493 begin to download photo : 1361544543 download finish for photo 1361544493 begin to download photo : 1361544499 download finish for photo 1361544543 begin to download photo : 1361544548 download finish for photo 1361544396 begin to download photo : 1361544400 download finish for photo 1361544456 begin to download photo : 1361544460 download finish for photo 1361544499 begin to download photo : 1361544504 download finish for photo 1361544400 begin to download photo : 1361544447 download finish for photo 1361544460 begin to download photo : 1361544463 download finish for photo 1361544548 begin to download photo : 1361544784 download finish for photo 1361544504 begin to download photo : 1361544510 download finish for photo 1361544463 begin to download photo : 1361544468 download finish for photo 1361544784 download finish for photo 1361544447 begin to download photo : 1361544452 download finish for photo 1361544510 download finish for photo 1361544468 download finish for photo 1361544452 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P23421668_29-05-2025_06_03_59.pdf 23421686 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=23421686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544798: '1748448865_1911132_1361544452_f7730b66ed61f0f55bc3ae24faec119a_rle_crop_3814876768_0.png', 1361544799: '1748448865_1911132_1361544447_97a31e49609bfd0fc8a8328378f07908_rle_crop_3814876780_0.png', 1361544882: '1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877109_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/426280a1cf15d232d949143be2e2c354_35455451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/9336b059a70b0905d586d5abcb8b788b_72657232.png change filename to text .imagette234216861748491439/ imagette234216861748491439/1748448865_1911132_1361544452_f7730b66ed61f0f55bc3ae24faec119a_rle_crop_3814876768_0.png.png imagette234216861748491439/1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877109_0.png.png imagette234216861748491439/1748448865_1911132_1361544447_97a31e49609bfd0fc8a8328378f07908_rle_crop_3814876780_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/8e725f8af131f2701e8c61c02488c002_94768267.png imagette234216861748491439 23421688 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=23421688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544718: '1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876414_0.png'} change filename to text .imagette234216881748491439/ imagette234216881748491439/1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876414_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/c57d0376e10c72e186ea2bd89247a7f5_27434294.png imagette234216881748491439 23421689 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=23421689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544713: '1748448746_1908408_1361544504_1fd211097e0491a424c81da5cd4c4220_rle_crop_3814876433_0.png', 1361544715: '1748448746_1908408_1361544499_493b62c893a3eb08dca6f1104b89d5eb_rle_crop_3814876446_0.png', 1361544716: '1748448746_1908408_1361544499_493b62c893a3eb08dca6f1104b89d5eb_rle_crop_3814876456_0.png', 1361544717: '1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876463_0.png', 1361544790: '1748448865_1911132_1361544460_35482eecf72202279e04b80e6d3f3d13_rle_crop_3814876746_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/5e7d7d55361dbdc7ea1ef5653ed932ec_63106032.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/cb011b6661c8934c48a862e4ad15539b_89176318.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/de6e745f3c76a35058ccaed90aa1d4fe_95822840.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/6e1e079240531251a4a3624316c87c96_67522627.png change filename to text .imagette234216891748491440/ imagette234216891748491440/1748448746_1908408_1361544499_493b62c893a3eb08dca6f1104b89d5eb_rle_crop_3814876456_0.png.png imagette234216891748491440/1748448746_1908408_1361544499_493b62c893a3eb08dca6f1104b89d5eb_rle_crop_3814876446_0.png.png imagette234216891748491440/1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876463_0.png.png imagette234216891748491440/1748448746_1908408_1361544504_1fd211097e0491a424c81da5cd4c4220_rle_crop_3814876433_0.png.png imagette234216891748491440/1748448865_1911132_1361544460_35482eecf72202279e04b80e6d3f3d13_rle_crop_3814876746_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/3d931178c48d6a9265b0f82dd5222c39_31275768.png imagette234216891748491440 23421692 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=23421692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544723: '1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876469_0.png', 1361544796: '1748448865_1911132_1361544452_f7730b66ed61f0f55bc3ae24faec119a_rle_crop_3814876771_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/3536fa7e6da483246cb01a64d60b8a31_91311269.png change filename to text .imagette234216921748491440/ imagette234216921748491440/1748448865_1911132_1361544452_f7730b66ed61f0f55bc3ae24faec119a_rle_crop_3814876771_0.png.png imagette234216921748491440/1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876469_0.png.png imagette234216931748491440/ imagette234216941748491440/ imagette234216971748491440/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/00cb1fc3706e8aafc06383ffb04b900b_71757094.png imagette234216921748491440 23421693 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=23421693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234216931748491440 23421694 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=23421694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234216941748491440 23421697 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=23421697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234216971748491440 23421687 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=23421687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544711: '1748448746_1908408_1361544504_1fd211097e0491a424c81da5cd4c4220_rle_crop_3814876437_0.png', 1361544789: '1748448865_1911132_1361544460_35482eecf72202279e04b80e6d3f3d13_rle_crop_3814876749_0.png', 1361544877: '1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877112_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/9c222ce82d74fc8cb73b53e9064ecf2a_59977498.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/69cc40465bb6cca557dd619c3d16eb4e_56128841.png change filename to text .imagette234216871748491440/ imagette234216871748491440/1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877112_0.png.png imagette234216871748491440/1748448746_1908408_1361544504_1fd211097e0491a424c81da5cd4c4220_rle_crop_3814876437_0.png.png imagette234216871748491440/1748448865_1911132_1361544460_35482eecf72202279e04b80e6d3f3d13_rle_crop_3814876749_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/e42b44d92b546b8fc78f097e3994eb41_67594726.png imagette234216871748491440 23421690 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=23421690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544719: '1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876427_0.png', 1361544720: '1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876418_0.png', 1361544721: '1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876464_0.png', 1361544794: '1748448865_1911132_1361544447_97a31e49609bfd0fc8a8328378f07908_rle_crop_3814876782_0.png', 1361544881: '1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877121_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/7dedcc524e3075abebfd2c66293bd603_61523964.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/331054f12bf8905c58bfa211abf32adc_72108182.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/799d86f9fb96b61550d7a1dd54c8abfc_75716168.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/6b43acaaf6cc8456842df5d1ae4a9a70_6397619.png change filename to text .imagette234216901748491441/ imagette234216901748491441/1748448865_1911132_1361544447_97a31e49609bfd0fc8a8328378f07908_rle_crop_3814876782_0.png.png imagette234216901748491441/1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876427_0.png.png imagette234216901748491441/1748448746_1908408_1361544493_8f87c33ff5becd7aaf5605a3a75866f6_rle_crop_3814876464_0.png.png imagette234216901748491441/1748448746_1908408_1361544548_39d83b6d5bea29df8ebb84bccd6012ce_rle_crop_3814876418_0.png.png imagette234216901748491441/1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877121_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/424a134f04aa02962809f2505eeedbe4_65741528.png imagette234216901748491441 23421695 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=23421695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361544792: '1748448865_1911132_1361544456_75e8e9a706d57e2ba0090c38b066489b_rle_crop_3814876754_0.png', 1361544879: '1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877116_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/53fbad398c57fd679b289febd4559776_46831839.png change filename to text .imagette234216951748491441/ imagette234216951748491441/1748448865_1911132_1361544456_75e8e9a706d57e2ba0090c38b066489b_rle_crop_3814876754_0.png.png imagette234216951748491441/1748448987_1914247_1361544543_d991c21782089206c77b13da6285bfcf_rle_crop_3814877116_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/a70b269d38ecbd287d7c7b301a4f88b4_88783436.png imagette234216951748491441 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23421668 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23421698,23421699,23421700,23421701,23421702,23421703,23421704,23421705,23421706,23421707,23421708,23421709?tags=kraft,Teint_Dans_La_Masse,cartonnette,autre_refus,Carton_brun,papier,plastique,mal_croppe,flou,Carton_gris,environnement,metal your option no_mail is active, we will not send the real mail to your client args[1361544784] : ('0.0545037807898262',) no score found for photo 1361544784 We are sending mail with results at report@fotonower.com args[1361544548] : ('0.0545037807898262',) no score found for photo 1361544548 We are sending mail with results at report@fotonower.com args[1361544543] : ('0.0545037807898262',) no score found for photo 1361544543 We are sending mail with results at report@fotonower.com args[1361544510] : ('0.0545037807898262',) no score found for photo 1361544510 We are sending mail with results at report@fotonower.com args[1361544504] : ('0.0545037807898262',) no score found for photo 1361544504 We are sending mail with results at report@fotonower.com args[1361544499] : ('0.0545037807898262',) no score found for photo 1361544499 We are sending mail with results at report@fotonower.com args[1361544493] : ('0.0545037807898262',) no score found for photo 1361544493 We are sending mail with results at report@fotonower.com args[1361544468] : ('0.0545037807898262',) no score found for photo 1361544468 We are sending mail with results at report@fotonower.com args[1361544463] : ('0.0545037807898262',) no score found for photo 1361544463 We are sending mail with results at report@fotonower.com args[1361544460] : ('0.0545037807898262',) no score found for photo 1361544460 We are sending mail with results at report@fotonower.com args[1361544456] : ('0.0545037807898262',) no score found for photo 1361544456 We are sending mail with results at report@fotonower.com args[1361544452] : ('0.0545037807898262',) no score found for photo 1361544452 We are sending mail with results at report@fotonower.com args[1361544447] : ('0.0545037807898262',) no score found for photo 1361544447 We are sending mail with results at report@fotonower.com args[1361544400] : ('0.0545037807898262',) no score found for photo 1361544400 We are sending mail with results at report@fotonower.com args[1361544396] : ('0.0545037807898262',) no score found for photo 1361544396 We are sending mail with results at report@fotonower.com refus_total : 0.0545037807898262 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=23421668 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_P23421668_29-05-2025_06_03_59.pdf results_Auto_P23421668_29-05-2025_06_03_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_29-05-2025_06_03_59.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','23421668','results_Auto_P23421668_29-05-2025_06_03_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_29-05-2025_06_03_59.pdf','pdf','','0.19','0.0545037807898262') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23421668]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] map_info['map_portfolio_photo'] : {23421668: [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396]} final : False mtd_id 4302 list_pids : [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] 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, '2982204') ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204') 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', '23421668', '1361544784', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204')] time used for this insertion : 0.14057159423828125 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.980730772018433 time spend to save output : 0.14097070693969727 total time spend for step 4 : 5.12170147895813 step5:split_time_score Thu May 29 06:04:04 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 : ['23421668'] 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 : [('23421668',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23421668) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361544543: {'path': 'temp/1748491438_794305_1361544543_d991c21782089206c77b13da6285bfcf.jpg', 'extension': 'jpg'}, 1361544548: {'path': 'temp/1748491438_794305_1361544548_39d83b6d5bea29df8ebb84bccd6012ce.jpg', 'extension': 'jpg'}, 1361544784: {'path': 'temp/1748491438_794305_1361544784_b9ce8b810b0864e3d5f670a8a73a7a21.jpg', 'extension': 'jpg'}, 1361544493: {'path': 'temp/1748491438_794305_1361544493_8f87c33ff5becd7aaf5605a3a75866f6.jpg', 'extension': 'jpg'}, 1361544499: {'path': 'temp/1748491438_794305_1361544499_493b62c893a3eb08dca6f1104b89d5eb.jpg', 'extension': 'jpg'}, 1361544504: {'path': 'temp/1748491438_794305_1361544504_1fd211097e0491a424c81da5cd4c4220.jpg', 'extension': 'jpg'}, 1361544510: {'path': 'temp/1748491438_794305_1361544510_6f710edff05570780e496cf94d2827e0.jpg', 'extension': 'jpg'}, 1361544456: {'path': 'temp/1748491438_794305_1361544456_75e8e9a706d57e2ba0090c38b066489b.jpg', 'extension': 'jpg'}, 1361544460: {'path': 'temp/1748491438_794305_1361544460_35482eecf72202279e04b80e6d3f3d13.jpg', 'extension': 'jpg'}, 1361544463: {'path': 'temp/1748491438_794305_1361544463_a6695dba5973168fe45100f17e13997b.jpg', 'extension': 'jpg'}, 1361544468: {'path': 'temp/1748491438_794305_1361544468_0c71756afe17a079632151e665c701db.jpg', 'extension': 'jpg'}, 1361544396: {'path': 'temp/1748491438_794305_1361544396_c719f5c4764f8c81b7d17ab5a82751fa.jpg', 'extension': 'jpg'}, 1361544400: {'path': 'temp/1748491438_794305_1361544400_49e708d951dc6d86983cf4d394150dc0.jpg', 'extension': 'jpg'}, 1361544447: {'path': 'temp/1748491438_794305_1361544447_97a31e49609bfd0fc8a8328378f07908.jpg', 'extension': 'jpg'}, 1361544452: {'path': 'temp/1748491438_794305_1361544452_f7730b66ed61f0f55bc3ae24faec119a.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 = 23421668; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 23421668 group by h (('17', 15),) 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=23421668 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 (23421668) 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 (23421668) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28052025 23421668 Nombre de photos uploadées : 15 / 23040 (0%) 28052025 23421668 Nombre de photos taguées (types de déchets): 0 / 15 (0%) 28052025 23421668 Nombre de photos taguées (volume) : 0 / 15 (0%) [{'photo_id': 1361544400, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/49e708d951dc6d86983cf4d394150dc0.jpg', 'username': None, 'uploaded_at': 1748448345, 'text': 'image_28052025_17_38_44_10136.jpg'}, {'photo_id': 1361544396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/c719f5c4764f8c81b7d17ab5a82751fa.jpg', 'username': None, 'uploaded_at': 1748448345, 'text': 'image_28052025_17_40_13_009126m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361544468, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/0c71756afe17a079632151e665c701db.jpg', 'username': None, 'uploaded_at': 1748448406, 'text': 'image_28052025_17_40_54_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361544463, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/a6695dba5973168fe45100f17e13997b.jpg', 'username': None, 'uploaded_at': 1748448406, 'text': 'image_28052025_17_41_04_010164m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ??????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001336812973022461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23421668, '2025-05-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1841518,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027723312377929688 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= 1841518 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23397772, 'dashboard_result_id': 11026782, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_29-05-2025_05_34_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23398051, 'dashboard_result_id': 11026783, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_29-05-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23398303, 'dashboard_result_id': 11026784, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_29-05-2025_05_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23399179, 'dashboard_result_id': 11026785, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_29-05-2025_05_35_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23399344, 'dashboard_result_id': 11026786, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_29-05-2025_05_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23399686, 'dashboard_result_id': 11026787, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_29-05-2025_05_36_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23400106, 'dashboard_result_id': 11026788, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_29-05-2025_05_37_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23400427, 'dashboard_result_id': 11026789, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_29-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23400761, 'dashboard_result_id': 11026790, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_29-05-2025_05_38_16.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23401154, 'dashboard_result_id': 11026791, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_29-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23401510, 'dashboard_result_id': 11026792, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_29-05-2025_05_39_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23401873, 'dashboard_result_id': 11026793, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_29-05-2025_05_39_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23402106, 'dashboard_result_id': 11026794, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_29-05-2025_05_40_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23402440, 'dashboard_result_id': 11026795, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_29-05-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23402734, 'dashboard_result_id': 11026796, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_29-05-2025_05_41_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23403490, 'dashboard_result_id': 11026797, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_29-05-2025_05_41_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23403648, 'dashboard_result_id': 11026798, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_29-05-2025_05_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23403911, 'dashboard_result_id': 11026799, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_29-05-2025_05_42_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23404230, 'dashboard_result_id': 11026800, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_29-05-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23404712, 'dashboard_result_id': 11026801, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_29-05-2025_05_44_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23405129, 'dashboard_result_id': 11026802, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_29-05-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23405492, 'dashboard_result_id': 11026803, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_29-05-2025_05_45_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23405806, 'dashboard_result_id': 11026804, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_29-05-2025_05_45_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23406291, 'dashboard_result_id': 11026805, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_29-05-2025_05_46_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23406782, 'dashboard_result_id': 11026806, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_29-05-2025_05_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23407058, 'dashboard_result_id': 11026807, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_29-05-2025_05_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23407390, 'dashboard_result_id': 11026808, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_29-05-2025_05_47_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23407757, 'dashboard_result_id': 11026809, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_29-05-2025_05_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23408183, 'dashboard_result_id': 11026810, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_29-05-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23408565, 'dashboard_result_id': 11026811, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_29-05-2025_05_49_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23408918, 'dashboard_result_id': 11026812, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_29-05-2025_05_50_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23409657, 'dashboard_result_id': 11026813, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_29-05-2025_05_50_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23410368, 'dashboard_result_id': 11026814, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_29-05-2025_05_51_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23411041, 'dashboard_result_id': 11026815, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_29-05-2025_05_51_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23411222, 'dashboard_result_id': 11026816, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_29-05-2025_05_52_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23411634, 'dashboard_result_id': 11026817, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411634_29-05-2025_05_52_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411660, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23411947, 'dashboard_result_id': 11026818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_29-05-2025_05_53_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23412231, 'dashboard_result_id': 11026819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_29-05-2025_05_53_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23412706, 'dashboard_result_id': 11026820, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412706_29-05-2025_05_54_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412769, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23413181, 'dashboard_result_id': 11026821, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413181_29-05-2025_05_54_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413196, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23413509, 'dashboard_result_id': 11026822, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413509_29-05-2025_05_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413558, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23413927, 'dashboard_result_id': 11026823, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413927_29-05-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413963, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23415509, 'dashboard_result_id': 11026824, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415509_29-05-2025_05_55_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415546, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23415614, 'dashboard_result_id': 11026825, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415614_29-05-2025_05_56_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415650, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23416210, 'dashboard_result_id': 11026826, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416210_29-05-2025_05_57_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23416262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416273, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23416630, 'dashboard_result_id': 11026827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416630_29-05-2025_05_57_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23416686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416690, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23417059, 'dashboard_result_id': 11026828, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417059_29-05-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417078, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23417365, 'dashboard_result_id': 11026829, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417365_29-05-2025_05_58_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417384, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23417708, 'dashboard_result_id': 11026830, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417708_29-05-2025_05_59_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417732, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23417977, 'dashboard_result_id': 11026831, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417977_29-05-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417989, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23418390, 'dashboard_result_id': 11026832, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418390_29-05-2025_06_00_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23418397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418408, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23418851, 'dashboard_result_id': 11026833, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418851_29-05-2025_06_00_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23418875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418880, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23419247, 'dashboard_result_id': 11026834, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419247_29-05-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419269, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23419604, 'dashboard_result_id': 11026835, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419604_29-05-2025_06_01_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419649, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23420019, 'dashboard_result_id': 11026836, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420019_29-05-2025_06_02_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420036, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23420326, 'dashboard_result_id': 11026837, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420326_29-05-2025_06_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420371, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23420654, 'dashboard_result_id': 11026838, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420654_29-05-2025_06_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23420702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420703, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23421006, 'dashboard_result_id': 11026839, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421006_29-05-2025_06_03_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421025, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23421668, 'dashboard_result_id': 11026840, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_28-05-2025_18_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421697, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23421795, 'dashboard_result_id': 11026841, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421795_28-05-2025_18_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23421820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421831, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23421957, 'dashboard_result_id': 11026842, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421957_28-05-2025_18_43_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422006, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23422300, 'dashboard_result_id': 11026843, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422300_28-05-2025_19_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23422333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422336, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23422770, 'dashboard_result_id': 11026844, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422770_28-05-2025_19_13_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23422778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422789, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23422994, 'dashboard_result_id': 11026845, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422994_28-05-2025_19_26_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423012, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23423248, 'dashboard_result_id': 11026846, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423248_28-05-2025_19_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423262, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23423625, 'dashboard_result_id': 11026847, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423625_28-05-2025_19_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23423641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423656, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23423891, 'dashboard_result_id': 11026848, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423891_28-05-2025_20_13_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423903, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23424282, 'dashboard_result_id': 11026849, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424282_28-05-2025_20_26_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23424293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424298, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23424761, 'dashboard_result_id': 11026850, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424761_28-05-2025_22_24_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23424786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424797, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23425537, 'dashboard_result_id': 11026851, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425537_28-05-2025_21_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425549, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23425614, 'dashboard_result_id': 11026852, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425614_28-05-2025_21_27_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23425640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425651, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23425878, 'dashboard_result_id': 11026853, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425878_28-05-2025_21_42_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23425881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425892, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23426331, 'dashboard_result_id': 11026854, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426331_28-05-2025_21_57_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426372, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23426903, 'dashboard_result_id': 11026855, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426903_28-05-2025_22_13_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426915, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23427481, 'dashboard_result_id': 11026856, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427481_28-05-2025_22_26_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23427532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23427533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23427534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23427535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23427536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23427537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23427538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23427539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23427540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23427541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23427542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23427543, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23427999, 'dashboard_result_id': 11026857, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427999_28-05-2025_22_56_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428036, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23428568, 'dashboard_result_id': 11026858, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428568_28-05-2025_23_11_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23428569, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428580, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23428761, 'dashboard_result_id': 11026859, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428761_28-05-2025_23_27_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428793, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23429050, 'dashboard_result_id': 11026860, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429050_28-05-2025_23_41_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429066, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23429379, 'dashboard_result_id': 11026861, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429379_28-05-2025_23_56_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429417, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23429676, 'dashboard_result_id': 11026862, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429676_29-05-2025_00_12_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23429701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429712, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1852764, 'mtr_portfolio_id': 23430028, 'dashboard_result_id': 11026863, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430028_29-05-2025_01_25_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430053, '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 = 23397772 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982146, 'mtr_portfolio_id': 23397772, 'created_at': datetime.datetime(2025, 5, 29, 5, 34, 32), 'result': '0.06446729513318857', 'result_long': None, 'result_double': None}] Qualite : 0.06446729513318857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23397772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_29-05-2025_05_34_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23397772 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_29-05-2025_05_34_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}" where mtr_portfolio_id = 23397772 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23397772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026782, 0.06446729513318857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_29-05-2025_05_34_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23398051 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982147, 'mtr_portfolio_id': 23398051, 'created_at': datetime.datetime(2025, 5, 29, 5, 34, 29), 'result': '0.04410996982505767', 'result_long': None, 'result_double': None}] Qualite : 0.04410996982505767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_29-05-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398051 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_29-05-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}" where mtr_portfolio_id = 23398051 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23398051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026783, 0.04410996982505767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_29-05-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23398303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982148, 'mtr_portfolio_id': 23398303, 'created_at': datetime.datetime(2025, 5, 29, 5, 34, 57), 'result': '0.046167851128557896', 'result_long': None, 'result_double': None}] Qualite : 0.046167851128557896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_29-05-2025_05_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_29-05-2025_05_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}" where mtr_portfolio_id = 23398303 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23398303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026784, 0.046167851128557896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_29-05-2025_05_34_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23399179 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982149, 'mtr_portfolio_id': 23399179, 'created_at': datetime.datetime(2025, 5, 29, 5, 35, 32), 'result': '0.04962887737365328', 'result_long': None, 'result_double': None}] Qualite : 0.04962887737365328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_29-05-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399179 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_29-05-2025_05_35_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}" where mtr_portfolio_id = 23399179 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23399179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026785, 0.04962887737365328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_29-05-2025_05_35_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23399344 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982150, 'mtr_portfolio_id': 23399344, 'created_at': datetime.datetime(2025, 5, 29, 5, 35, 59), 'result': '0.039297003774858966', 'result_long': None, 'result_double': None}] Qualite : 0.039297003774858966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_29-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399344 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_29-05-2025_05_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}" where mtr_portfolio_id = 23399344 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23399344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026786, 0.039297003774858966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_29-05-2025_05_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23399686 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982151, 'mtr_portfolio_id': 23399686, 'created_at': datetime.datetime(2025, 5, 29, 5, 36, 29), 'result': '0.057971602056583645', 'result_long': None, 'result_double': None}] Qualite : 0.057971602056583645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_29-05-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399686 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_29-05-2025_05_36_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}" where mtr_portfolio_id = 23399686 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23399686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026787, 0.057971602056583645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_29-05-2025_05_36_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23400106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982152, 'mtr_portfolio_id': 23400106, 'created_at': datetime.datetime(2025, 5, 29, 5, 37, 1), 'result': '0.040960003672391186', 'result_long': None, 'result_double': None}] Qualite : 0.040960003672391186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_29-05-2025_05_37_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_29-05-2025_05_37_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}" where mtr_portfolio_id = 23400106 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23400106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026788, 0.040960003672391186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_29-05-2025_05_37_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23400427 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982153, 'mtr_portfolio_id': 23400427, 'created_at': datetime.datetime(2025, 5, 29, 5, 37, 28), 'result': '0.03527445439329575', 'result_long': None, 'result_double': None}] Qualite : 0.03527445439329575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_29-05-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400427 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_29-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, 'pht': 3726}}" where mtr_portfolio_id = 23400427 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23400427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026789, 0.03527445439329575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_29-05-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23400761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982154, 'mtr_portfolio_id': 23400761, 'created_at': datetime.datetime(2025, 5, 29, 5, 38), 'result': '0.04834556117046673', 'result_long': None, 'result_double': None}] Qualite : 0.04834556117046673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_29-05-2025_05_38_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_29-05-2025_05_38_16.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}" where mtr_portfolio_id = 23400761 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23400761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026790, 0.04834556117046673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_29-05-2025_05_38_16.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23401154 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982155, 'mtr_portfolio_id': 23401154, 'created_at': datetime.datetime(2025, 5, 29, 5, 38, 30), 'result': '0.05209534912863307', 'result_long': None, 'result_double': None}] Qualite : 0.05209534912863307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_29-05-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401154 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_29-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}" where mtr_portfolio_id = 23401154 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026791, 0.05209534912863307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_29-05-2025_05_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23401510 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982156, 'mtr_portfolio_id': 23401510, 'created_at': datetime.datetime(2025, 5, 29, 5, 39, 1), 'result': '0.05398372108806439', 'result_long': None, 'result_double': None}] Qualite : 0.05398372108806439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_29-05-2025_05_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401510 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_29-05-2025_05_39_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, 'pht': 3726}}" where mtr_portfolio_id = 23401510 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026792, 0.05398372108806439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_29-05-2025_05_39_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23401873 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982157, 'mtr_portfolio_id': 23401873, 'created_at': datetime.datetime(2025, 5, 29, 5, 39, 28), 'result': '0.04021070389351016', 'result_long': None, 'result_double': None}] Qualite : 0.04021070389351016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_29-05-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401873 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_29-05-2025_05_39_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, 'pht': 3726}}" where mtr_portfolio_id = 23401873 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026793, 0.04021070389351016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_29-05-2025_05_39_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23402106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982158, 'mtr_portfolio_id': 23402106, 'created_at': datetime.datetime(2025, 5, 29, 5, 39, 59), 'result': '0.054699005347992234', 'result_long': None, 'result_double': None}] Qualite : 0.054699005347992234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_29-05-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_29-05-2025_05_40_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, 'pht': 3726}}" where mtr_portfolio_id = 23402106 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23402106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026794, 0.054699005347992234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_29-05-2025_05_40_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23402440 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982159, 'mtr_portfolio_id': 23402440, 'created_at': datetime.datetime(2025, 5, 29, 5, 40, 31), 'result': '0.07668254743586937', 'result_long': None, 'result_double': None}] Qualite : 0.07668254743586937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_29-05-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402440 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_29-05-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, 'pht': 3726}}" where mtr_portfolio_id = 23402440 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23402440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026795, 0.07668254743586937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_29-05-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23402734 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982160, 'mtr_portfolio_id': 23402734, 'created_at': datetime.datetime(2025, 5, 29, 5, 41), 'result': '0.09731431259366337', 'result_long': None, 'result_double': None}] Qualite : 0.09731431259366337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_29-05-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402734 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_29-05-2025_05_41_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, 'pht': 3726}}" where mtr_portfolio_id = 23402734 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23402734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026796, 0.09731431259366337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_29-05-2025_05_41_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23403490 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982161, 'mtr_portfolio_id': 23403490, 'created_at': datetime.datetime(2025, 5, 29, 5, 41, 28), 'result': '0.047276243456989483', 'result_long': None, 'result_double': None}] Qualite : 0.047276243456989483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_29-05-2025_05_41_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403490 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_29-05-2025_05_41_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, 'pht': 3726}}" where mtr_portfolio_id = 23403490 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23403490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026797, 0.047276243456989483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_29-05-2025_05_41_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23403648 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982162, 'mtr_portfolio_id': 23403648, 'created_at': datetime.datetime(2025, 5, 29, 5, 41, 57), 'result': '0.051955341019003655', 'result_long': None, 'result_double': None}] Qualite : 0.051955341019003655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_29-05-2025_05_41_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403648 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_29-05-2025_05_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, 'pht': 3726}}" where mtr_portfolio_id = 23403648 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23403648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026798, 0.051955341019003655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_29-05-2025_05_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23403911 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982163, 'mtr_portfolio_id': 23403911, 'created_at': datetime.datetime(2025, 5, 29, 5, 42, 31), 'result': '0.06022705605938085', 'result_long': None, 'result_double': None}] Qualite : 0.06022705605938085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_29-05-2025_05_42_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403911 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_29-05-2025_05_42_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, 'pht': 3726}}" where mtr_portfolio_id = 23403911 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23403911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026799, 0.06022705605938085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_29-05-2025_05_42_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23404230 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982164, 'mtr_portfolio_id': 23404230, 'created_at': datetime.datetime(2025, 5, 29, 5, 43), 'result': '0.05097279130524394', 'result_long': None, 'result_double': None}] Qualite : 0.05097279130524394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23404230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_29-05-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23404230 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_29-05-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, 'pht': 3726}}" where mtr_portfolio_id = 23404230 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23404230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026800, 0.05097279130524394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_29-05-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23404712 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982165, 'mtr_portfolio_id': 23404712, 'created_at': datetime.datetime(2025, 5, 29, 5, 44), 'result': '0.03663775467744422', 'result_long': None, 'result_double': None}] Qualite : 0.03663775467744422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23404712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_29-05-2025_05_44_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23404712 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_29-05-2025_05_44_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, 'pht': 3726}}" where mtr_portfolio_id = 23404712 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23404712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026801, 0.03663775467744422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_29-05-2025_05_44_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23405129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982166, 'mtr_portfolio_id': 23405129, 'created_at': datetime.datetime(2025, 5, 29, 5, 44, 29), 'result': '0.0399876416811311', 'result_long': None, 'result_double': None}] Qualite : 0.0399876416811311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_29-05-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_29-05-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}" where mtr_portfolio_id = 23405129 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23405129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026802, 0.0399876416811311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_29-05-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23405492 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982167, 'mtr_portfolio_id': 23405492, 'created_at': datetime.datetime(2025, 5, 29, 5, 44, 57), 'result': '0.04406196739968658', 'result_long': None, 'result_double': None}] Qualite : 0.04406196739968658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_29-05-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405492 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_29-05-2025_05_45_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}" where mtr_portfolio_id = 23405492 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23405492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026803, 0.04406196739968658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_29-05-2025_05_45_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23405806 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982168, 'mtr_portfolio_id': 23405806, 'created_at': datetime.datetime(2025, 5, 29, 5, 45, 31), 'result': '0.06708666312804809', 'result_long': None, 'result_double': None}] Qualite : 0.06708666312804809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_29-05-2025_05_45_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405806 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_29-05-2025_05_45_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, 'pht': 3726}}" where mtr_portfolio_id = 23405806 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23405806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026804, 0.06708666312804809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_29-05-2025_05_45_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23406291 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982169, 'mtr_portfolio_id': 23406291, 'created_at': datetime.datetime(2025, 5, 29, 5, 45, 58), 'result': '0.05929269609771722', 'result_long': None, 'result_double': None}] Qualite : 0.05929269609771722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23406291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_29-05-2025_05_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23406291 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_29-05-2025_05_46_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, 'pht': 3726}}" where mtr_portfolio_id = 23406291 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23406291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026805, 0.05929269609771722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_29-05-2025_05_46_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23406782 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982170, 'mtr_portfolio_id': 23406782, 'created_at': datetime.datetime(2025, 5, 29, 5, 46, 29), 'result': '0.0489788193659915', 'result_long': None, 'result_double': None}] Qualite : 0.0489788193659915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23406782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_29-05-2025_05_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23406782 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_29-05-2025_05_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, 'pht': 3726}}" where mtr_portfolio_id = 23406782 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23406782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026806, 0.0489788193659915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_29-05-2025_05_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23407058 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982171, 'mtr_portfolio_id': 23407058, 'created_at': datetime.datetime(2025, 5, 29, 5, 46, 58), 'result': '0.05797450955724542', 'result_long': None, 'result_double': None}] Qualite : 0.05797450955724542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_29-05-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407058 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_29-05-2025_05_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, 'pht': 3726}}" where mtr_portfolio_id = 23407058 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23407058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026807, 0.05797450955724542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_29-05-2025_05_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23407390 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982172, 'mtr_portfolio_id': 23407390, 'created_at': datetime.datetime(2025, 5, 29, 5, 47, 30), 'result': '0.040121266727264626', 'result_long': None, 'result_double': None}] Qualite : 0.040121266727264626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_29-05-2025_05_47_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_29-05-2025_05_47_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, 'pht': 3726}}" where mtr_portfolio_id = 23407390 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23407390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026808, 0.040121266727264626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_29-05-2025_05_47_43.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23407757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982173, 'mtr_portfolio_id': 23407757, 'created_at': datetime.datetime(2025, 5, 29, 5, 47, 57), 'result': '0.029008284827367545', 'result_long': None, 'result_double': None}] Qualite : 0.029008284827367545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_29-05-2025_05_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_29-05-2025_05_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, 'pht': 3726}}" where mtr_portfolio_id = 23407757 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23407757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026809, 0.029008284827367545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_29-05-2025_05_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23408183 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982174, 'mtr_portfolio_id': 23408183, 'created_at': datetime.datetime(2025, 5, 29, 5, 48, 30), 'result': '0.07927348511599194', 'result_long': None, 'result_double': None}] Qualite : 0.07927348511599194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_29-05-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408183 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_29-05-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, 'pht': 3726}}" where mtr_portfolio_id = 23408183 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23408183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026810, 0.07927348511599194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_29-05-2025_05_48_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23408565 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982175, 'mtr_portfolio_id': 23408565, 'created_at': datetime.datetime(2025, 5, 29, 5, 49), 'result': '0.05417578488416244', 'result_long': None, 'result_double': None}] Qualite : 0.05417578488416244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_29-05-2025_05_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408565 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_29-05-2025_05_49_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, 'pht': 3726}}" where mtr_portfolio_id = 23408565 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23408565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026811, 0.05417578488416244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_29-05-2025_05_49_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23408918 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982176, 'mtr_portfolio_id': 23408918, 'created_at': datetime.datetime(2025, 5, 29, 5, 49, 58), 'result': '0.05169601671952409', 'result_long': None, 'result_double': None}] Qualite : 0.05169601671952409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_29-05-2025_05_50_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408918 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_29-05-2025_05_50_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, 'pht': 3726}}" where mtr_portfolio_id = 23408918 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23408918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026812, 0.05169601671952409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_29-05-2025_05_50_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23409657 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982177, 'mtr_portfolio_id': 23409657, 'created_at': datetime.datetime(2025, 5, 29, 5, 50, 30), 'result': '0.03510958973830518', 'result_long': None, 'result_double': None}] Qualite : 0.03510958973830518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23409657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_29-05-2025_05_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23409657 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_29-05-2025_05_50_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, 'pht': 3726}}" where mtr_portfolio_id = 23409657 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23409657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026813, 0.03510958973830518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_29-05-2025_05_50_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23410368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982178, 'mtr_portfolio_id': 23410368, 'created_at': datetime.datetime(2025, 5, 29, 5, 50, 58), 'result': '0.05992175238925569', 'result_long': None, 'result_double': None}] Qualite : 0.05992175238925569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23410368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_29-05-2025_05_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23410368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_29-05-2025_05_51_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, 'pht': 3726}}" where mtr_portfolio_id = 23410368 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23410368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026814, 0.05992175238925569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_29-05-2025_05_51_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23411041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982179, 'mtr_portfolio_id': 23411041, 'created_at': datetime.datetime(2025, 5, 29, 5, 51, 31), 'result': '0.03982048580367304', 'result_long': None, 'result_double': None}] Qualite : 0.03982048580367304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_29-05-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_29-05-2025_05_51_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, 'pht': 3726}}" where mtr_portfolio_id = 23411041 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23411041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026815, 0.03982048580367304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_29-05-2025_05_51_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23411222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982180, 'mtr_portfolio_id': 23411222, 'created_at': datetime.datetime(2025, 5, 29, 5, 51, 58), 'result': '0.035040148277756984', 'result_long': None, 'result_double': None}] Qualite : 0.035040148277756984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_29-05-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_29-05-2025_05_52_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, 'pht': 3726}}" where mtr_portfolio_id = 23411222 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23411222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026816, 0.035040148277756984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_29-05-2025_05_52_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23411634 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982181, 'mtr_portfolio_id': 23411634, 'created_at': datetime.datetime(2025, 5, 29, 5, 52, 31), 'result': '0.06010927736496623', 'result_long': None, 'result_double': None}] Qualite : 0.06010927736496623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411634_29-05-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411634 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411634_29-05-2025_05_52_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411660, 'pht': 3726}}" where mtr_portfolio_id = 23411634 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23411634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026817, 0.06010927736496623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411634_29-05-2025_05_52_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411660, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23411947 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982182, 'mtr_portfolio_id': 23411947, 'created_at': datetime.datetime(2025, 5, 29, 5, 52, 59), 'result': '0.020884600403872355', 'result_long': None, 'result_double': None}] Qualite : 0.020884600403872355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_29-05-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411947 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_29-05-2025_05_53_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, 'pht': 3726}}" where mtr_portfolio_id = 23411947 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23411947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026818, 0.020884600403872355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_29-05-2025_05_53_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23412231 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982183, 'mtr_portfolio_id': 23412231, 'created_at': datetime.datetime(2025, 5, 29, 5, 53, 27), 'result': '0.02831631479652778', 'result_long': None, 'result_double': None}] Qualite : 0.02831631479652778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23412231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_29-05-2025_05_53_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23412231 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_29-05-2025_05_53_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, 'pht': 3726}}" where mtr_portfolio_id = 23412231 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23412231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026819, 0.02831631479652778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_29-05-2025_05_53_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23412706 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982184, 'mtr_portfolio_id': 23412706, 'created_at': datetime.datetime(2025, 5, 29, 5, 54), 'result': '0.047081215825859196', 'result_long': None, 'result_double': None}] Qualite : 0.047081215825859196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23412706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412706_29-05-2025_05_54_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23412706 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412706_29-05-2025_05_54_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412769, 'pht': 3726}}" where mtr_portfolio_id = 23412706 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23412706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026820, 0.047081215825859196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412706_29-05-2025_05_54_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412769, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23413181 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982185, 'mtr_portfolio_id': 23413181, 'created_at': datetime.datetime(2025, 5, 29, 5, 54, 31), 'result': '0.040424502772721374', 'result_long': None, 'result_double': None}] Qualite : 0.040424502772721374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23413181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413181_29-05-2025_05_54_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23413181 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413181_29-05-2025_05_54_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413196, 'pht': 3726}}" where mtr_portfolio_id = 23413181 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23413181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026821, 0.040424502772721374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413181_29-05-2025_05_54_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413196, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23413509 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982186, 'mtr_portfolio_id': 23413509, 'created_at': datetime.datetime(2025, 5, 29, 5, 55), 'result': '0.046956793488200574', 'result_long': None, 'result_double': None}] Qualite : 0.046956793488200574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23413509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413509_29-05-2025_05_55_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23413509 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413509_29-05-2025_05_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413558, 'pht': 3726}}" where mtr_portfolio_id = 23413509 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23413509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026822, 0.046956793488200574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413509_29-05-2025_05_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23413927 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982187, 'mtr_portfolio_id': 23413927, 'created_at': datetime.datetime(2025, 5, 29, 5, 55, 29), 'result': '0.04699332506893065', 'result_long': None, 'result_double': None}] Qualite : 0.04699332506893065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23413927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413927_29-05-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23413927 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413927_29-05-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413963, 'pht': 3726}}" where mtr_portfolio_id = 23413927 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23413927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026823, 0.04699332506893065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23413927_29-05-2025_05_55_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23413952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23413953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23413954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23413955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23413956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23413957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23413958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23413959, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23413960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23413961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23413962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23413963, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23415509 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982188, 'mtr_portfolio_id': 23415509, 'created_at': datetime.datetime(2025, 5, 29, 5, 55, 58), 'result': '0.04062346698631859', 'result_long': None, 'result_double': None}] Qualite : 0.04062346698631859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23415509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415509_29-05-2025_05_55_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23415509 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415509_29-05-2025_05_55_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415546, 'pht': 3726}}" where mtr_portfolio_id = 23415509 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23415509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026824, 0.04062346698631859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415509_29-05-2025_05_55_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23415614 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982189, 'mtr_portfolio_id': 23415614, 'created_at': datetime.datetime(2025, 5, 29, 5, 56, 30), 'result': '0.029660217164606695', 'result_long': None, 'result_double': None}] Qualite : 0.029660217164606695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23415614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415614_29-05-2025_05_56_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23415614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415614_29-05-2025_05_56_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415650, 'pht': 3726}}" where mtr_portfolio_id = 23415614 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23415614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026825, 0.029660217164606695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23415614_29-05-2025_05_56_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23415639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23415640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23415641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23415642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23415643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23415644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23415645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23415646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23415647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23415648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23415649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23415650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23416210 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982190, 'mtr_portfolio_id': 23416210, 'created_at': datetime.datetime(2025, 5, 29, 5, 56, 58), 'result': '0.05958409713836083', 'result_long': None, 'result_double': None}] Qualite : 0.05958409713836083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23416210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416210_29-05-2025_05_57_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23416210 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416210_29-05-2025_05_57_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23416262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416273, 'pht': 3726}}" where mtr_portfolio_id = 23416210 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23416210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026826, 0.05958409713836083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416210_29-05-2025_05_57_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23416262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416273, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23416630 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982191, 'mtr_portfolio_id': 23416630, 'created_at': datetime.datetime(2025, 5, 29, 5, 57, 30), 'result': '0.06007596501051313', 'result_long': None, 'result_double': None}] Qualite : 0.06007596501051313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23416630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416630_29-05-2025_05_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23416630 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416630_29-05-2025_05_57_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23416686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416690, 'pht': 3726}}" where mtr_portfolio_id = 23416630 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23416630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026827, 0.06007596501051313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23416630_29-05-2025_05_57_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23416679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23416680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23416681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23416682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23416683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23416684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23416685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23416686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23416687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23416688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23416689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23416690, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23417059 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982192, 'mtr_portfolio_id': 23417059, 'created_at': datetime.datetime(2025, 5, 29, 5, 58), 'result': '0.08064536484020123', 'result_long': None, 'result_double': None}] Qualite : 0.08064536484020123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23417059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417059_29-05-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23417059 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417059_29-05-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417078, 'pht': 3726}}" where mtr_portfolio_id = 23417059 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23417059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026828, 0.08064536484020123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417059_29-05-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417078, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23417365 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982193, 'mtr_portfolio_id': 23417365, 'created_at': datetime.datetime(2025, 5, 29, 5, 58, 29), 'result': '0.03216283547221239', 'result_long': None, 'result_double': None}] Qualite : 0.03216283547221239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23417365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417365_29-05-2025_05_58_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23417365 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417365_29-05-2025_05_58_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417384, 'pht': 3726}}" where mtr_portfolio_id = 23417365 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23417365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026829, 0.03216283547221239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417365_29-05-2025_05_58_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417384, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23417708 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982194, 'mtr_portfolio_id': 23417708, 'created_at': datetime.datetime(2025, 5, 29, 5, 58, 59), 'result': '0.07657927948028243', 'result_long': None, 'result_double': None}] Qualite : 0.07657927948028243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23417708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417708_29-05-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23417708 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417708_29-05-2025_05_59_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417732, 'pht': 3726}}" where mtr_portfolio_id = 23417708 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23417708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026830, 0.07657927948028243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417708_29-05-2025_05_59_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417732, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23417977 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982195, 'mtr_portfolio_id': 23417977, 'created_at': datetime.datetime(2025, 5, 29, 5, 59, 28), 'result': '0.050367654277173796', 'result_long': None, 'result_double': None}] Qualite : 0.050367654277173796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23417977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417977_29-05-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23417977 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417977_29-05-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417989, 'pht': 3726}}" where mtr_portfolio_id = 23417977 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23417977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026831, 0.050367654277173796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23417977_29-05-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23417978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23417979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23417980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23417981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23417982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23417983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23417984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23417985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23417986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23417987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23417988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23417989, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23418390 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982196, 'mtr_portfolio_id': 23418390, 'created_at': datetime.datetime(2025, 5, 29, 5, 59, 58), 'result': '0.05992345309797693', 'result_long': None, 'result_double': None}] Qualite : 0.05992345309797693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23418390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418390_29-05-2025_06_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23418390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418390_29-05-2025_06_00_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23418397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418408, 'pht': 3726}}" where mtr_portfolio_id = 23418390 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23418390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026832, 0.05992345309797693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418390_29-05-2025_06_00_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23418397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418403, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418408, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23418851 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982197, 'mtr_portfolio_id': 23418851, 'created_at': datetime.datetime(2025, 5, 29, 6, 0, 30), 'result': '0.055527362424325336', 'result_long': None, 'result_double': None}] Qualite : 0.055527362424325336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23418851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418851_29-05-2025_06_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23418851 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418851_29-05-2025_06_00_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23418875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418880, 'pht': 3726}}" where mtr_portfolio_id = 23418851 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23418851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026833, 0.055527362424325336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23418851_29-05-2025_06_00_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23418869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23418870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23418871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23418872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23418873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23418874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23418875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23418876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23418877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23418878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23418879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23418880, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23419247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982198, 'mtr_portfolio_id': 23419247, 'created_at': datetime.datetime(2025, 5, 29, 6, 0, 59), 'result': '0.08505509729860483', 'result_long': None, 'result_double': None}] Qualite : 0.08505509729860483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23419247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419247_29-05-2025_06_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23419247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419247_29-05-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419269, 'pht': 3726}}" where mtr_portfolio_id = 23419247 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23419247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026834, 0.08505509729860483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419247_29-05-2025_06_01_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23419604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982199, 'mtr_portfolio_id': 23419604, 'created_at': datetime.datetime(2025, 5, 29, 6, 1, 29), 'result': '0.04089961657379486', 'result_long': None, 'result_double': None}] Qualite : 0.04089961657379486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23419604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419604_29-05-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23419604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419604_29-05-2025_06_01_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419649, 'pht': 3726}}" where mtr_portfolio_id = 23419604 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23419604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026835, 0.04089961657379486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23419604_29-05-2025_06_01_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23419638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23419639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23419640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23419641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23419642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23419643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23419644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23419645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23419646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23419647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23419648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23419649, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23420019 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982200, 'mtr_portfolio_id': 23420019, 'created_at': datetime.datetime(2025, 5, 29, 6, 1, 59), 'result': '0.04910440449094144', 'result_long': None, 'result_double': None}] Qualite : 0.04910440449094144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23420019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420019_29-05-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23420019 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420019_29-05-2025_06_02_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420036, 'pht': 3726}}" where mtr_portfolio_id = 23420019 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23420019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026836, 0.04910440449094144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420019_29-05-2025_06_02_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420036, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23420326 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982201, 'mtr_portfolio_id': 23420326, 'created_at': datetime.datetime(2025, 5, 29, 6, 2, 29), 'result': '0.04291116520127675', 'result_long': None, 'result_double': None}] Qualite : 0.04291116520127675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23420326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420326_29-05-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23420326 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420326_29-05-2025_06_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420371, 'pht': 3726}}" where mtr_portfolio_id = 23420326 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23420326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026837, 0.04291116520127675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420326_29-05-2025_06_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23420360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420371, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23420654 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982202, 'mtr_portfolio_id': 23420654, 'created_at': datetime.datetime(2025, 5, 29, 6, 3), 'result': '0.06198738022882409', 'result_long': None, 'result_double': None}] Qualite : 0.06198738022882409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23420654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420654_29-05-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23420654 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420654_29-05-2025_06_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23420702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420703, 'pht': 3726}}" where mtr_portfolio_id = 23420654 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23420654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026838, 0.06198738022882409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23420654_29-05-2025_06_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23420692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23420693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23420694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23420695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23420696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23420697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23420698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23420699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23420700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23420701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23420702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23420703, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23421006 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982203, 'mtr_portfolio_id': 23421006, 'created_at': datetime.datetime(2025, 5, 29, 6, 3, 28), 'result': '0.05820317986214541', 'result_long': None, 'result_double': None}] Qualite : 0.05820317986214541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23421006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421006_29-05-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23421006 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421006_29-05-2025_06_03_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421025, 'pht': 3726}}" where mtr_portfolio_id = 23421006 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23421006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026839, 0.05820317986214541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421006_29-05-2025_06_03_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421025, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23421668 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2982204, 'mtr_portfolio_id': 23421668, 'created_at': datetime.datetime(2025, 5, 29, 6, 3, 58), 'result': '0.0545037807898262', 'result_long': None, 'result_double': None}] Qualite : 0.0545037807898262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23421668 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_29-05-2025_06_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23421668 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_29-05-2025_06_03_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421697, 'pht': 3726}}" where mtr_portfolio_id = 23421668 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23421668 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026840, 0.0545037807898262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421668_29-05-2025_06_03_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23421691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421697, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23421795 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2977907, 'mtr_portfolio_id': 23421795, 'created_at': datetime.datetime(2025, 5, 28, 18, 26, 58), 'result': '0.03204503728424993', 'result_long': None, 'result_double': None}] Qualite : 0.03204503728424993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23421795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421795_28-05-2025_18_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23421795 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421795_28-05-2025_18_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23421820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421831, 'pht': 3726}}" where mtr_portfolio_id = 23421795 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23421795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026841, 0.03204503728424993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421795_28-05-2025_18_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23421820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23421822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23421823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23421824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23421827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23421828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421830, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23421831, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23421957 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2977952, 'mtr_portfolio_id': 23421957, 'created_at': datetime.datetime(2025, 5, 28, 18, 42, 59), 'result': '0.05976031288446328', 'result_long': None, 'result_double': None}] Qualite : 0.05976031288446328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23421957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421957_28-05-2025_18_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23421957 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421957_28-05-2025_18_43_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422006, 'pht': 3726}}" where mtr_portfolio_id = 23421957 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23421957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026842, 0.05976031288446328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23421957_28-05-2025_18_43_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23421995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23421996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23421997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23421998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23421999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422006, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23422300 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978049, 'mtr_portfolio_id': 23422300, 'created_at': datetime.datetime(2025, 5, 28, 19, 3, 28), 'result': '0.06271035208941297', 'result_long': None, 'result_double': None}] Qualite : 0.06271035208941297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23422300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422300_28-05-2025_19_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23422300 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422300_28-05-2025_19_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23422333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422336, 'pht': 3726}}" where mtr_portfolio_id = 23422300 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23422300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026843, 0.06271035208941297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422300_28-05-2025_19_03_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23422333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422336, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23422770 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978214, 'mtr_portfolio_id': 23422770, 'created_at': datetime.datetime(2025, 5, 28, 19, 13, 1), 'result': '0.0173224976905885', 'result_long': None, 'result_double': None}] Qualite : 0.0173224976905885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23422770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422770_28-05-2025_19_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23422770 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422770_28-05-2025_19_13_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23422778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422789, 'pht': 3726}}" where mtr_portfolio_id = 23422770 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23422770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026844, 0.0173224976905885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422770_28-05-2025_19_13_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23422778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23422779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23422780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23422781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23422782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23422783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23422784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23422785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23422786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23422787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23422788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23422789, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23422994 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978283, 'mtr_portfolio_id': 23422994, 'created_at': datetime.datetime(2025, 5, 28, 19, 26, 59), 'result': '0.07270300167274114', 'result_long': None, 'result_double': None}] Qualite : 0.07270300167274114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23422994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422994_28-05-2025_19_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23422994 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422994_28-05-2025_19_26_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423012, 'pht': 3726}}" where mtr_portfolio_id = 23422994 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23422994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026845, 0.07270300167274114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23422994_28-05-2025_19_26_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423012, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23423248 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978348, 'mtr_portfolio_id': 23423248, 'created_at': datetime.datetime(2025, 5, 28, 19, 43, 1), 'result': '0.044631899930013416', 'result_long': None, 'result_double': None}] Qualite : 0.044631899930013416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23423248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423248_28-05-2025_19_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23423248 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423248_28-05-2025_19_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423262, 'pht': 3726}}" where mtr_portfolio_id = 23423248 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23423248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026846, 0.044631899930013416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423248_28-05-2025_19_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23423625 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978474, 'mtr_portfolio_id': 23423625, 'created_at': datetime.datetime(2025, 5, 28, 19, 56, 58), 'result': '0.02363825318186661', 'result_long': None, 'result_double': None}] Qualite : 0.02363825318186661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23423625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423625_28-05-2025_19_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23423625 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423625_28-05-2025_19_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23423641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423656, 'pht': 3726}}" where mtr_portfolio_id = 23423625 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23423625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026847, 0.02363825318186661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423625_28-05-2025_19_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23423641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423656, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23423891 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978585, 'mtr_portfolio_id': 23423891, 'created_at': datetime.datetime(2025, 5, 28, 20, 12, 59), 'result': '0.055644195611313604', 'result_long': None, 'result_double': None}] Qualite : 0.055644195611313604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23423891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423891_28-05-2025_20_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23423891 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423891_28-05-2025_20_13_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423903, 'pht': 3726}}" where mtr_portfolio_id = 23423891 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23423891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026848, 0.055644195611313604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23423891_28-05-2025_20_13_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23423892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23423893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23423894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23423895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23423896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23423897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23423898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23423899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23423900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23423901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23423902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23423903, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23424282 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978688, 'mtr_portfolio_id': 23424282, 'created_at': datetime.datetime(2025, 5, 28, 20, 26, 57), 'result': '0.046358811501733224', 'result_long': None, 'result_double': None}] Qualite : 0.046358811501733224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23424282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424282_28-05-2025_20_26_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23424282 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424282_28-05-2025_20_26_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23424293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424298, 'pht': 3726}}" where mtr_portfolio_id = 23424282 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23424282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026849, 0.046358811501733224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424282_28-05-2025_20_26_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23424293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23424761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2978808, 'mtr_portfolio_id': 23424761, 'created_at': datetime.datetime(2025, 5, 28, 22, 24, 59), 'result': '0.05090078966903451', 'result_long': None, 'result_double': None}] Qualite : 0.05090078966903451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23424761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424761_28-05-2025_22_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23424761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424761_28-05-2025_22_24_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23424786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424797, 'pht': 3726}}" where mtr_portfolio_id = 23424761 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23424761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026850, 0.05090078966903451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23424761_28-05-2025_22_24_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23424786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23424787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23424788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23424789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23424790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23424791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23424792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23424793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23424794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23424795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23424796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23424797, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23425537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979068, 'mtr_portfolio_id': 23425537, 'created_at': datetime.datetime(2025, 5, 28, 21, 13), 'result': '0.03977731459054594', 'result_long': None, 'result_double': None}] Qualite : 0.03977731459054594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23425537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425537_28-05-2025_21_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23425537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425537_28-05-2025_21_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425549, 'pht': 3726}}" where mtr_portfolio_id = 23425537 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23425537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026851, 0.03977731459054594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425537_28-05-2025_21_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425549, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23425614 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979092, 'mtr_portfolio_id': 23425614, 'created_at': datetime.datetime(2025, 5, 28, 21, 27, 29), 'result': '0.03563206394338644', 'result_long': None, 'result_double': None}] Qualite : 0.03563206394338644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23425614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425614_28-05-2025_21_27_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23425614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425614_28-05-2025_21_27_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23425640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425651, 'pht': 3726}}" where mtr_portfolio_id = 23425614 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23425614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026852, 0.03563206394338644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425614_28-05-2025_21_27_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23425640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23425645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425651, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23425878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979185, 'mtr_portfolio_id': 23425878, 'created_at': datetime.datetime(2025, 5, 28, 21, 42, 57), 'result': '0.059552363629655575', 'result_long': None, 'result_double': None}] Qualite : 0.059552363629655575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23425878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425878_28-05-2025_21_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23425878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425878_28-05-2025_21_42_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23425881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425892, 'pht': 3726}}" where mtr_portfolio_id = 23425878 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23425878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026853, 0.059552363629655575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23425878_28-05-2025_21_42_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23425881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23425882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23425883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23425884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23425885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23425886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23425887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23425888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23425889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23425890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23425891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23425892, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23426331 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979319, 'mtr_portfolio_id': 23426331, 'created_at': datetime.datetime(2025, 5, 28, 21, 57), 'result': '0.04972160447505189', 'result_long': None, 'result_double': None}] Qualite : 0.04972160447505189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23426331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426331_28-05-2025_21_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23426331 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426331_28-05-2025_21_57_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426372, 'pht': 3726}}" where mtr_portfolio_id = 23426331 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23426331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026854, 0.04972160447505189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426331_28-05-2025_21_57_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426372, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23426903 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979548, 'mtr_portfolio_id': 23426903, 'created_at': datetime.datetime(2025, 5, 28, 22, 13, 28), 'result': '0.05394339645795215', 'result_long': None, 'result_double': None}] Qualite : 0.05394339645795215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23426903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426903_28-05-2025_22_13_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23426903 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426903_28-05-2025_22_13_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426915, 'pht': 3726}}" where mtr_portfolio_id = 23426903 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23426903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026855, 0.05394339645795215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23426903_28-05-2025_22_13_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23426904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23426905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23426906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23426907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23426908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23426909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23426910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23426911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23426912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23426913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23426914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23426915, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23427481 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979627, 'mtr_portfolio_id': 23427481, 'created_at': datetime.datetime(2025, 5, 28, 22, 26, 58), 'result': '0.055438539560042174', 'result_long': None, 'result_double': None}] Qualite : 0.055438539560042174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23427481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427481_28-05-2025_22_26_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23427481 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427481_28-05-2025_22_26_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23427532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23427533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23427534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23427535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23427536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23427537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23427538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23427539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23427540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23427541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23427542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23427543, 'pht': 3726}}" where mtr_portfolio_id = 23427481 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23427481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026856, 0.055438539560042174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427481_28-05-2025_22_26_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23427532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23427533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23427534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23427535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23427536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23427537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23427538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23427539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23427540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23427541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23427542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23427543, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23427999 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979740, 'mtr_portfolio_id': 23427999, 'created_at': datetime.datetime(2025, 5, 28, 22, 56, 29), 'result': '0.04740686443786978', 'result_long': None, 'result_double': None}] Qualite : 0.04740686443786978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23427999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427999_28-05-2025_22_56_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23427999 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427999_28-05-2025_22_56_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428036, 'pht': 3726}}" where mtr_portfolio_id = 23427999 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23427999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026857, 0.04740686443786978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23427999_28-05-2025_22_56_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428036, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23428568 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979930, 'mtr_portfolio_id': 23428568, 'created_at': datetime.datetime(2025, 5, 28, 23, 11, 57), 'result': '0.057960767192571115', 'result_long': None, 'result_double': None}] Qualite : 0.057960767192571115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23428568 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428568_28-05-2025_23_11_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23428568 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428568_28-05-2025_23_11_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23428569, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428580, 'pht': 3726}}" where mtr_portfolio_id = 23428568 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23428568 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026858, 0.057960767192571115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428568_28-05-2025_23_11_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23428569, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428580, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23428761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2979983, 'mtr_portfolio_id': 23428761, 'created_at': datetime.datetime(2025, 5, 28, 23, 27), 'result': '0.07128512881051553', 'result_long': None, 'result_double': None}] Qualite : 0.07128512881051553 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23428761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428761_28-05-2025_23_27_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23428761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428761_28-05-2025_23_27_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428793, 'pht': 3726}}" where mtr_portfolio_id = 23428761 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23428761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026859, 0.07128512881051553, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23428761_28-05-2025_23_27_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23428782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23428783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23428784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23428785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23428786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23428787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23428788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23428789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23428790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23428791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23428792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23428793, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23429050 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2980073, 'mtr_portfolio_id': 23429050, 'created_at': datetime.datetime(2025, 5, 28, 23, 41, 58), 'result': '0.0641003443714948', 'result_long': None, 'result_double': None}] Qualite : 0.0641003443714948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23429050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429050_28-05-2025_23_41_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23429050 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429050_28-05-2025_23_41_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429066, 'pht': 3726}}" where mtr_portfolio_id = 23429050 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23429050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026860, 0.0641003443714948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429050_28-05-2025_23_41_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429066, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23429379 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2980206, 'mtr_portfolio_id': 23429379, 'created_at': datetime.datetime(2025, 5, 28, 23, 56, 58), 'result': '0.041850747942346195', 'result_long': None, 'result_double': None}] Qualite : 0.041850747942346195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23429379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429379_28-05-2025_23_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23429379 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429379_28-05-2025_23_56_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429417, 'pht': 3726}}" where mtr_portfolio_id = 23429379 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23429379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026861, 0.041850747942346195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429379_28-05-2025_23_56_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23429415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429417, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23429676 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2980338, 'mtr_portfolio_id': 23429676, 'created_at': datetime.datetime(2025, 5, 29, 0, 11, 59), 'result': '0.023312111767794505', 'result_long': None, 'result_double': None}] Qualite : 0.023312111767794505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23429676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429676_29-05-2025_00_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23429676 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429676_29-05-2025_00_12_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23429701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429712, 'pht': 3726}}" where mtr_portfolio_id = 23429676 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23429676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026862, 0.023312111767794505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23429676_29-05-2025_00_12_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23429701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23429702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23429703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23429704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23429705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23429706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23429707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23429708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23429709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23429710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23429711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23429712, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23430028 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2980437, 'mtr_portfolio_id': 23430028, 'created_at': datetime.datetime(2025, 5, 29, 1, 25, 58), 'result': '0.05384384359324366', 'result_long': None, 'result_double': None}] Qualite : 0.05384384359324366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430028_29-05-2025_01_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430028 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430028_29-05-2025_01_25_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430053, 'pht': 3726}}" where mtr_portfolio_id = 23430028 and dashboard_run_id = 1852764 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23430028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11026863, 0.05384384359324366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430028_29-05-2025_01_25_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430053, '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 (23397772,23398051,23398303,23399179,23399344,23399686,23400106,23400427,23400761,23401154,23401510,23401873,23402106,23402440,23402734,23403490,23403648,23403911,23404230,23404712,23405129,23405492,23405806,23406291,23406782,23407058,23407390,23407757,23408183,23408565,23408918,23409657,23410368,23411041,23411222,23411634,23411947,23412231,23412706,23413181,23413509,23413927,23415509,23415614,23416210,23416630,23417059,23417365,23417708,23417977,23418390,23418851,23419247,23419604,23420019,23420326,23420654,23421006,23421668,23421795,23421957,23422300,23422770,23422994,23423248,23423625,23423891,23424282,23424761,23425537,23425614,23425878,23426331,23426903,23427481,23427999,23428568,23428761,23429050,23429379,23429676,23430028) result : ((1361412970,), (1361412973,), (1361412976,), (1361412978,), (1361413011,), (1361413012,), (1361413014,), (1361413016,), (1361413018,), (1361413022,), (1361413044,), (1361413046,), (1361413048,), (1361413081,), (1361413083,), (1361413086,), (1361413089,), (1361413094,), (1361413097,), (1361413115,), (1361413117,), (1361413120,), (1361413121,), (1361413124,), (1361413128,), (1361413147,), (1361413149,), (1361413151,), (1361413152,), (1361413154,), (1361413187,), (1361413195,), (1361413197,), (1361413199,), (1361413201,), (1361413203,), (1361413219,), (1361413221,), (1361413223,), (1361413225,), (1361413255,), (1361413258,), (1361413261,), (1361413264,), (1361413266,), (1361413268,), (1361413287,), (1361413291,), (1361413292,), (1361413315,), (1361413316,), (1361413317,), (1361413318,), (1361413340,), (1361413512,), (1361413509,), (1361413511,), (1361413543,), (1361413545,), (1361413546,), (1361413547,), (1361413548,), (1361413550,), (1361413572,), (1361413573,), (1361413574,), (1361413575,), (1361413576,), (1361413578,), (1361413603,), (1361413604,), (1361413605,), (1361413606,), (1361413640,), (1361413641,), (1361413642,), (1361413643,), (1361413647,), (1361413654,), (1361413678,), (1361413680,), (1361413682,), (1361413684,), (1361413686,), (1361413710,), (1361413712,), (1361413714,), (1361413716,), (1361413722,), (1361413758,), (1361413759,), (1361413760,), (1361413761,), (1361413762,), (1361413763,), (1361413786,), (1361413787,), (1361413788,), (1361413789,), (1361413818,), (1361413819,), (1361413820,), (1361413821,), (1361413822,), (1361413823,), (1361413847,), (1361413850,), (1361413852,), (1361413854,), (1361413878,), (1361413879,), (1361413880,), (1361413881,), (1361413905,), (1361413908,), (1361413909,), (1361413911,), (1361413913,), (1361413916,), (1361413937,), (1361413935,), (1361413936,), (1361413961,), (1361413962,), (1361413963,), (1361413992,), (1361413993,), (1361413994,), (1361413995,), (1361413996,), (1361414019,), (1361414020,), (1361414021,), (1361414022,), (1361414023,), (1361414032,), (1361414035,), (1361414037,), (1361419067,), (1361420894,), (1361420897,), (1361420919,), (1361420945,), (1361420966,), (1361420978,), (1361420984,), (1361420986,), (1361420987,), (1361420988,), (1361421007,), (1361421009,), (1361421012,), (1361421015,), (1361421037,), (1361421041,), (1361421044,), (1361421047,), (1361421050,), (1361421054,), (1361421081,), (1361421083,), (1361421084,), (1361421101,), (1361421105,), (1361421107,), (1361421110,), (1361421113,), (1361421115,), (1361421132,), (1361421134,), (1361421136,), (1361421138,), (1361421139,), (1361421157,), (1361421159,), (1361421161,), (1361421164,), (1361421165,), (1361421167,), (1361421183,), (1361421186,), (1361421224,), (1361421215,), (1361421217,), (1361421219,), (1361421250,), (1361421258,), (1361421260,), (1361421261,), (1361421262,), (1361421276,), (1361421279,), (1361421282,), (1361421306,), (1361421308,), (1361421331,), (1361421332,), (1361421335,), (1361421337,), (1361421338,), (1361421359,), (1361421361,), (1361421363,), (1361421365,), (1361421393,), (1361421395,), (1361421397,), (1361421400,), (1361421401,), (1361421408,), (1361421429,), (1361421431,), (1361421447,), (1361421449,), (1361421454,), (1361421460,), (1361421482,), (1361421485,), (1361421488,), (1361421492,), (1361421720,), (1361421819,), (1361421848,), (1361421874,), (1361421897,), (1361421928,), (1361422150,), (1361422175,), (1361422202,), (1361422439,), (1361422441,), (1361422443,), (1361422445,), (1361422446,), (1361422576,), (1361422603,), (1361422627,), (1361422654,), (1361422681,), (1361422750,), (1361422752,), (1361422775,), (1361422801,), (1361422827,), (1361422915,), (1361422883,), (1361422885,), (1361422887,), (1361422892,), (1361423170,), (1361423172,), (1361423174,), (1361423176,), (1361423197,), (1361423200,), (1361423203,), (1361423206,), (1361423227,), (1361423229,), (1361423231,), (1361423244,), (1361423249,), (1361423253,), (1361423255,), (1361423276,), (1361423314,), (1361423319,), (1361423322,), (1361423325,), (1361423339,), (1361423360,), (1361423407,), (1361423409,), (1361423411,), (1361423444,), (1361423446,), (1361423448,), (1361423450,), (1361423476,), (1361423479,), (1361423481,), (1361423483,), (1361423485,), (1361423503,), (1361423509,), (1361423511,), (1361423513,), (1361423527,), (1361423529,), (1361423531,), (1361423559,), (1361423563,), (1361423566,), (1361423568,), (1361423595,), (1361423588,), (1361423590,), (1361423592,), (1361423594,), (1361423615,), (1361423618,), (1361423621,), (1361423624,), (1361423626,), (1361423648,), (1361423649,), (1361423655,), (1361423682,), (1361423685,), (1361423687,), (1361423709,), (1361423711,), (1361423713,), (1361423714,), (1361423716,), (1361423718,), (1361423742,), (1361423744,), (1361423746,), (1361423748,), (1361423750,), (1361423776,), (1361423778,), (1361423780,), (1361423812,), (1361423820,), (1361423822,), (1361423824,), (1361423825,), (1361423826,), (1361424021,), (1361424048,), (1361424073,), (1361424099,), (1361424126,), (1361424149,), (1361424406,), (1361424434,), (1361424464,), (1361424494,), (1361424811,), (1361424814,), (1361424816,), (1361424818,), (1361424820,), (1361424821,), (1361424844,), (1361424861,), (1361424887,), (1361424940,), (1361425202,), (1361425204,), (1361425205,), (1361425207,), (1361425480,), (1361425510,), (1361425533,), (1361425558,), (1361425585,), (1361425646,), (1361425647,), (1361425649,), (1361425650,), (1361425653,), (1361425654,), (1361425658,), (1361425659,), (1361425662,), (1361425664,), (1361425673,), (1361425671,), (1361425697,), (1361425699,), (1361425700,), (1361425720,), (1361425727,), (1361425729,), (1361425731,), (1361425732,), (1361425734,), (1361425750,), (1361425753,), (1361425760,), (1361425761,), (1361425763,), (1361425764,), (1361425784,), (1361425786,), (1361425788,), (1361425812,), (1361425815,), (1361425817,), (1361425819,), (1361425820,), (1361425857,), (1361425860,), (1361425862,), (1361425869,), (1361425875,), (1361425877,), (1361425896,), (1361425898,), (1361425902,), (1361425908,), (1361425909,), (1361425929,), (1361425932,), (1361425935,), (1361425957,), (1361425960,), (1361425964,), (1361425968,), (1361425969,), (1361425971,), (1361425989,), (1361425991,), (1361425998,), (1361426001,), (1361426003,), (1361426026,), (1361426029,), (1361426032,), (1361426054,), (1361426057,), (1361426058,), (1361426060,), (1361426062,), (1361426063,), (1361426082,), (1361426084,), (1361426086,), (1361426088,), (1361426089,), (1361426108,), (1361426111,), (1361426113,), (1361426148,), (1361426135,), (1361426139,), (1361426142,), (1361426146,), (1361426147,), (1361426179,), (1361426181,), (1361426182,), (1361426183,), (1361426184,), (1361426185,), (1361426199,), (1361426201,), (1361426203,), (1361426204,), (1361426219,), (1361426220,), (1361426226,), (1361426232,), (1361426248,), (1361426249,), (1361426255,), (1361426258,), (1361426259,), (1361426260,), (1361426278,), (1361426281,), (1361426284,), (1361426285,), (1361426301,), (1361426313,), (1361426340,), (1361426366,), (1361426381,), (1361426390,), (1361426479,), (1361426480,), (1361426484,), (1361426491,), (1361426507,), (1361426508,), (1361426554,), (1361426555,), (1361426556,), (1361426584,), (1361426590,), (1361426592,), (1361426594,), (1361426596,), (1361426598,), (1361426614,), (1361426615,), (1361426616,), (1361426617,), (1361426645,), (1361426646,), (1361426648,), (1361426652,), (1361426659,), (1361426664,), (1361426666,), (1361426668,), (1361426714,), (1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,), (1361426921,), (1361426923,), (1361426928,), (1361426930,), (1361426947,), (1361426948,), (1361426949,), (1361426950,), (1361426951,), (1361426952,), (1361426980,), (1361426982,), (1361426983,), (1361426984,), (1361427002,), (1361427004,), (1361427005,), (1361427029,), (1361427032,), (1361427036,), (1361427037,), (1361427038,), (1361427050,), (1361427052,), (1361427053,), (1361427055,), (1361427056,), (1361427074,), (1361427071,), (1361427072,), (1361427073,), (1361427098,), (1361427107,), (1361427110,), (1361427111,), (1361427127,), (1361427131,), (1361427133,), (1361427134,), (1361427135,), (1361427136,), (1361427147,), (1361427148,), (1361427149,), (1361427150,), (1361427167,), (1361427169,), (1361427190,), (1361427192,), (1361427193,), (1361427194,), (1361427201,), (1361427205,), (1361427222,), (1361427223,), (1361427226,), (1361427249,), (1361427250,), (1361427251,), (1361427252,), (1361427254,), (1361427272,), (1361427273,), (1361427274,), (1361427275,), (1361427276,), (1361427293,), (1361427297,), (1361427301,), (1361427317,), (1361427318,), (1361427319,), (1361427321,), (1361427329,), (1361427331,), (1361427351,), (1361427353,), (1361427355,), (1361427357,), (1361427373,), (1361427374,), (1361427375,), (1361427376,), (1361427377,), (1361427378,), (1361427411,), (1361427412,), (1361427413,), (1361427414,), (1361427415,), (1361427416,), (1361427434,), (1361427561,), (1361427562,), (1361427563,), (1361427564,), (1361427580,), (1361427583,), (1361427585,), (1361427586,), (1361427587,), (1361427598,), (1361427601,), (1361427603,), (1361427604,), (1361427605,), (1361427624,), (1361427625,), (1361427630,), (1361427650,), (1361427651,), (1361427652,), (1361427653,), (1361427654,), (1361427676,), (1361427677,), (1361427678,), (1361427679,), (1361427704,), (1361427706,), (1361427709,), (1361427715,), (1361427716,), (1361427768,), (1361427772,), (1361427778,), (1361427801,), (1361427804,), (1361427805,), (1361427806,), (1361427807,), (1361427808,), (1361427831,), (1361427827,), (1361427829,), (1361427830,), (1361427849,), (1361427850,), (1361427851,), (1361427898,), (1361427899,), (1361427900,), (1361427906,), (1361427907,), (1361427908,), (1361427926,), (1361427927,), (1361427928,), (1361427929,), (1361427930,), (1361427950,), (1361427952,), (1361427953,), (1361427974,), (1361427975,), (1361427979,), (1361427980,), (1361428004,), (1361428005,), (1361428006,), (1361428007,), (1361428009,), (1361428017,), (1361428034,), (1361428036,), (1361428038,), (1361428058,), (1361428060,), (1361428062,), (1361428078,), (1361428081,), (1361428085,), (1361428095,), (1361428098,), (1361428100,), (1361428115,), (1361428116,), (1361428118,), (1361428149,), (1361428150,), (1361428151,), (1361428152,), (1361428153,), (1361428154,), (1361428171,), (1361428172,), (1361428173,), (1361428174,), (1361428175,), (1361428176,), (1361428197,), (1361428199,), (1361428201,), (1361428202,), (1361428220,), (1361428221,), (1361428222,), (1361428223,), (1361428224,), (1361428261,), (1361428254,), (1361428256,), (1361428258,), (1361428259,), (1361428260,), (1361428278,), (1361428279,), (1361428280,), (1361428297,), (1361428298,), (1361428299,), (1361428329,), (1361428330,), (1361428331,), (1361428332,), (1361428333,), (1361428353,), (1361428355,), (1361428357,), (1361428359,), (1361428361,), (1361428363,), (1361428380,), (1361428384,), (1361428387,), (1361428389,), (1361428390,), (1361428413,), (1361428416,), (1361428419,), (1361428422,), (1361428451,), (1361428455,), (1361428458,), (1361428461,), (1361428463,), (1361428481,), (1361428483,), (1361428485,), (1361428487,), (1361428508,), (1361428510,), (1361428512,), (1361428513,), (1361428515,), (1361428517,), (1361428537,), (1361428539,), (1361428541,), (1361428543,), (1361428562,), (1361428564,), (1361428566,), (1361428573,), (1361428576,), (1361428598,), (1361428601,), (1361428603,), (1361428605,), (1361428607,), (1361428626,), (1361428629,), (1361428631,), (1361428633,), (1361428635,), (1361428637,), (1361428657,), (1361428659,), (1361428661,), (1361428695,), (1361428684,), (1361428687,), (1361428689,), (1361428691,), (1361428693,), (1361428708,), (1361428763,), (1361430035,), (1361430064,), (1361430066,), (1361430090,), (1361430093,), (1361430096,), (1361430098,), (1361430118,), (1361430121,), (1361430143,), (1361430145,), (1361430215,), (1361430220,), (1361430269,), (1361430297,), (1361430294,), (1361430322,), (1361430326,), (1361430383,), (1361430386,), (1361430389,), (1361430391,), (1361430408,), (1361430572,), (1361430575,), (1361430578,), (1361430580,), (1361430615,), (1361430617,), (1361430619,), (1361430621,), (1361430623,), (1361430643,), (1361430645,), (1361430647,), (1361430651,), (1361430654,), (1361430692,), (1361430694,), (1361430696,), (1361430700,), (1361430710,), (1361430715,), (1361430739,), (1361430733,), (1361430735,), (1361430737,), (1361430774,), (1361430776,), (1361430779,), (1361430781,), (1361430782,), (1361430800,), (1361430802,), (1361430804,), (1361430806,), (1361430808,), (1361430824,), (1361430826,), (1361430828,), (1361430830,), (1361430832,), (1361430866,), (1361430869,), (1361430893,), (1361430896,), (1361430899,), (1361430901,), (1361430924,), (1361430927,), (1361430948,), (1361430952,), (1361430954,), (1361430976,), (1361430979,), (1361430981,), (1361430983,), (1361431001,), (1361431003,), (1361431034,), (1361431037,), (1361431039,), (1361431042,), (1361431046,), (1361431063,), (1361431065,), (1361431067,), (1361431069,), (1361431094,), (1361431097,), (1361431100,), (1361431103,), (1361431124,), (1361431126,), (1361431156,), (1361431158,), (1361431185,), (1361431179,), (1361431181,), (1361431183,), (1361431218,), (1361431221,), (1361431224,), (1361431227,), (1361431229,), (1361431247,), (1361431249,), (1361431251,), (1361431252,), (1361431255,), (1361431295,), (1361431298,), (1361431301,), (1361431303,), (1361431325,), (1361431545,), (1361431568,), (1361431603,), (1361431614,), (1361431686,), (1361431718,), (1361431752,), (1361431755,), (1361431759,), (1361431783,), (1361431785,), (1361431787,), (1361431806,), (1361431810,), (1361431812,), (1361431814,), (1361431843,), (1361431845,), (1361431962,), (1361431986,), (1361431988,), (1361431990,), (1361432014,), (1361432016,), (1361432018,), (1361432021,), (1361432047,), (1361432048,), (1361432051,), (1361432057,), (1361432059,), (1361432061,), (1361432157,), (1361432186,), (1361432320,), (1361432322,), (1361432351,), (1361432343,), (1361432345,), (1361432347,), (1361432349,), (1361432369,), (1361432371,), (1361432376,), (1361432408,), (1361432410,), (1361432413,), (1361432416,), (1361432435,), (1361432436,), (1361432440,), (1361432452,), (1361432454,), (1361432456,), (1361432458,), (1361432647,), (1361432656,), (1361432675,), (1361432682,), (1361432703,), (1361432711,), (1361432745,), (1361432748,), (1361432750,), (1361432752,), (1361432754,), (1361432772,), (1361432775,), (1361432778,), (1361432780,), (1361432782,), (1361432784,), (1361432800,), (1361432802,), (1361432805,), (1361432833,), (1361432834,), (1361432836,), (1361432839,), (1361432841,), (1361432843,), (1361432867,), (1361432869,), (1361432870,), (1361432872,), (1361432874,), (1361432893,), (1361432899,), (1361432902,), (1361432904,), (1361432905,), (1361432926,), (1361432930,), (1361432933,), (1361432935,), (1361432938,), (1361432945,), (1361432964,), (1361432966,), (1361432968,), (1361432970,), (1361432984,), (1361432987,), (1361432989,), (1361432993,), (1361432997,), (1361433030,), (1361433017,), (1361433019,), (1361433021,), (1361433049,), (1361433051,), (1361433053,), (1361433055,), (1361433057,), (1361433062,), (1361433095,), (1361433100,), (1361433103,), (1361433107,), (1361433110,), (1361433112,), (1361433128,), (1361433130,), (1361433132,), (1361433152,), (1361433155,), (1361433158,), (1361433160,), (1361433162,), (1361433180,), (1361433187,), (1361433189,), (1361433191,), (1361433193,), (1361433196,), (1361433218,), (1361433226,), (1361433230,), (1361433232,), (1361433258,), (1361433260,), (1361433262,), (1361433264,), (1361433266,), (1361433289,), (1361433292,), (1361433294,), (1361433297,), (1361433301,), (1361433322,), (1361433325,), (1361433328,), (1361433331,), (1361433333,), (1361433365,), (1361433367,), (1361433370,), (1361433373,), (1361433374,), (1361433394,), (1361433396,), (1361433398,), (1361433400,), (1361433401,), (1361433404,), (1361433424,), (1361433426,), (1361433428,), (1361433429,), (1361433480,), (1361433483,), (1361433486,), (1361433487,), (1361433493,), (1361433494,), (1361433496,), (1361433497,), (1361433499,), (1361433501,), (1361433503,), (1361433506,), (1361433509,), (1361433512,), (1361433527,), (1361433520,), (1361433522,), (1361433524,), (1361433526,), (1361433547,), (1361433549,), (1361433551,), (1361433573,), (1361433576,), (1361433578,), (1361433600,), (1361433602,), (1361433604,), (1361433606,), (1361433609,), (1361433631,), (1361433634,), (1361433636,), (1361433639,), (1361433641,), (1361433662,), (1361433664,), (1361433666,), (1361433687,), (1361433690,), (1361433692,), (1361433694,), (1361433701,), (1361433702,), (1361433721,), (1361433723,), (1361433725,), (1361433731,), (1361433751,), (1361433753,), (1361433755,), (1361433757,), (1361433777,), (1361433779,), (1361433781,), (1361433782,), (1361433785,), (1361433786,), (1361433805,), (1361433807,), (1361433809,), (1361433811,), (1361433820,), (1361433852,), (1361433855,), (1361433856,), (1361433858,), (1361433860,), (1361433862,), (1361433897,), (1361433901,), (1361433903,), (1361433906,), (1361433908,), (1361433933,), (1361433937,), (1361433941,), (1361433943,), (1361433946,), (1361433965,), (1361433967,), (1361433970,), (1361433973,), (1361433976,), (1361434013,), (1361434001,), (1361434004,), (1361434006,), (1361434007,), (1361434011,), (1361434035,), (1361434037,), (1361434039,), (1361434044,), (1361434062,), (1361434064,), (1361434066,), (1361434068,), (1361434089,), (1361434092,), (1361434094,), (1361434096,), (1361434098,), (1361434125,), (1361434127,), (1361434129,), (1361434131,), (1361434342,), (1361434366,), (1361434393,), (1361434419,), (1361434433,), (1361434533,), (1361434535,), (1361434537,), (1361434779,), (1361434789,), (1361434820,), (1361434832,), (1361434912,), (1361434915,), (1361434917,), (1361434919,), (1361434953,), (1361434957,), (1361435118,), (1361435146,), (1361435264,), (1361435267,), (1361435270,), (1361435297,), (1361435303,), (1361435305,), (1361435307,), (1361435309,), (1361435311,), (1361435330,), (1361435335,), (1361435358,), (1361435360,), (1361435362,), (1361435367,), (1361435371,), (1361435679,), (1361435623,), (1361435653,), (1361435811,), (1361435813,), (1361435815,), (1361435845,), (1361435871,), (1361435983,), (1361436000,), (1361436030,), (1361436059,), (1361436081,), (1361436083,), (1361436180,), (1361436208,), (1361436236,), (1361436255,), (1361436258,), (1361436261,), (1361436270,), (1361436277,), (1361436281,), (1361436306,), (1361436312,), (1361436316,), (1361436321,), (1361436324,), (1361436326,), (1361436350,), (1361436353,), (1361436355,), (1361436385,), (1361436388,), (1361436390,), (1361436392,), (1361436394,), (1361436429,), (1361436431,), (1361436433,), (1361436476,), (1361436479,), (1361436482,), (1361436532,), (1361436538,), (1361436541,), (1361436549,), (1361436571,), (1361436573,), (1361436575,), (1361436604,), (1361436606,), (1361436608,), (1361436610,), (1361436612,), (1361436637,), (1361436640,), (1361436643,), (1361436645,), (1361436647,), (1361436674,), (1361436676,), (1361436678,), (1361436680,), (1361436682,), (1361436684,), (1361436730,), (1361436725,), (1361436727,), (1361436761,), (1361436765,), (1361436767,), (1361436795,), (1361436798,), (1361436801,), (1361436946,), (1361436950,), (1361436953,), (1361436988,), (1361436990,), (1361436992,), (1361436994,), (1361437019,), (1361437022,), (1361437023,), (1361437049,), (1361437051,), (1361437114,), (1361437117,), (1361437149,), (1361437151,), (1361437153,), (1361437155,), (1361437157,), (1361437159,), (1361437222,), (1361437226,), (1361437232,), (1361437235,), (1361437236,), (1361437244,), (1361437274,), (1361437263,), (1361437265,), (1361437267,), (1361437269,), (1361437272,), (1361437300,), (1361437311,), (1361437339,), (1361437341,), (1361437345,), (1361437347,), (1361437395,), (1361437398,), (1361437401,), (1361437404,), (1361437437,), (1361437440,), (1361437443,), (1361437481,), (1361437483,), (1361437485,), (1361437487,), (1361437489,), (1361437524,), (1361437529,), (1361437533,), (1361437535,), (1361437564,), (1361437566,), (1361437568,), (1361437570,), (1361437572,), (1361437574,), (1361437604,), (1361437610,), (1361437615,), (1361437652,), (1361437656,), (1361437658,), (1361437660,), (1361437663,), (1361437667,), (1361437695,), (1361437698,), (1361437700,), (1361437747,), (1361437750,), (1361437753,), (1361437755,), (1361437757,), (1361437759,), (1361437789,), (1361437792,), (1361437795,), (1361437798,), (1361437800,), (1361437828,), (1361437831,), (1361437833,), (1361437866,), (1361437870,), (1361437874,), (1361437877,), (1361437879,), (1361437882,), (1361437943,), (1361437923,), (1361437933,), (1361437935,), (1361437938,), (1361437940,), (1361437971,), (1361437974,), (1361437977,), (1361437980,), (1361438015,), (1361438019,), (1361438022,), (1361438025,), (1361438027,), (1361438029,), (1361438060,), (1361438063,), (1361438065,), (1361438105,), (1361438107,), (1361438109,), (1361438151,), (1361438153,), (1361438194,), (1361438205,), (1361438211,), (1361438271,), (1361438274,), (1361438280,), (1361438334,), (1361438376,), (1361438379,), (1361438382,), (1361438385,), (1361438388,), (1361438432,), (1361438437,), (1361438475,), (1361438479,), (1361438481,), (1361438483,), (1361438485,), (1361438487,), (1361438512,), (1361438515,), (1361438517,), (1361438519,), (1361438522,), (1361438557,), (1361438559,), (1361438562,), (1361438586,), (1361438768,), (1361438771,), (1361438775,), (1361438804,), (1361438834,), (1361438858,), (1361439049,), (1361439024,), (1361439033,), (1361439035,), (1361439038,), (1361439042,), (1361439079,), (1361439083,), (1361439086,), (1361439088,), (1361439090,), (1361439119,), (1361439123,), (1361439127,), (1361439130,), (1361439168,), (1361439173,), (1361439175,), (1361439177,), (1361439179,), (1361439196,), (1361439200,), (1361439203,), (1361439207,), (1361439214,), (1361439221,), (1361439264,), (1361439272,), (1361439278,), (1361439324,), (1361439329,), (1361439331,), (1361439334,), (1361439337,), (1361439341,), (1361439372,), (1361439377,), (1361439380,), (1361439384,), (1361439387,), (1361439656,), (1361439686,), (1361439711,), (1361439738,), (1361439766,), (1361439793,), (1361440076,), (1361440109,), (1361440138,), (1361440403,), (1361440408,), (1361440411,), (1361440413,), (1361440420,), (1361440547,), (1361440552,), (1361440554,), (1361440557,), (1361440602,), (1361440605,), (1361440609,), (1361440611,), (1361440612,), (1361440892,), (1361440919,), (1361441461,), (1361441445,), (1361441450,), (1361441454,), (1361441458,), (1361441494,), (1361441508,), (1361441536,), (1361441562,), (1361441605,), (1361441638,), (1361441836,), (1361441840,), (1361441844,), (1361441848,), (1361441901,), (1361441909,), (1361441914,), (1361441943,), (1361441950,), (1361441953,), (1361441957,), (1361441994,), (1361441998,), (1361442001,), (1361442045,), (1361442049,), (1361442051,), (1361442054,), (1361442057,), (1361442093,), (1361442097,), (1361442099,), (1361442101,), (1361442103,), (1361442141,), (1361442146,), (1361442183,), (1361442187,), (1361442323,), (1361442326,), (1361442331,), (1361442408,), (1361442411,), (1361442414,), (1361442417,), (1361442420,), (1361442423,), (1361442453,), (1361442446,), (1361442449,), (1361442451,), (1361442488,), (1361442491,), (1361442492,), (1361442495,), (1361442499,), (1361442503,), (1361442524,), (1361442527,), (1361442531,), (1361442533,), (1361442573,), (1361442577,), (1361442580,), (1361442583,), (1361442586,), (1361442589,), (1361442615,), (1361442619,), (1361442622,), (1361442625,), (1361442628,), (1361442675,), (1361442679,), (1361442682,), (1361442684,), (1361442685,), (1361442715,), (1361442718,), (1361442721,), (1361442724,), (1361442726,), (1361442760,), (1361442763,), (1361442766,), (1361442769,), (1361442772,), (1361442807,), (1361442810,), (1361442813,), (1361442816,), (1361442877,), (1361442881,), (1361442884,), (1361442887,), (1361442890,), (1361442923,), (1361442927,), (1361442929,), (1361442932,), (1361442935,), (1361442975,), (1361442980,), (1361442982,), (1361442984,), (1361442986,), (1361442989,), (1361443022,), (1361443026,), (1361443028,), (1361443030,), (1361443033,), (1361443070,), (1361443073,), (1361443075,), (1361443077,), (1361443079,), (1361443108,), (1361443111,), (1361443114,), (1361443117,), (1361443156,), (1361443151,), (1361443154,), (1361443250,), (1361443391,), (1361443436,), (1361443438,), (1361443440,), (1361443448,), (1361443453,), (1361443569,), (1361443573,), (1361443576,), (1361443578,), (1361443587,), (1361443677,), (1361443681,), (1361443684,), (1361443738,), (1361443742,), (1361443781,), (1361443789,), (1361443792,), (1361443857,), (1361443902,), (1361443907,), (1361443910,), (1361444073,), (1361444099,), (1361444128,), (1361444365,), (1361444411,), (1361444449,), (1361444583,), (1361444900,), (1361444995,), (1361445024,), (1361445043,), (1361445156,), (1361445162,), (1361445165,), (1361445296,), (1361445324,), (1361445349,), (1361445362,), (1361445364,), (1361445592,), (1361445586,), (1361445589,), (1361445636,), (1361445640,), (1361445673,), (1361445676,), (1361445678,), (1361445680,), (1361445683,), (1361445711,), (1361445714,), (1361445717,), (1361445723,), (1361445724,), (1361445737,), (1361445741,), (1361445745,), (1361445747,), (1361445791,), (1361447382,), (1361450528,), (1361449920,), (1361450517,), (1361450521,), (1361450523,), (1361450525,), (1361450562,), (1361450566,), (1361450569,), (1361450607,), (1361450612,), (1361450616,), (1361450618,), (1361450648,), (1361450652,), (1361450655,), (1361450658,), (1361450660,), (1361450706,), (1361450708,), (1361450710,), (1361450751,), (1361450754,), (1361450757,), (1361450762,), (1361450768,), (1361450790,), (1361450792,), (1361450794,), (1361450801,), (1361450804,), (1361450813,), (1361450837,), (1361450841,), (1361450844,), (1361450847,), (1361450908,), (1361450911,), (1361450913,), (1361450952,), (1361451614,), (1361451657,), (1361451661,), (1361451666,), (1361451672,), (1361451720,), (1361451724,), (1361451770,), (1361451779,), (1361451782,), (1361451787,), (1361451791,), (1361451821,), (1361451823,), (1361451828,), (1361451830,), (1361451832,), (1361451859,), (1361451864,), (1361451867,), (1361451909,), (1361451913,), (1361451915,), (1361451917,), (1361451920,), (1361451954,), (1361451957,), (1361451960,), (1361451964,), (1361452002,), (1361452006,), (1361452009,), (1361452042,), (1361452048,), (1361452050,), (1361452056,), (1361452060,), (1361452091,), (1361452099,), (1361452103,), (1361452107,), (1361452177,), (1361452135,), (1361452138,), (1361452151,), (1361452174,), (1361452204,), (1361452209,), (1361452213,), (1361452216,), (1361452246,), (1361452250,), (1361452255,), (1361452301,), (1361452311,), (1361452315,), (1361452328,), (1361452340,), (1361452390,), (1361452394,), (1361452427,), (1361452524,), (1361452527,), (1361452570,), (1361452586,), (1361452597,), (1361452600,), (1361452632,), (1361452636,), (1361452640,), (1361452643,), (1361452680,), (1361452683,), (1361452684,), (1361452688,), (1361452691,), (1361452744,), (1361452747,), (1361452749,), (1361452752,), (1361452816,), (1361452820,), (1361452822,), (1361453013,), (1361453037,), (1361453041,), (1361453050,), (1361453057,), (1361453145,), (1361453153,), (1361453161,), (1361453177,), (1361453518,), (1361453530,), (1361453733,), (1361454772,), (1361454821,), (1361455596,), (1361455755,), (1361455772,), (1361455775,), (1361455789,), (1361455943,), (1361455954,), (1361455969,), (1361456114,), (1361456290,), (1361456311,), (1361456327,), (1361456343,), (1361456468,), (1361456483,), (1361456498,), (1361456675,), (1361456657,), (1361456870,), (1361456887,), (1361456903,), (1361456919,), (1361456929,), (1361457021,), (1361457043,), (1361457201,), (1361457211,), (1361457219,), (1361457339,), (1361457362,), (1361457388,), (1361457400,), (1361457414,), (1361457618,), (1361457642,), (1361457657,), (1361457873,), (1361457901,), (1361457928,), (1361457957,), (1361457981,), (1361457991,), (1361458188,), (1361458215,), (1361458249,), (1361458271,), (1361458562,), (1361458578,), (1361458586,), (1361458600,), (1361458876,), (1361458899,), (1361458934,), (1361460010,), (1361460029,), (1361460058,), (1361460368,), (1361460418,), (1361460440,), (1361460482,), (1361460791,), (1361460821,), (1361461194,), (1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,), (1361463927,), (1361463929,), (1361463932,), (1361463953,), (1361464007,), (1361464011,), (1361464015,), (1361464020,), (1361464064,), (1361464263,), (1361464265,), (1361464273,), (1361464278,), (1361464292,), (1361464596,), (1361464630,), (1361464664,), (1361464692,), (1361464719,), (1361464964,), (1361464967,), (1361464971,), (1361464973,), (1361464975,), (1361464978,), (1361465001,), (1361465005,), (1361465009,), (1361465068,), (1361465078,), (1361465081,), (1361465083,), (1361465124,), (1361465126,), (1361465128,), (1361465134,), (1361465137,), (1361465185,), (1361465189,), (1361465192,), (1361465384,), (1361465393,), (1361465564,), (1361465599,), (1361465615,), (1361465620,), (1361465634,), (1361465638,), (1361465803,), (1361465806,), (1361465808,), (1361465823,), (1361465850,), (1361465914,), (1361465917,), (1361465920,), (1361465923,), (1361465958,), (1361465965,), (1361465968,), (1361465972,), (1361466080,), (1361466085,), (1361466089,), (1361466095,), (1361466098,), (1361466102,), (1361466106,), (1361466148,), (1361466141,), (1361466202,), (1361466205,), (1361466207,), (1361466209,), (1361466212,), (1361466217,), (1361466244,), (1361466247,), (1361466254,), (1361466258,), (1361466261,), (1361466265,), (1361466332,), (1361466339,), (1361466344,), (1361466349,), (1361466356,), (1361466387,), (1361466394,), (1361466401,), (1361466414,), (1361466529,), (1361466532,), (1361466534,), (1361466536,), (1361466580,), (1361466585,), (1361466589,), (1361466626,), (1361466632,), (1361466638,), (1361466642,), (1361466644,), (1361466670,), (1361466675,), (1361466681,), (1361466717,), (1361466720,), (1361466722,), (1361466724,), (1361466727,), (1361466764,), (1361466770,), (1361466778,), (1361466806,), (1361466815,), (1361466823,), (1361466833,), (1361466867,), (1361466872,), (1361466913,), (1361466917,), (1361466955,), (1361467023,), (1361467011,), (1361467014,), (1361467017,), (1361467020,), (1361467064,), (1361467070,), (1361467073,), (1361467074,), (1361467076,), (1361467079,), (1361467107,), (1361467111,), (1361467113,), (1361467115,), (1361467148,), (1361467152,), (1361467154,), (1361467160,), (1361467162,), (1361467166,), (1361467196,), (1361467204,), (1361467209,), (1361467214,), (1361467219,), (1361467222,), (1361467315,), (1361467321,), (1361467324,), (1361467328,), (1361467332,), (1361467335,), (1361467478,), (1361467482,), (1361467488,), (1361467650,), (1361467655,), (1361467658,), (1361467661,), (1361467768,), (1361467772,), (1361467775,), (1361467791,), (1361467821,), (1361467822,), (1361467824,), (1361467962,), (1361467977,), (1361467988,), (1361468183,), (1361468200,), (1361468204,), (1361468226,), (1361468242,), (1361468358,), (1361468374,), (1361468387,), (1361468405,), (1361468421,), (1361468432,), (1361468561,), (1361468582,), (1361468599,), (1361468615,), (1361468630,), (1361468789,), (1361468805,), (1361468807,), (1361468819,), (1361469061,), (1361468990,), (1361469007,), (1361469020,), (1361469024,), (1361469040,), (1361469218,), (1361469234,), (1361469248,), (1361469302,), (1361469317,), (1361469450,), (1361469467,), (1361469482,), (1361469671,), (1361469686,), (1361469700,), (1361469718,), (1361469732,), (1361469892,), (1361469900,), (1361469917,), (1361469946,), (1361470117,), (1361470135,), (1361470157,), (1361470346,), (1361470361,), (1361470375,), (1361470383,), (1361470529,), (1361470539,), (1361470554,), (1361470569,), (1361470736,), (1361470937,), (1361470952,), (1361470968,), (1361471199,), (1361471297,), (1361471318,), (1361471349,), (1361471593,), (1361471610,), (1361471635,), (1361471650,), (1361471831,), (1361471848,), (1361471865,), (1361471882,), (1361472076,), (1361472094,), (1361472109,), (1361472125,), (1361472140,), (1361472155,), (1361472314,), (1361472332,), (1361472348,), (1361472522,), (1361492569,), (1361492572,), (1361492575,), (1361492619,), (1361492659,), (1361492663,), (1361492710,), (1361492751,), (1361492791,), (1361492796,), (1361492800,), (1361492804,), (1361492808,), (1361492834,), (1361492831,), (1361492869,), (1361492872,), (1361493010,), (1361493052,), (1361493056,), (1361493059,), (1361493062,), (1361493065,), (1361493098,), (1361493101,), (1361493104,), (1361493108,), (1361493134,), (1361493138,), (1361493142,), (1361493146,), (1361493150,), (1361493179,), (1361493184,), (1361493187,), (1361493189,), (1361493191,), (1361493224,), (1361493228,), (1361493267,), (1361493271,), (1361493275,), (1361493278,), (1361493283,), (1361493319,), (1361493323,), (1361493326,), (1361493328,), (1361493330,), (1361493334,), (1361493363,), (1361493366,), (1361493368,), (1361493371,), (1361493377,), (1361493406,), (1361493409,), (1361493411,), (1361493447,), (1361493466,), (1361493471,), (1361494248,), (1361494401,), (1361494403,), (1361494432,), (1361494499,), (1361494503,), (1361494506,), (1361494517,), (1361494545,), (1361494577,), (1361494841,), (1361494921,), (1361494951,), (1361494979,), (1361495008,), (1361495303,), (1361495307,), (1361495309,), (1361495331,), (1361495336,), (1361495346,), (1361495352,), (1361495363,), (1361495369,), (1361495396,), (1361495400,), (1361495402,), (1361495404,), (1361495408,), (1361495412,), (1361495437,), (1361495442,), (1361495445,), (1361495449,), (1361495543,), (1361495552,), (1361495568,), (1361495582,), (1361495587,), (1361495665,), (1361495698,), (1361495726,), (1361495751,), (1361495758,), (1361495858,), (1361495864,), (1361495929,), (1361496124,), (1361496127,), (1361496134,), (1361496146,), (1361496189,), (1361496198,), (1361496201,), (1361496203,), (1361496209,), (1361496212,), (1361496234,), (1361496238,), (1361496243,), (1361496246,), (1361496307,), (1361496309,), (1361496311,), (1361496313,), (1361496315,), (1361496318,), (1361496327,), (1361496328,), (1361496333,), (1361496375,), (1361496361,), (1361496367,), (1361496371,), (1361496929,), (1361496933,), (1361496937,), (1361496948,), (1361496985,), (1361496991,), (1361496994,), (1361496998,), (1361497003,), (1361497034,), (1361497035,), (1361497036,), (1361497037,), (1361497038,), (1361497039,), (1361497056,), (1361497061,), (1361497148,), (1361497185,), (1361497189,), (1361497193,), (1361497237,), (1361497242,), (1361497247,), (1361497283,), (1361497332,), (1361497337,), (1361497340,), (1361497345,), (1361497387,), (1361497396,), (1361497399,), (1361497402,), (1361497438,), (1361497444,), (1361497448,), (1361497451,), (1361497481,), (1361497489,), (1361497494,), (1361497496,), (1361497498,), (1361497504,), (1361497507,), (1361497511,), (1361497515,), (1361497520,), (1361497525,), (1361497532,), (1361497535,), (1361497538,), (1361497539,), (1361497542,), (1361497589,), (1361497595,), (1361497599,), (1361497602,), (1361497631,), (1361497635,), (1361497637,), (1361497641,), (1361497645,), (1361497721,), (1361497737,), (1361497749,), (1361497946,), (1361497962,), (1361497978,), (1361497996,), (1361498014,), (1361498220,), (1361498248,), (1361498273,), (1361498282,), (1361498298,), (1361498316,), (1361498692,), (1361498565,), (1361498661,), (1361498670,), (1361498926,), (1361498945,), (1361498965,), (1361499180,), (1361499191,), (1361499201,), (1361499217,), (1361499239,), (1361499392,), (1361499413,), (1361499433,), (1361499448,), (1361499465,), (1361499604,), (1361499618,), (1361499632,), (1361499646,), (1361499654,), (1361500019,), (1361500068,), (1361500099,), (1361500126,), (1361500417,), (1361500447,), (1361500475,), (1361500793,), (1361500829,), (1361500860,), (1361500892,), (1361500923,), (1361501191,), (1361501227,), (1361501251,), (1361501547,), (1361501570,), (1361501606,), (1361501937,), (1361501966,), (1361501988,), (1361502015,), (1361502041,), (1361502305,), (1361502327,), (1361502353,), (1361502391,), (1361502419,), (1361502693,), (1361502716,), (1361502733,), (1361502764,), (1361503032,), (1361503057,), (1361503091,), (1361503122,), (1361503147,), (1361503407,), (1361503434,), (1361503463,), (1361503491,), (1361503518,), (1361503918,), (1361503809,), (1361503857,), (1361503897,), (1361504196,), (1361504229,), (1361504250,), (1361504280,), (1361504310,), (1361504581,), (1361504603,), (1361504636,), (1361504651,), (1361504673,), (1361504698,), (1361504971,), (1361504997,), (1361505025,), (1361505350,), (1361505385,), (1361505412,), (1361505432,), (1361505451,), (1361505479,), (1361505731,), (1361505758,), (1361505787,), (1361505826,), (1361505853,), (1361506112,), (1361506209,), (1361506235,), (1361506256,), (1361506469,), (1361506486,), (1361506507,), (1361506533,), (1361506567,), (1361506865,), (1361506902,), (1361506931,), (1361506952,), (1361506987,), (1361507251,), (1361507278,), (1361507310,), (1361507649,), (1361507683,), (1361507715,), (1361507723,), (1361507749,), (1361507769,), (1361507988,), (1361508012,), (1361508040,), (1361508064,), (1361508081,), (1361508121,), (1361508346,), (1361508385,), (1361508425,), (1361509074,), (1361509097,), (1361509126,), (1361509154,), (1361509183,), (1361509210,), (1361509291,), (1361509325,), (1361509354,), (1361509379,), (1361509511,), (1361509486,), (1361509851,), (1361510207,), (1361510241,), (1361510268,), (1361510295,), (1361510577,), (1361510610,), (1361510651,), (1361510675,), (1361510972,), (1361510996,), (1361511018,), (1361511046,), (1361511079,), (1361511339,), (1361511358,), (1361511386,), (1361511724,), (1361511758,), (1361511784,), (1361511818,), (1361511845,), (1361511890,), (1361512129,), (1361512162,), (1361512190,), (1361512213,), (1361512262,), (1361512638,), (1361512679,), (1361512728,), (1361513084,), (1361513122,), (1361513162,), (1361513176,), (1361513185,), (1361513194,), (1361513416,), (1361513431,), (1361513444,), (1361513466,), (1361513492,), (1361513730,), (1361513769,), (1361513787,), (1361514319,), (1361514367,), (1361514398,), (1361514423,), (1361514452,), (1361514742,), (1361514771,), (1361514792,), (1361514816,), (1361514846,), (1361514872,), (1361515124,), (1361515149,), (1361515182,), (1361515596,), (1361515499,), (1361515544,), (1361515570,), (1361515908,), (1361515948,), (1361515953,), (1361516290,), (1361516318,), (1361516347,), (1361516398,), (1361516456,), (1361516825,), (1361516919,), (1361516945,), (1361516970,), (1361517504,), (1361517527,), (1361517552,), (1361517582,), (1361517653,), (1361517983,), (1361518018,), (1361518039,), (1361518065,), (1361518098,), (1361518418,), (1361518452,), (1361518516,), (1361518826,), (1361518855,), (1361518891,), (1361518918,), (1361518945,), (1361519202,), (1361519218,), (1361519249,), (1361519275,), (1361519313,), (1361519581,), (1361519609,), (1361519625,), (1361519657,), (1361519686,), (1361519714,), (1361519941,), (1361519991,), (1361520029,), (1361520356,), (1361520725,), (1361520749,), (1361520790,), (1361520839,), (1361521408,), (1361521443,), (1361521459,), (1361521487,), (1361521525,), (1361521886,), (1361521914,), (1361521946,), (1361522419,), (1361522371,), (1361522387,), (1361522404,), (1361522582,), (1361522610,), (1361522634,), (1361522643,), (1361522873,), (1361522890,), (1361522906,), (1361522916,), (1361523084,), (1361523100,), (1361523115,), (1361523129,), (1361523144,), (1361523154,), (1361523284,), (1361523298,), (1361523312,), (1361523325,), (1361523479,), (1361523497,), (1361523514,), (1361523526,), (1361523540,), (1361523719,), (1361523730,), (1361523739,), (1361523752,), (1361523761,), (1361523781,), (1361524002,), (1361524019,), (1361524030,), (1361524320,), (1361524325,), (1361524327,), (1361524329,), (1361524331,), (1361524334,), (1361524393,), (1361524398,), (1361524402,), (1361524406,), (1361524410,), (1361524414,), (1361524444,), (1361524450,), (1361524453,), (1361524494,), (1361524498,), (1361524502,), (1361524506,), (1361524511,), (1361524551,), (1361524557,), (1361524562,), (1361524570,), (1361524581,), (1361524590,), (1361524626,), (1361524628,), (1361524635,), (1361524644,), (1361524684,), (1361524692,), (1361524696,), (1361524699,), (1361524702,), (1361524704,), (1361524843,), (1361524837,), (1361524841,), (1361524874,), (1361524878,), (1361524928,), (1361524932,), (1361524935,), (1361524937,), (1361524980,), (1361524984,), (1361524989,), (1361524993,), (1361524996,), (1361525023,), (1361525028,), (1361525030,), (1361525033,), (1361525037,), (1361525077,), (1361525080,), (1361525082,), (1361525085,), (1361525117,), (1361525122,), (1361525125,), (1361525187,), (1361525205,), (1361525216,), (1361525226,), (1361525255,), (1361525296,), (1361525327,), (1361525381,), (1361525434,), (1361525549,), (1361525816,), (1361525823,), (1361525825,), (1361525839,), (1361525869,), (1361525989,), (1361525993,), (1361525996,), (1361525999,), (1361526002,), (1361526005,), (1361526043,), (1361526048,), (1361526051,), (1361526096,), (1361526101,), (1361526105,), (1361526114,), (1361526122,), (1361526196,), (1361526203,), (1361526204,), (1361526216,), (1361526224,), (1361526230,), (1361526268,), (1361526257,), (1361526262,), (1361526265,), (1361526300,), (1361526308,), (1361526311,), (1361526314,), (1361526318,), (1361526321,), (1361526347,), (1361526353,), (1361526361,), (1361526408,), (1361526412,), (1361526414,), (1361526501,), (1361526505,), (1361526966,), (1361526981,), (1361526989,), (1361526991,), (1361526994,), (1361527082,), (1361527087,), (1361527090,), (1361527221,), (1361527239,), (1361527258,), (1361527276,), (1361527285,), (1361527421,), (1361527437,), (1361527453,), (1361527470,), (1361527491,), (1361527508,), (1361527672,), (1361527683,), (1361527700,), (1361527716,), (1361527849,), (1361527858,), (1361527873,), (1361527883,), (1361527893,), (1361527909,), (1361528038,), (1361528053,), (1361528067,), (1361528085,), (1361528103,), (1361528119,), (1361528280,), (1361528270,), (1361528497,), (1361528522,), (1361528538,), (1361528553,), (1361528570,), (1361528580,), (1361528708,), (1361528725,), (1361528735,), (1361528750,), (1361528771,), (1361528787,), (1361528920,), (1361528932,), (1361528949,), (1361529133,), (1361529155,), (1361529170,), (1361529191,), (1361529201,), (1361529210,), (1361529337,), (1361529357,), (1361529375,), (1361529386,), (1361529406,), (1361529428,), (1361529564,), (1361529580,), (1361529599,), (1361529614,), (1361529772,), (1361529791,), (1361529810,), (1361529827,), (1361529849,), (1361529862,), (1361529982,), (1361529991,), (1361530001,), (1361530016,), (1361530031,), (1361530054,), (1361530189,), (1361530195,), (1361530198,), (1361530365,), (1361530396,), (1361530426,), (1361530436,), (1361530466,), (1361530614,), (1361530629,), (1361530639,), (1361530659,), (1361530930,), (1361530947,), (1361530982,), (1361531004,), (1361531031,), (1361531185,), (1361531201,), (1361531210,), (1361531228,), (1361531243,), (1361531264,), (1361531407,), (1361531680,), (1361531632,), (1361531647,), (1361531663,), (1361532072,), (1361532088,), (1361532097,), (1361532112,), (1361532256,), (1361532270,), (1361532285,), (1361532301,), (1361532460,), (1361532476,), (1361532491,), (1361532506,), (1361532527,), (1361532659,), (1361532676,), (1361532687,), (1361532701,), (1361532715,), (1361532730,), (1361532856,), (1361532883,), (1361532912,), (1361532927,), (1361533071,), (1361533086,), (1361533101,), (1361533116,), (1361533132,), (1361533284,), (1361533300,), (1361533310,), (1361533327,), (1361533344,), (1361533355,), (1361533470,), (1361533492,), (1361533509,), (1361533525,), (1361533682,), (1361533691,), (1361533719,), (1361533734,), (1361533886,), (1361533902,), (1361533923,), (1361533938,), (1361533950,), (1361533966,), (1361534057,), (1361534061,), (1361534075,), (1361534089,), (1361534254,), (1361534272,), (1361534290,), (1361534312,), (1361534333,), (1361534348,), (1361534491,), (1361534510,), (1361534531,), (1361534545,), (1361534707,), (1361534723,), (1361534739,), (1361534755,), (1361534776,), (1361534792,), (1361535029,), (1361534944,), (1361534986,), (1361535004,), (1361535290,), (1361535307,), (1361535322,), (1361535342,), (1361535419,), (1361535690,), (1361535707,), (1361535716,), (1361535732,), (1361535767,), (1361535784,), (1361535968,), (1361536040,), (1361536903,), (1361536917,), (1361536939,), (1361536948,), (1361537131,), (1361537144,), (1361537165,), (1361537203,), (1361537255,), (1361537296,), (1361537534,), (1361537550,), (1361537572,), (1361537790,), (1361537805,), (1361537831,), (1361537857,), (1361537872,), (1361537896,), (1361538065,), (1361538103,), (1361538143,), (1361538175,), (1361538193,), (1361538433,), (1361538477,), (1361538500,), (1361538508,), (1361538792,), (1361538802,), (1361538818,), (1361538857,), (1361539025,), (1361539047,), (1361539061,), (1361539070,), (1361539091,), (1361539235,), (1361539263,), (1361539276,), (1361539972,), (1361539996,), (1361540018,), (1361540033,), (1361540052,), (1361540100,), (1361540101,), (1361540120,), (1361540121,), (1361540133,), (1361540142,), (1361540151,), (1361540160,), (1361540195,), (1361540205,), (1361540298,), (1361540269,), (1361540280,), (1361540489,), (1361540516,), (1361540534,), (1361540555,), (1361540580,), (1361540599,), (1361540773,), (1361540787,), (1361540818,), (1361540862,), (1361540908,), (1361541170,), (1361541188,), (1361541202,), (1361541216,), (1361541236,), (1361541271,), (1361541483,), (1361541554,), (1361541589,), (1361541616,), (1361542336,), (1361544305,), (1361544396,), (1361544400,), (1361544447,), (1361544452,), (1361544456,), (1361544460,), (1361544463,), (1361544468,), (1361544493,), (1361544499,), (1361544504,), (1361544510,), (1361544543,), (1361544548,), (1361544784,), (1361544779,), (1361544834,), (1361544840,), (1361544842,), (1361544846,), (1361544850,), (1361544878,), (1361544883,), (1361544885,), (1361544888,), (1361544919,), (1361544923,), (1361544927,), (1361544931,), (1361544966,), (1361544975,), (1361544985,), (1361544988,), (1361544992,), (1361544996,), (1361545023,), (1361545028,), (1361545031,), (1361545034,), (1361545069,), (1361545073,), (1361545077,), (1361545080,), (1361545111,), (1361545115,), (1361545118,), (1361545120,), (1361545123,), (1361545126,), (1361545159,), (1361545165,), (1361545169,), (1361545173,), (1361545176,), (1361545181,), (1361545239,), (1361545244,), (1361545251,), (1361545306,), (1361545295,), (1361545298,), (1361545301,), (1361545303,), (1361545338,), (1361545342,), (1361545381,), (1361545386,), (1361545391,), (1361545396,), (1361545398,), (1361545433,), (1361545435,), (1361545440,), (1361545447,), (1361545451,), (1361545455,), (1361545479,), (1361545485,), (1361545490,), (1361545494,), (1361545675,), (1361545682,), (1361545685,), (1361545698,), (1361545764,), (1361545770,), (1361545775,), (1361545778,), (1361545783,), (1361545788,), (1361545882,), (1361545972,), (1361546168,), (1361546173,), (1361546176,), (1361546178,), (1361546180,), (1361546182,), (1361546208,), (1361546211,), (1361546217,), (1361546226,), (1361546234,), (1361546237,), (1361546259,), (1361546263,), (1361546265,), (1361546272,), (1361546276,), (1361546280,), (1361546304,), (1361546311,), (1361546317,), (1361546321,), (1361546353,), (1361546357,), (1361546361,), (1361546370,), (1361546381,), (1361546386,), (1361546412,), (1361546417,), (1361546421,), (1361546425,), (1361546437,), (1361546445,), (1361546473,), (1361546476,), (1361546480,), (1361546534,), (1361546519,), (1361546525,), (1361546528,), (1361546531,), (1361546582,), (1361546588,), (1361546599,), (1361546606,), (1361546612,), (1361546617,), (1361546634,), (1361546639,), (1361546647,), (1361546676,), (1361546681,), (1361546687,), (1361546751,), (1361546779,), (1361546807,), (1361546826,), (1361546832,), (1361546835,), (1361546956,), (1361546960,), (1361546963,), (1361546967,), (1361546985,), (1361547133,), (1361547162,), (1361547415,), (1361547420,), (1361547424,), (1361547428,), (1361547431,), (1361547458,), (1361547461,), (1361547463,), (1361547465,), (1361547468,), (1361547472,), (1361547498,), (1361547506,), (1361547516,), (1361547525,), (1361547530,), (1361547563,), (1361547568,), (1361547572,), (1361547577,), (1361547624,), (1361547655,), (1361547679,), (1361547682,), (1361547685,), (1361547719,), (1361547725,), (1361547728,), (1361547732,), (1361547735,), (1361547760,), (1361547763,), (1361547770,), (1361547777,), (1361547804,), (1361547811,), (1361547815,), (1361547818,), (1361548702,), (1361548920,), (1361548950,), (1361548982,), (1361549014,), (1361549022,), (1361549051,), (1361549054,), (1361549057,), (1361549066,), (1361549098,), (1361549102,), (1361549338,), (1361549393,), (1361549439,), (1361549466,), (1361549495,), (1361549524,), (1361550336,), (1361550362,), (1361550469,), (1361550474,), (1361550482,), (1361550490,), (1361550625,), (1361550587,), (1361550592,), (1361550594,), (1361550618,), (1361550673,), (1361550678,), (1361550682,), (1361550687,), (1361550712,), (1361550715,), (1361550718,), (1361550721,), (1361550786,), (1361550817,), (1361550847,), (1361550877,), (1361550906,), (1361550937,), (1361551155,), (1361551162,), (1361551167,), (1361551170,), (1361551172,), (1361551175,), (1361551205,), (1361551209,), (1361551213,), (1361551505,), (1361551540,), (1361551571,), (1361551577,), (1361551582,), (1361551600,), (1361551633,), (1361551638,), (1361551643,), (1361551647,), (1361551652,), (1361551657,), (1361551748,), (1361551756,), (1361551912,), (1361551915,), (1361551921,), (1361551927,), (1361551931,), (1361552065,), (1361552086,), (1361552093,), (1361552096,), (1361552102,), (1361552106,), (1361552209,), (1361552222,), (1361552227,), (1361552231,), (1361552235,), (1361552237,), (1361552260,), (1361552265,), (1361552268,), (1361552347,), (1361552351,), (1361552362,), (1361552367,), (1361552372,), (1361552573,), (1361552524,), (1361552540,), (1361552545,), (1361552548,), (1361552676,), (1361552685,), (1361552696,), (1361552699,), (1361552712,), (1361552744,), (1361552799,), (1361552878,), (1361552925,), (1361552938,), (1361552953,), (1361552970,), (1361552973,), (1361552976,), (1361553002,), (1361553008,), (1361553012,), (1361553016,), (1361553052,), (1361553057,), (1361553091,), (1361553097,), (1361553102,), (1361553148,), (1361553151,), (1361553187,), (1361553190,), (1361553193,), (1361553196,), (1361553199,), (1361553228,), (1361553234,), (1361553238,), (1361553244,), (1361553248,), (1361553251,), (1361553277,), (1361553283,), (1361553286,), (1361553289,), (1361553319,), (1361553324,), (1361553326,), (1361553329,), (1361553332,), (1361553334,), (1361553363,), (1361553366,), (1361553369,), (1361553404,), (1361553410,), (1361553507,), (1361553536,), (1361553567,), (1361553595,), (1361553598,), (1361553604,), (1361553839,), (1361553843,), (1361553887,), (1361553891,), (1361553894,), (1361553896,), (1361553924,), (1361553926,), (1361553928,), (1361553931,), (1361553960,), (1361553966,), (1361553970,), (1361554005,), (1361554011,), (1361554014,), (1361554056,), (1361554059,), (1361554062,), (1361554066,), (1361554070,), (1361554074,), (1361554100,), (1361554092,), (1361554096,), (1361554150,), (1361554155,), (1361554188,), (1361554192,), (1361554194,), (1361554333,), (1361554338,), (1361554345,), (1361554459,), (1361554467,), (1361554470,), (1361554475,), (1361554527,), (1361554533,), (1361554586,), (1361554587,), (1361554588,), (1361554589,), (1361554590,), (1361554665,), (1361554696,), (1361554725,), (1361554758,), (1361554863,), (1361554866,), (1361554878,), (1361554882,), (1361554932,), (1361554937,), (1361554939,), (1361554942,), (1361554946,), (1361554951,), (1361554977,), (1361554981,), (1361554984,), (1361554987,), (1361554992,), (1361554994,), (1361555026,), (1361555029,), (1361555032,), (1361555035,), (1361555038,), (1361555093,), (1361555096,), (1361555105,), (1361555109,), (1361555112,), (1361555256,), (1361555260,), (1361555263,), (1361555266,), (1361555341,), (1361555343,), (1361555350,), (1361555353,), (1361555359,), (1361555374,), (1361555507,), (1361555512,), (1361555516,), (1361555648,), (1361555652,), (1361555654,), (1361555690,), (1361555973,), (1361555825,), (1361555885,), (1361555917,), (1361555946,), (1361556085,), (1361556088,), (1361556090,), (1361556093,), (1361556096,), (1361556128,), (1361556132,), (1361556134,), (1361556169,), (1361556178,), (1361556182,), (1361556239,), (1361556244,), (1361556250,), (1361556261,), (1361556717,), (1361556737,), (1361556741,), (1361556746,), (1361556749,), (1361556979,), (1361557048,), (1361557053,), (1361557057,), (1361557078,), (1361557084,), (1361557287,), (1361557329,), (1361557356,), (1361557361,), (1361557502,), (1361557524,), (1361557528,), (1361557532,), (1361557536,), (1361557540,), (1361557573,), (1361557579,), (1361557583,), (1361557587,), (1361557622,), (1361557628,), (1361557634,), (1361557690,), (1361557696,), (1361557700,), (1361557704,), (1361557764,), (1361557769,), (1361557772,), (1361557775,), (1361557778,), (1361557965,), (1361557970,), (1361557974,), (1361557979,), (1361557996,), (1361558025,), (1361558055,), (1361558084,), (1361558147,), (1361558136,), (1361558141,), (1361558185,), (1361558192,), (1361558202,), (1361558208,), (1361558211,), (1361558248,), (1361558254,), (1361558257,), (1361558260,), (1361558264,), (1361558298,), (1361558302,), (1361558305,), (1361558309,), (1361558313,), (1361558348,), (1361558353,), (1361558471,), (1361558477,), (1361558481,), (1361558498,), (1361558544,), (1361558548,), (1361558551,), (1361558591,), (1361558597,), (1361558601,), (1361558604,), (1361558606,), (1361558632,), (1361558638,), (1361558641,), (1361558676,), (1361558681,), (1361558685,), (1361558688,), (1361558767,), (1361558772,), (1361558775,), (1361558778,), (1361558811,), (1361558891,), (1361558895,), (1361558899,), (1361558903,), (1361559009,), (1361559019,), (1361559025,), (1361559029,), (1361559104,), (1361559111,), (1361559115,), (1361559120,), (1361559156,), (1361559161,), (1361559165,), (1361559169,), (1361559173,), (1361560560,), (1361560692,), (1361560702,), (1361560792,), (1361560798,), (1361560803,), (1361560851,), (1361560854,), (1361560856,), (1361560858,), (1361560861,), (1361560905,), (1361560910,), (1361560915,), (1361560957,), (1361560963,), (1361560974,), (1361561024,), (1361561032,), (1361561036,), (1361561040,), (1361561044,), (1361561048,), (1361561090,), (1361561083,), (1361561087,), (1361561135,), (1361561140,), (1361561144,), (1361561147,), (1361561151,), (1361561155,), (1361561187,), (1361561190,), (1361561192,), (1361561194,), (1361561197,), (1361561198,), (1361561237,), (1361561239,), (1361561241,), (1361561243,), (1361561288,), (1361561292,), (1361561300,), (1361561307,), (1361561311,), (1361561314,), (1361561355,), (1361561358,), (1361561361,), (1361561407,), (1361561414,), (1361561416,), (1361561420,), (1361561424,), (1361561427,), (1361561465,), (1361561468,), (1361561470,), (1361561472,), (1361561474,), (1361561511,), (1361561519,), (1361561523,), (1361561527,), (1361561531,), (1361561535,), (1361561563,), (1361561565,), (1361561568,), (1361561569,), (1361561572,), (1361561576,), (1361561605,), (1361561609,), (1361561616,), (1361561626,), (1361561664,), (1361561667,), (1361561670,), (1361561673,), (1361561677,), (1361561707,), (1361561710,), (1361561714,), (1361561723,), (1361561726,), (1361561730,), (1361561787,), (1361561793,), (1361561797,), (1361561800,), (1361561808,), (1361561811,), (1361561814,), (1361561818,), (1361561820,), (1361561856,), (1361561839,), (1361561844,), (1361561847,), (1361561850,), (1361561853,), (1361561881,), (1361561885,), (1361561888,), (1361561891,), (1361561931,), (1361561935,), (1361561938,), (1361561941,), (1361561944,), (1361561973,), (1361561976,), (1361561979,), (1361561983,), (1361562020,), (1361562024,), (1361562029,), (1361562035,), (1361562038,), (1361562045,), (1361562067,), (1361562070,), (1361562072,), (1361562075,), (1361562078,), (1361562081,), (1361562105,), (1361562111,), (1361562115,), (1361562140,), (1361562143,), (1361562145,), (1361562147,), (1361562149,), (1361562152,), (1361562284,), (1361562293,), (1361562301,), (1361562307,), (1361562334,), (1361562342,), (1361562373,), (1361562376,), (1361562378,), (1361562387,), (1361562421,), (1361562425,), (1361562428,), (1361562444,), (1361562455,), (1361562456,), (1361562481,), (1361562484,), (1361562486,), (1361562543,), (1361562549,), (1361562555,), (1361562565,), (1361562569,), (1361562573,), (1361562637,), (1361562639,), (1361562645,), (1361562649,), (1361562652,), (1361562655,), (1361562677,), (1361562683,), (1361562689,), (1361562694,), (1361562740,), (1361562731,), (1361562733,), (1361562735,), (1361562737,), (1361562776,), (1361562780,), (1361562785,), (1361562811,), (1361562817,), (1361562849,), (1361562852,), (1361562854,), (1361562862,), (1361562894,), (1361562899,), (1361562906,), (1361562911,), (1361562913,), (1361562914,), (1361562936,), (1361562941,), (1361562944,), (1361562952,), (1361563003,), (1361563006,), (1361563010,), (1361563015,), (1361563017,), (1361563045,), (1361563049,), (1361563052,), (1361563055,), (1361563058,), (1361563060,), (1361563086,), (1361563088,), (1361563090,), (1361563095,), (1361563098,), (1361563125,), (1361563129,), (1361563132,), (1361563194,), (1361563203,), (1361563211,), (1361563217,), (1361563293,), (1361563298,), (1361563332,), (1361563335,), (1361563337,), (1361563339,), (1361563342,), (1361563370,), (1361563373,), (1361563480,), (1361563505,), (1361563537,), (1361563562,), (1361563792,), (1361563794,), (1361563932,), (1361563928,), (1361563965,), (1361563969,), (1361563972,), (1361564108,), (1361564111,), (1361564139,), (1361564141,), (1361564143,), (1361564187,), (1361564192,), (1361564197,), (1361564202,), (1361564207,), (1361564214,), (1361564299,), (1361564316,), (1361564324,), (1361564921,), (1361565044,), (1361565122,), (1361565187,), (1361565217,), (1361565505,), (1361565535,), (1361565563,), (1361565590,), (1361565621,), (1361565646,), (1361565685,), (1361565689,), (1361565692,), (1361565772,), (1361565778,), (1361565802,), (1361565898,), (1361565991,), (1361566268,), (1361566314,), (1361566417,), (1361566429,), (1361566447,), (1361566564,), (1361566575,), (1361566578,), (1361566583,), (1361566587,), (1361566833,), (1361566846,), (1361566856,), (1361566860,), (1361566882,), (1361566915,), (1361567017,), (1361567023,), (1361567054,), (1361567084,), (1361567112,), (1361567334,), (1361567322,), (1361567327,), (1361567331,), (1361567366,), (1361567370,), (1361567372,), (1361567374,), (1361567377,), (1361567451,), (1361567454,), (1361567457,), (1361567459,), (1361567461,), (1361567596,), (1361567628,), (1361567655,), (1361567657,), (1361567660,), (1361567689,), (1361567692,), (1361567697,), (1361567706,), (1361567712,), (1361567715,), (1361567752,), (1361567756,), (1361567758,), (1361567815,), (1361567821,), (1361567825,), (1361567829,), (1361567833,), (1361567836,), (1361567972,), (1361567999,), (1361568024,), (1361568057,), (1361568089,), (1361568116,), (1361568281,), (1361568307,), (1361568334,), (1361568372,), (1361568374,), (1361568376,), (1361568378,), (1361568381,), (1361568419,), (1361568424,), (1361568428,), (1361568435,), (1361568485,), (1361568492,), (1361568500,), (1361568526,), (1361568553,), (1361568581,), (1361568687,), (1361568691,), (1361568705,), (1361568709,), (1361568722,), (1361568794,), (1361568798,), (1361568800,), (1361568803,), (1361568806,), (1361568963,), (1361568849,), (1361568874,), (1361568906,), (1361568933,), (1361569017,), (1361569020,), (1361569023,), (1361569030,), (1361569037,), (1361569064,), (1361569067,), (1361569069,), (1361569071,), (1361569075,), (1361569081,), (1361569111,), (1361569114,), (1361569119,), (1361569122,), (1361569163,), (1361569168,), (1361569170,), (1361569173,), (1361569176,), (1361569312,), (1361569316,), (1361569319,), (1361569322,), (1361569346,), (1361569373,), (1361569375,), (1361569376,), (1361569395,), (1361569400,), (1361569403,), (1361569406,), (1361569409,), (1361569432,), (1361569484,), (1361570446,), (1361570467,), (1361570470,), (1361570474,), (1361570479,), (1361570483,), (1361570505,), (1361570508,), (1361570511,), (1361570513,), (1361570516,), (1361570519,), (1361570541,), (1361570549,), (1361570557,), (1361570575,), (1361570577,), (1361570579,), (1361570583,), (1361570588,), (1361570592,), (1361570616,), (1361570621,), (1361570627,), (1361570632,), (1361570661,), (1361570664,), (1361570667,), (1361570671,), (1361570691,), (1361570700,), (1361570703,), (1361570706,), (1361570707,), (1361570709,), (1361570724,), (1361570727,), (1361570729,), (1361570753,), (1361570755,), (1361570757,), (1361570759,), (1361570774,), (1361570806,), (1361570809,), (1361570812,), (1361570909,), (1361570919,), (1361570920,), (1361570947,), (1361570951,), (1361570955,), (1361570994,), (1361570981,), (1361570983,), (1361570985,), (1361570989,), (1361570991,), (1361571014,), (1361571017,), (1361571019,), (1361571022,), (1361571056,), (1361571058,), (1361571064,), (1361571077,), (1361571097,), (1361571100,), (1361571102,), (1361571105,), (1361571108,), (1361571109,), (1361571125,), (1361571130,), (1361571135,), (1361571138,), (1361571141,), (1361571165,), (1361571167,), (1361571169,), (1361571172,), (1361571197,), (1361571203,), (1361571211,), (1361571214,), (1361571216,), (1361571237,), (1361571239,), (1361571242,), (1361571245,), (1361571248,), (1361571250,), (1361571269,), (1361571272,), (1361571281,), (1361571313,), (1361571315,), (1361571317,), (1361571319,), (1361571322,), (1361571325,), (1361571348,), (1361571350,), (1361571353,), (1361571356,), (1361571359,), (1361571362,), (1361571385,), (1361571389,), (1361571391,), (1361571392,), (1361571422,), (1361571424,), (1361571428,), (1361571436,), (1361571443,), (1361571449,), (1361571498,), (1361571502,), (1361571505,), (1361571508,), (1361571511,), (1361571546,), (1361571535,), (1361571537,), (1361571540,), (1361571543,), (1361571567,), (1361571570,), (1361571573,), (1361571576,), (1361571579,), (1361571593,), (1361571595,), (1361571602,), (1361571605,), (1361571607,), (1361571634,), (1361571636,), (1361571638,), (1361571642,), (1361571644,), (1361571684,), (1361571687,), (1361571690,), (1361571691,), (1361571715,), (1361571719,), (1361571722,), (1361571725,), (1361571746,), (1361571785,), (1361571787,), (1361571789,), (1361571792,), (1361571796,), (1361571825,), (1361571827,), (1361571829,), (1361571831,), (1361571833,), (1361571835,), (1361571849,), (1361571852,), (1361571855,), (1361571858,), (1361571883,), (1361571889,), (1361571893,), (1361571895,), (1361571898,), (1361571900,), (1361571920,), (1361571925,), (1361571929,), (1361571932,), (1361571958,), (1361571960,), (1361571962,), (1361571964,), (1361571967,), (1361571970,), (1361571991,), (1361571994,), (1361572001,), (1361572008,), (1361572032,), (1361572038,), (1361572040,), (1361572042,), (1361572046,), (1361572048,), (1361572081,), (1361572070,), (1361572072,), (1361572075,), (1361572078,), (1361572103,), (1361572105,), (1361572107,), (1361572110,), (1361572359,), (1361572362,), (1361572366,), (1361572370,), (1361572394,), (1361572397,), (1361572404,), (1361572406,), (1361572409,), (1361572428,), (1361572431,), (1361572435,), (1361572438,), (1361572442,), (1361572474,), (1361572486,), (1361572490,), (1361572494,), (1361572497,), (1361572500,), (1361572515,), (1361572517,), (1361572519,), (1361572540,), (1361572543,), (1361572545,), (1361572557,), (1361572566,), (1361572568,), (1361572595,), (1361572586,), (1361572588,), (1361572590,), (1361572592,), (1361572618,), (1361572621,), (1361572624,), (1361572671,), (1361572672,), (1361572675,), (1361572678,), (1361572681,), (1361572683,), (1361572704,), (1361572707,), (1361572710,), (1361572714,), (1361572727,), (1361572728,), (1361572783,), (1361572786,), (1361572788,), (1361572789,), (1361572791,), (1361573193,), (1361573227,), (1361573232,), (1361573235,), (1361573239,), (1361573242,), (1361573261,), (1361573268,), (1361573271,), (1361573273,), (1361573275,), (1361573277,), (1361573296,), (1361573300,), (1361573305,), (1361573330,), (1361573333,), (1361573335,), (1361573337,), (1361573340,), (1361573343,), (1361573370,), (1361573362,), (1361573365,), (1361573367,), (1361573403,), (1361573405,), (1361573407,), (1361573410,), (1361573434,), (1361573439,), (1361573445,), (1361573448,), (1361573451,), (1361573455,), (1361573474,), (1361573476,), (1361573499,), (1361573502,), (1361573505,), (1361573508,), (1361573511,), (1361573519,), (1361573543,), (1361573545,), (1361573546,), (1361573549,), (1361573552,), (1361573574,), (1361573577,), (1361573580,), (1361573583,), (1361573586,), (1361573609,), (1361573611,), (1361573615,), (1361573618,), (1361573621,), (1361573624,), (1361573640,), (1361573644,), (1361573647,), (1361573650,), (1361573736,), (1361573737,), (1361573740,), (1361573745,), (1361573748,), (1361573751,), (1361573881,), (1361573884,), (1361573887,), (1361573890,), (1361573899,), (1361574041,), (1361574045,), (1361574048,), (1361574130,), (1361574134,), (1361574137,), (1361574140,), (1361574144,), (1361574194,), (1361574197,), (1361574200,), (1361574203,), (1361574206,), (1361574209,), (1361574211,), (1361574214,), (1361574244,), (1361574246,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28052025': {'nb_upload': 15, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23421668]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] map_info['map_portfolio_photo'] : {23421668: [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396]} final : True mtd_id 4302 list_pids : [1361544784, 1361544548, 1361544543, 1361544510, 1361544504, 1361544499, 1361544493, 1361544468, 1361544463, 1361544460, 1361544456, 1361544452, 1361544447, 1361544400, 1361544396] Looping around the photos to save general results len do output : 1 /23421668Didn'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, '2982204') ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204') ('4302', None, None, None, None, None, None, None, '2982204') ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204') 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, '23421668', 'None', None, None, None, None, '2982204'), ('4302', '23421668', '1361544784', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544548', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544543', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544510', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544504', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544499', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544493', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544468', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544463', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544460', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544456', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544452', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544447', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544400', None, None, None, None, None, '2982204'), ('4302', '23421668', '1361544396', None, None, None, None, None, '2982204')] time used for this insertion : 0.12330436706542969 save_final save missing photos in datou_result : time spend for datou_step_exec : 18.11351728439331 time spend to save output : 0.12356328964233398 total time spend for step 5 : 18.237080574035645 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 (2982204) 2.46user 2.43system 0:27.87elapsed 17%CPU (0avgtext+0avgdata 160168maxresident)k 6024inputs+11808outputs (71major+75190minor)pagefaults 0swaps