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 : 2393859 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 (3904421) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3904421) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649626 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3904421'] with mtr_portfolio_ids : ['27649626'] and first list_photo_ids : [] new path : /proc/2393859/ Name: python3 Umask: 0002 State: R (running) Tgid: 2393859 Ngid: 0 Pid: 2393859 PPid: 2393858 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2393859 NSpid: 2393859 NSpgid: 2392810 NSsid: 2392810 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98504 kB VmRSS: 98504 kB RssAnon: 59848 kB RssFile: 38656 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2393859', 'Ngid': '0', 'Pid': '2393859', 'PPid': '2393858', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2393859', 'NSpid': '2393859', 'NSpgid': '2392810', 'NSsid': '2392810', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98504 kB', 'VmRSS': '98504 kB', 'RssAnon': '59848 kB', 'RssFile': '38656 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '2393859', '1106856', '0', '1106856', '865608', '98504', b'', 'marlene', '3904421') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27649626) 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 (3904421 ) ) 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 (27649626) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1388453217, 'portfolio_id': 27649626}, {'photo_id': 1388453194, 'portfolio_id': 27649626}, {'photo_id': 1388453193, 'portfolio_id': 27649626}, {'photo_id': 1388453192, 'portfolio_id': 27649626}, {'photo_id': 1388453190, 'portfolio_id': 27649626}, {'photo_id': 1388453107, 'portfolio_id': 27649626}, {'photo_id': 1388453098, 'portfolio_id': 27649626}, {'photo_id': 1388452230, 'portfolio_id': 27649626}] map_portfolio_id_photo_id: {27649626: [1388453217, 1388453194, 1388453193, 1388453192, 1388453190, 1388453107, 1388453098, 1388452230]} ##### 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.05100202560424805 #### 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 Oct 9 16:04:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27649626) 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 : 27649626 get user id for portfolio 27649626 get sub ptf for main ptf 27649626, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'kraft', 'metal', 'cartonnette', 'autre_refus', 'plastique', 'environnement', 'flou', 'papier', 'mal_croppe', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27649626 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','kraft','metal','cartonnette','autre_refus','plastique','environnement','flou','papier','mal_croppe','Carton_brun')) 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`=27649626 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','kraft','metal','cartonnette','autre_refus','plastique','environnement','flou','papier','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27649626, 'sub_port_id': 27649668, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655123, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'kraft': {'main_port_id': 27649626, 'sub_port_id': 27649669, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655124, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'metal': {'main_port_id': 27649626, 'sub_port_id': 27649670, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655125, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'autre_refus': {'main_port_id': 27649626, 'sub_port_id': 27649671, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655126, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'Carton_brun': {'main_port_id': 27649626, 'sub_port_id': 27649672, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655127, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'papier': {'main_port_id': 27649626, 'sub_port_id': 27649673, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655128, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'plastique': {'main_port_id': 27649626, 'sub_port_id': 27649674, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655129, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'flou': {'main_port_id': 27649626, 'sub_port_id': 27649675, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655130, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'cartonnette': {'main_port_id': 27649626, 'sub_port_id': 27649676, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655131, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'environnement': {'main_port_id': 27649626, 'sub_port_id': 27649678, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655132, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'Carton_gris': {'main_port_id': 27649626, 'sub_port_id': 27649679, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655133, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 27649626, 'sub_port_id': 27649680, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655134, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649668 , 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=27649626 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 (27649668) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649669 , 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=27649626 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 (27649669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649670 , 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=27649626 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 (27649670) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649671 , 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=27649626 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 (27649671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649672 , 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=27649626 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 (27649672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649673 , 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=27649626 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 (27649673) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649674 , 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=27649626 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 (27649674) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649675 , 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=27649626 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 (27649675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649676 , 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=27649626 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 (27649676) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649678 , 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=27649626 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 (27649678) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649679 , 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=27649626 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 (27649679) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27649680 , 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=27649626 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 (27649680) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27649626) result : ((1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27649626 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','kraft','metal','cartonnette','autre_refus','plastique','environnement','flou','papier','mal_croppe','Carton_brun')) 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`=27649626 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','kraft','metal','cartonnette','autre_refus','plastique','environnement','flou','papier','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27649626, 'sub_port_id': 27649700, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655171, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'kraft': {'main_port_id': 27649626, 'sub_port_id': 27649701, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655172, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'metal': {'main_port_id': 27649626, 'sub_port_id': 27649702, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655173, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'autre_refus': {'main_port_id': 27649626, 'sub_port_id': 27649703, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655174, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'Carton_brun': {'main_port_id': 27649626, 'sub_port_id': 27649704, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655175, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'papier': {'main_port_id': 27649626, 'sub_port_id': 27649705, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655176, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'plastique': {'main_port_id': 27649626, 'sub_port_id': 27649706, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655177, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'flou': {'main_port_id': 27649626, 'sub_port_id': 27649710, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655178, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'cartonnette': {'main_port_id': 27649626, 'sub_port_id': 27649726, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655179, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'environnement': {'main_port_id': 27649626, 'sub_port_id': 27649727, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655180, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'Carton_gris': {'main_port_id': 27649626, 'sub_port_id': 27649728, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655181, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 27649626, 'sub_port_id': 27649729, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18655182, 'last_updated_at': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 16, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649679 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27649729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27649680 lien utilise dans velours : https://marlene.fotonower.com/velours/27649700,27649701,27649702,27649703,27649704,27649705,27649706,27649710,27649726,27649727,27649728,27649729?tags=mal_croppe,kraft,metal,autre_refus,Carton_brun,papier,plastique,flou,cartonnette,environnement,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27649626]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] map_info['map_portfolio_photo'] : {27649626: [1388453217, 1388453194, 1388453193, 1388453192, 1388453190, 1388453107, 1388453098, 1388452230]} final : False mtd_id 4302 list_pids : [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] Looping around the photos to save general results len do output : 1 /27649626. 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, '3904421') ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '27649626', "{'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680}", None, None, None, None, '3904421'), ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421')] time used for this insertion : 0.03612017631530762 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.002522945404053 time spend to save output : 0.03633689880371094 total time spend for step 1 : 5.038859844207764 step2:final Thu Oct 9 16:05: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 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 (27649626) 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 27649626 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1388452230,1388453107,1388453098,1388453194,1388453193,1388453192,1388453190,1388453217); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27649626]) Inside saveOutput : final : False verbose : True original output for save of step final : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} new output for save of step final : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] map_info['map_portfolio_photo'] : {27649626: [1388453217, 1388453194, 1388453193, 1388453192, 1388453190, 1388453107, 1388453098, 1388452230]} final : False mtd_id 4302 list_pids : [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] Looping around the photos to save general results len do output : 5 /1388453217.Didn't retrieve data . /1388453194.Didn't retrieve data . /1388453193.Didn't retrieve data . /1388453192.Didn't retrieve data . /1388453190.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, '3904421') ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421') 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', '27649626', '1388453217', '0.0', None, None, None, None, '3904421'), ('4302', '27649626', '1388453194', '0.0', None, None, None, None, '3904421'), ('4302', '27649626', '1388453193', '0.0', None, None, None, None, '3904421'), ('4302', '27649626', '1388453192', '0.0', None, None, None, None, '3904421'), ('4302', '27649626', '1388453190', '0.0', None, None, None, None, '3904421')] time used for this insertion : 0.0373539924621582 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.20260000228881836 time spend to save output : 0.0375514030456543 total time spend for step 2 : 0.24015140533447266 step3:velours_tree Thu Oct 9 16:05:05 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 : {27649626: [{'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680}]} input_args_next_step : {27649626: ()} output_args : {27649626: [{'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680}]} args : 27649626 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27649626) 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([27649626]) 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.28848910331726074 time spend to save output : 7.176399230957031e-05 total time spend for step 3 : 0.2885608673095703 step4:send_mail_cod Thu Oct 9 16:05:05 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 : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} input_args_next_step : {1388453217: ()} output_args : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} args : 1388453217 depend.output_id : 0 input_args_next_step : {1388453217: ('0.0',), 1388453194: ()} output_args : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} args : 1388453194 depend.output_id : 0 input_args_next_step : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ()} output_args : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} args : 1388453193 depend.output_id : 0 input_args_next_step : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ()} output_args : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} args : 1388453192 depend.output_id : 0 input_args_next_step : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ()} output_args : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',)} args : 1388453190 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 : {27649626: [{'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680}]} input_args_next_step : {1388453217: ('0.0',), 1388453194: ('0.0',), 1388453193: ('0.0',), 1388453192: ('0.0',), 1388453190: ('0.0',), 27649626: ()} output_args : {27649626: [{'mal_croppe': 27649668, 'kraft': 27649669, 'metal': 27649670, 'autre_refus': 27649671, 'Carton_brun': 27649672, 'papier': 27649673, 'plastique': 27649674, 'flou': 27649675, 'cartonnette': 27649676, 'environnement': 27649678, 'Carton_gris': 27649679, 'Teint_Dans_La_Masse': 27649680}]} args : 27649626 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 :6, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27649626) 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_view ph WHERE photo_id IN (1388453217,1388453194,1388453193,1388453192,1388453190) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1388453190 begin to download photo : 1388453193 begin to download photo : 1388453217 download finish for photo 1388453193 begin to download photo : 1388453194 download finish for photo 1388453190 begin to download photo : 1388453192 download finish for photo 1388453217 download finish for photo 1388453194 download finish for photo 1388453192 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette276496681760018705/ imagette276496691760018705/ imagette276496701760018705/ imagette276496711760018705/ imagette276496741760018705/ imagette276496751760018705/ imagette276496761760018705/ imagette276496721760018705/ imagette276496791760018705/ imagette276496801760018705/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P27649626_09-10-2025_16_05_05.pdf 27649668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496681760018705 27649669 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496691760018705 27649670 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496701760018705 27649671 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496711760018705 27649674 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496741760018705 27649675 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496751760018705 27649676 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496761760018705 27649672 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496721760018705 27649679 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496791760018705 27649680 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649680 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276496801760018705 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27649626 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27649700,27649701,27649702,27649703,27649704,27649705,27649706,27649710,27649726,27649727,27649728,27649729?tags=mal_croppe,kraft,metal,autre_refus,Carton_brun,papier,plastique,flou,cartonnette,environnement,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1388453217] : ('0.0',) no score found for photo 1388453217 We are sending mail with results at report@fotonower.com args[1388453194] : ('0.0',) no score found for photo 1388453194 We are sending mail with results at report@fotonower.com args[1388453193] : ('0.0',) no score found for photo 1388453193 We are sending mail with results at report@fotonower.com args[1388453192] : ('0.0',) no score found for photo 1388453192 We are sending mail with results at report@fotonower.com args[1388453190] : ('0.0',) no score found for photo 1388453190 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649626 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_P27649626_09-10-2025_16_05_05.pdf results_Auto_P27649626_09-10-2025_16_05_05.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649626_09-10-2025_16_05_05.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','27649626','results_Auto_P27649626_09-10-2025_16_05_05.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649626_09-10-2025_16_05_05.pdf','pdf','','0.06','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27649626]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] map_info['map_portfolio_photo'] : {27649626: [1388453217, 1388453194, 1388453193, 1388453192, 1388453190, 1388453107, 1388453098, 1388452230]} final : False mtd_id 4302 list_pids : [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] 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, '3904421') ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '27649626', '1388453217', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421')] time used for this insertion : 0.03554964065551758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9149680137634277 time spend to save output : 0.03576064109802246 total time spend for step 4 : 1.9507286548614502 step5:split_time_score Thu Oct 9 16:05:07 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 : ['27649626'] 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 : [('27649626',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27649626) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1388453217: {'path': 'temp/1760018705_2393859_1388453217_ceede0fe23cdd06fcabe22ef494731cb.jpg', 'extension': 'jpg'}, 1388453193: {'path': 'temp/1760018705_2393859_1388453193_6bbd6c4eece8d7581bb975a5f2c3f0ac.jpg', 'extension': 'jpg'}, 1388453194: {'path': 'temp/1760018705_2393859_1388453194_baad51b9c09fdfa282cb70f01bedc90c.jpg', 'extension': 'jpg'}, 1388453190: {'path': 'temp/1760018705_2393859_1388453190_a04e014521b673292202d506ac915031.jpg', 'extension': 'jpg'}, 1388453192: {'path': 'temp/1760018705_2393859_1388453192_910835a3d496556e44077f9f6aadd7ef.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 = 27649626; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27649626 group by h (('16', 8),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27649626 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 (27649626) 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 (27649626) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09102025 27649626 Nombre de photos uploadées : 8 / 23040 (0%) 09102025 27649626 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 09102025 27649626 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1388452230, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/fe2b8368e725943c5d4b536fa0b449c8.jpg', 'username': None, 'uploaded_at': 1760018467, 'text': 'image_09102025_16_00_33_9123.jpg'}, {'photo_id': 1388453107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/a36bf83ce744775c7be79926484d48d7.jpg', 'username': None, 'uploaded_at': 1760018528, 'text': 'image_09102025_16_00_43_10134.jpg'}, {'photo_id': 1388453098, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/db0b8a9c430b5406e9a88ecbdb8963f3.jpg', 'username': None, 'uploaded_at': 1760018528, 'text': 'image_09102025_16_01_34_10141.jpg'}, {'photo_id': 1388453194, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/baad51b9c09fdfa282cb70f01bedc90c.jpg', 'username': None, 'uploaded_at': 1760018588, 'text': 'image_09102025_16_01_43_9130.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.00048661231994628906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27649626, '2025-10-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2413509,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6569044589996338 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= 2413509 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27616397, 'dashboard_result_id': 16191740, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27616511, 'dashboard_result_id': 16191741, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27616659, 'dashboard_result_id': 16191742, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27616991, 'dashboard_result_id': 16191744, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27618012, 'dashboard_result_id': 16191745, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27618241, 'dashboard_result_id': 16191746, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27618510, 'dashboard_result_id': 16191747, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27618804, 'dashboard_result_id': 16191748, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27619103, 'dashboard_result_id': 16191749, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27619532, 'dashboard_result_id': 16191750, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27620022, 'dashboard_result_id': 16191751, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27620507, 'dashboard_result_id': 16191752, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27620936, 'dashboard_result_id': 16191753, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27621421, 'dashboard_result_id': 16191754, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27621858, 'dashboard_result_id': 16191755, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27622985, 'dashboard_result_id': 16191756, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27623042, 'dashboard_result_id': 16191757, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27623172, 'dashboard_result_id': 16191758, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27623708, 'dashboard_result_id': 16191759, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27624416, 'dashboard_result_id': 16191760, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27625035, 'dashboard_result_id': 16191761, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27625716, 'dashboard_result_id': 16191762, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27626354, 'dashboard_result_id': 16191763, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27626904, 'dashboard_result_id': 16191764, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27627828, 'dashboard_result_id': 16191765, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27628633, 'dashboard_result_id': 16191766, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27629335, 'dashboard_result_id': 16191767, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27630015, 'dashboard_result_id': 16191768, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27630822, 'dashboard_result_id': 16191769, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630822_09-10-2025_08_35_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630864, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27631512, 'dashboard_result_id': 16191770, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27631512_09-10-2025_08_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27631531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27631532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27631533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27631534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27631535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27631536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27631537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27631538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27631539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27631540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27631541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27631542, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27632207, 'dashboard_result_id': 16191771, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27632207_09-10-2025_09_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27632261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27632262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27632263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27632264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27632265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27632266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27632267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27632268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27632269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27632270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27632271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27632272, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27634525, 'dashboard_result_id': 16191772, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27634525_09-10-2025_09_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27634536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27634537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27634538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27634539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27634540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27634541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27634542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27634543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27634544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27634545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27634546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27634547, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27635080, 'dashboard_result_id': 16191773, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27635080_09-10-2025_10_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27635090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27635091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27635092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27635093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27635094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27635095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27635096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27635097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27635098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27635099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27635100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27635102, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27636064, 'dashboard_result_id': 16191774, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27636064_09-10-2025_10_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27636074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27636075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27636076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27636077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27636078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27636079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27636080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27636081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27636082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27636083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27636084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27636086, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27637006, 'dashboard_result_id': 16191775, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27637006_09-10-2025_14_01_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27637072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27637073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27637074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27637075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27637076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27637077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27637094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27637095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27637096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27637097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27637098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27637099, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27644666, 'dashboard_result_id': 16191776, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644666_09-10-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27644670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27644671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27644672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27644673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27644674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27644676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27644677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27644678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27644679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27644680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27644681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27644682, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27644949, 'dashboard_result_id': 16191777, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644949_09-10-2025_14_17_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645038, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27645669, 'dashboard_result_id': 16191778, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27645669_09-10-2025_14_33_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645687, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27646241, 'dashboard_result_id': 16191779, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646241_09-10-2025_14_51_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646339, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27646955, 'dashboard_result_id': 16191780, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646955_09-10-2025_15_03_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646993, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27647577, 'dashboard_result_id': 16191781, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27647577_09-10-2025_15_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27647642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27647643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27647644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27647645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27647646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27647647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27647648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27647649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27647650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27647651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27647653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27647654, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27649321, 'dashboard_result_id': 16191782, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649321_09-10-2025_16_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27649322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27649323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27649324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27649325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27649326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27649327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27649328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27649329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27649330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27649331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27649332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27649333, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2425335, 'mtr_portfolio_id': 27649626, 'dashboard_result_id': 16191783, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649626_09-10-2025_16_03_35.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27616397 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27616397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616397_09-10-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616397 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}" where mtr_portfolio_id = 27616397 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27616511 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27616511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616511_09-10-2025_00_35_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616511 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}" where mtr_portfolio_id = 27616511 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27616659 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27616659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616659_09-10-2025_00_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616659 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}" where mtr_portfolio_id = 27616659 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27616991 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27616991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616991_09-10-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616991 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}" where mtr_portfolio_id = 27616991 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27618012 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27618012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618012_09-10-2025_01_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618012 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}" where mtr_portfolio_id = 27618012 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27618241 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27618241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618241_09-10-2025_02_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618241 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}" where mtr_portfolio_id = 27618241 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27618510 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27618510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618510_09-10-2025_02_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618510 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}" where mtr_portfolio_id = 27618510 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27618804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27618804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618804_09-10-2025_02_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}" where mtr_portfolio_id = 27618804 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27619103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27619103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619103_09-10-2025_02_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}" where mtr_portfolio_id = 27619103 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27619532 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27619532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619532_09-10-2025_03_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619532 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}" where mtr_portfolio_id = 27619532 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27620022 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27620022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620022_09-10-2025_03_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}" where mtr_portfolio_id = 27620022 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27620507 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27620507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620507_09-10-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620507 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}" where mtr_portfolio_id = 27620507 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27620936 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27620936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620936_09-10-2025_03_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620936 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}" where mtr_portfolio_id = 27620936 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27621421 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27621421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621421_09-10-2025_04_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621421 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}" where mtr_portfolio_id = 27621421 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27621858 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27621858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621858_09-10-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621858 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}" where mtr_portfolio_id = 27621858 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27622985 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27622985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27622985_09-10-2025_05_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27622985 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}" where mtr_portfolio_id = 27622985 and dashboard_run_id = 2425335 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27623042 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3897498, 'mtr_portfolio_id': 27623042, 'created_at': datetime.datetime(2025, 10, 9, 5, 37, 5), 'result': '0.054959480903174554', 'result_long': None, 'result_double': None}] Qualite : 0.054959480903174554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}" where mtr_portfolio_id = 27623042 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27623042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191757, 0.054959480903174554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27623172 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3897621, 'mtr_portfolio_id': 27623172, 'created_at': datetime.datetime(2025, 10, 9, 5, 49), 'result': '0.034426929585649114', 'result_long': None, 'result_double': None}] Qualite : 0.034426929585649114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623172 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}" where mtr_portfolio_id = 27623172 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27623172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191758, 0.034426929585649114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27623708 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3897927, 'mtr_portfolio_id': 27623708, 'created_at': datetime.datetime(2025, 10, 9, 6, 7, 29), 'result': '0.03610732122848751', 'result_long': None, 'result_double': None}] Qualite : 0.03610732122848751 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623708 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}" where mtr_portfolio_id = 27623708 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27623708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191759, 0.03610732122848751, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27624416 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3898223, 'mtr_portfolio_id': 27624416, 'created_at': datetime.datetime(2025, 10, 9, 6, 19, 4), 'result': '0.03564480013695679', 'result_long': None, 'result_double': None}] Qualite : 0.03564480013695679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27624416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27624416 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, 'pht': 3726}}" where mtr_portfolio_id = 27624416 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27624416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191760, 0.03564480013695679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27625035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3898504, 'mtr_portfolio_id': 27625035, 'created_at': datetime.datetime(2025, 10, 9, 6, 37, 5), 'result': '0.05966947842045925', 'result_long': None, 'result_double': None}] Qualite : 0.05966947842045925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27625035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27625035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, 'pht': 3726}}" where mtr_portfolio_id = 27625035 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27625035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191761, 0.05966947842045925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27625716 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3898774, 'mtr_portfolio_id': 27625716, 'created_at': datetime.datetime(2025, 10, 9, 6, 49, 33), 'result': '0.04499809824099856', 'result_long': None, 'result_double': None}] Qualite : 0.04499809824099856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27625716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27625716 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, 'pht': 3726}}" where mtr_portfolio_id = 27625716 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27625716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191762, 0.04499809824099856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27626354 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3899066, 'mtr_portfolio_id': 27626354, 'created_at': datetime.datetime(2025, 10, 9, 7, 2, 59), 'result': '0.03583350773143944', 'result_long': None, 'result_double': None}] Qualite : 0.03583350773143944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27626354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27626354 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, 'pht': 3726}}" where mtr_portfolio_id = 27626354 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27626354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191763, 0.03583350773143944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27626904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3899336, 'mtr_portfolio_id': 27626904, 'created_at': datetime.datetime(2025, 10, 9, 7, 18, 59), 'result': '0.0437124675682206', 'result_long': None, 'result_double': None}] Qualite : 0.0437124675682206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27626904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27626904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, 'pht': 3726}}" where mtr_portfolio_id = 27626904 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27626904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191764, 0.0437124675682206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27627828 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3899669, 'mtr_portfolio_id': 27627828, 'created_at': datetime.datetime(2025, 10, 9, 7, 33, 3), 'result': '0.05105046600093983', 'result_long': None, 'result_double': None}] Qualite : 0.05105046600093983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27627828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27627828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, 'pht': 3726}}" where mtr_portfolio_id = 27627828 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27627828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191765, 0.05105046600093983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27628633 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3899942, 'mtr_portfolio_id': 27628633, 'created_at': datetime.datetime(2025, 10, 9, 7, 49, 30), 'result': '0.0687370207241468', 'result_long': None, 'result_double': None}] Qualite : 0.0687370207241468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27628633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27628633 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, 'pht': 3726}}" where mtr_portfolio_id = 27628633 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27628633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191766, 0.0687370207241468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27629335 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3900247, 'mtr_portfolio_id': 27629335, 'created_at': datetime.datetime(2025, 10, 9, 8, 7, 5), 'result': '0.05953414897567306', 'result_long': None, 'result_double': None}] Qualite : 0.05953414897567306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27629335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27629335 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, 'pht': 3726}}" where mtr_portfolio_id = 27629335 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27629335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191767, 0.05953414897567306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27630015 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3900520, 'mtr_portfolio_id': 27630015, 'created_at': datetime.datetime(2025, 10, 9, 8, 19), 'result': '0.04412729397499263', 'result_long': None, 'result_double': None}] Qualite : 0.04412729397499263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27630015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27630015 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, 'pht': 3726}}" where mtr_portfolio_id = 27630015 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27630015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191768, 0.04412729397499263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27630822 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3900810, 'mtr_portfolio_id': 27630822, 'created_at': datetime.datetime(2025, 10, 9, 8, 35, 3), 'result': '0.04345847403473593', 'result_long': None, 'result_double': None}] Qualite : 0.04345847403473593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27630822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630822_09-10-2025_08_35_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27630822 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630822_09-10-2025_08_35_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630864, 'pht': 3726}}" where mtr_portfolio_id = 27630822 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27630822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191769, 0.04345847403473593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630822_09-10-2025_08_35_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630864, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27631512 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3901067, 'mtr_portfolio_id': 27631512, 'created_at': datetime.datetime(2025, 10, 9, 8, 49, 1), 'result': '0.025500293341143832', 'result_long': None, 'result_double': None}] Qualite : 0.025500293341143832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27631512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27631512_09-10-2025_08_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27631512 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27631512_09-10-2025_08_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27631531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27631532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27631533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27631534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27631535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27631536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27631537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27631538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27631539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27631540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27631541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27631542, 'pht': 3726}}" where mtr_portfolio_id = 27631512 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27631512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191770, 0.025500293341143832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27631512_09-10-2025_08_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27631531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27631532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27631533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27631534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27631535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27631536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27631537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27631538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27631539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27631540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27631541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27631542, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27632207 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3901347, 'mtr_portfolio_id': 27632207, 'created_at': datetime.datetime(2025, 10, 9, 9, 2, 59), 'result': '0.029267015484289557', 'result_long': None, 'result_double': None}] Qualite : 0.029267015484289557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27632207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27632207_09-10-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27632207 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27632207_09-10-2025_09_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27632261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27632262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27632263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27632264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27632265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27632266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27632267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27632268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27632269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27632270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27632271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27632272, 'pht': 3726}}" where mtr_portfolio_id = 27632207 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27632207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191771, 0.029267015484289557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27632207_09-10-2025_09_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27632261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27632262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27632263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27632264, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27632265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27632266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27632267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27632268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27632269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27632270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27632271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27632272, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27634525 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3902074, 'mtr_portfolio_id': 27634525, 'created_at': datetime.datetime(2025, 10, 9, 9, 47, 30), 'result': '0.05202992312439229', 'result_long': None, 'result_double': None}] Qualite : 0.05202992312439229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27634525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27634525_09-10-2025_09_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27634525 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27634525_09-10-2025_09_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27634536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27634537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27634538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27634539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27634540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27634541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27634542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27634543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27634544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27634545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27634546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27634547, 'pht': 3726}}" where mtr_portfolio_id = 27634525 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27634525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191772, 0.05202992312439229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27634525_09-10-2025_09_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27634536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27634537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27634538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27634539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27634540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27634541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27634542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27634543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27634544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27634545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27634546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27634547, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27635080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3902122, 'mtr_portfolio_id': 27635080, 'created_at': datetime.datetime(2025, 10, 9, 10, 3, 32), 'result': '0.040429073766092415', 'result_long': None, 'result_double': None}] Qualite : 0.040429073766092415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27635080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27635080_09-10-2025_10_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27635080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27635080_09-10-2025_10_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27635090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27635091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27635092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27635093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27635094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27635095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27635096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27635097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27635098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27635099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27635100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27635102, 'pht': 3726}}" where mtr_portfolio_id = 27635080 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27635080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191773, 0.040429073766092415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27635080_09-10-2025_10_03_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27635090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27635091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27635092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27635093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27635094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27635095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27635096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27635097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27635098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27635099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27635100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27635102, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27636064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3902377, 'mtr_portfolio_id': 27636064, 'created_at': datetime.datetime(2025, 10, 9, 10, 19, 3), 'result': '0.05071070227941306', 'result_long': None, 'result_double': None}] Qualite : 0.05071070227941306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27636064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27636064_09-10-2025_10_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27636064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27636064_09-10-2025_10_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27636074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27636075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27636076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27636077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27636078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27636079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27636080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27636081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27636082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27636083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27636084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27636086, 'pht': 3726}}" where mtr_portfolio_id = 27636064 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27636064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191774, 0.05071070227941306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27636064_09-10-2025_10_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27636074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27636075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27636076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27636077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27636078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27636079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27636080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27636081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27636082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27636083, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27636084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27636086, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27637006 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3902505, 'mtr_portfolio_id': 27637006, 'created_at': datetime.datetime(2025, 10, 9, 14, 1, 5), 'result': '0.03969372545000926', 'result_long': None, 'result_double': None}] Qualite : 0.03969372545000926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27637006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27637006_09-10-2025_14_01_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27637006 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27637006_09-10-2025_14_01_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27637072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27637073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27637074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27637075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27637076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27637077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27637094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27637095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27637096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27637097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27637098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27637099, 'pht': 3726}}" where mtr_portfolio_id = 27637006 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27637006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191775, 0.03969372545000926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27637006_09-10-2025_14_01_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27637072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27637073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27637074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27637075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27637076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27637077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27637094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27637095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27637096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27637097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27637098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27637099, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27644666 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903474, 'mtr_portfolio_id': 27644666, 'created_at': datetime.datetime(2025, 10, 9, 14, 4, 58), 'result': '0.043474370113462335', 'result_long': None, 'result_double': None}] Qualite : 0.043474370113462335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27644666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644666_09-10-2025_14_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27644666 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644666_09-10-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27644670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27644671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27644672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27644673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27644674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27644676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27644677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27644678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27644679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27644680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27644681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27644682, 'pht': 3726}}" where mtr_portfolio_id = 27644666 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27644666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191776, 0.043474370113462335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644666_09-10-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27644670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27644671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27644672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27644673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27644674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27644676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27644677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27644678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27644679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27644680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27644681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27644682, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27644949 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903504, 'mtr_portfolio_id': 27644949, 'created_at': datetime.datetime(2025, 10, 9, 14, 17, 3), 'result': '0.023050321380025152', 'result_long': None, 'result_double': None}] Qualite : 0.023050321380025152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27644949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644949_09-10-2025_14_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27644949 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644949_09-10-2025_14_17_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645038, 'pht': 3726}}" where mtr_portfolio_id = 27644949 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27644949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191777, 0.023050321380025152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27644949_09-10-2025_14_17_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645038, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27645669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903583, 'mtr_portfolio_id': 27645669, 'created_at': datetime.datetime(2025, 10, 9, 14, 33, 5), 'result': '0.04655154518915823', 'result_long': None, 'result_double': None}] Qualite : 0.04655154518915823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27645669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27645669_09-10-2025_14_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27645669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27645669_09-10-2025_14_33_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645687, 'pht': 3726}}" where mtr_portfolio_id = 27645669 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27645669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191778, 0.04655154518915823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27645669_09-10-2025_14_33_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27645675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27645676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27645677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27645678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27645679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27645680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27645681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27645683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27645684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27645685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27645686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27645687, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27646241 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903686, 'mtr_portfolio_id': 27646241, 'created_at': datetime.datetime(2025, 10, 9, 14, 51, 6), 'result': '0.041722373437338055', 'result_long': None, 'result_double': None}] Qualite : 0.041722373437338055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27646241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646241_09-10-2025_14_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27646241 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646241_09-10-2025_14_51_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646339, 'pht': 3726}}" where mtr_portfolio_id = 27646241 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27646241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191779, 0.041722373437338055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646241_09-10-2025_14_51_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646339, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27646955 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903781, 'mtr_portfolio_id': 27646955, 'created_at': datetime.datetime(2025, 10, 9, 15, 3, 5), 'result': '0.04519087746496822', 'result_long': None, 'result_double': None}] Qualite : 0.04519087746496822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27646955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646955_09-10-2025_15_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27646955 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646955_09-10-2025_15_03_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646993, 'pht': 3726}}" where mtr_portfolio_id = 27646955 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27646955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191780, 0.04519087746496822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27646955_09-10-2025_15_03_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27646981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27646982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27646983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27646984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27646985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27646986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27646987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27646989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27646990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27646991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27646992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27646993, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27647577 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3903940, 'mtr_portfolio_id': 27647577, 'created_at': datetime.datetime(2025, 10, 9, 15, 51, 7), 'result': '0.0706435007246666', 'result_long': None, 'result_double': None}] Qualite : 0.0706435007246666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27647577 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27647577_09-10-2025_15_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27647577 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27647577_09-10-2025_15_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27647642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27647643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27647644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27647645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27647646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27647647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27647648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27647649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27647650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27647651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27647653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27647654, 'pht': 3726}}" where mtr_portfolio_id = 27647577 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27647577 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191781, 0.0706435007246666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27647577_09-10-2025_15_51_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27647642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27647643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27647644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27647645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27647646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27647647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27647648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27647649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27647650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27647651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27647653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27647654, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27649321 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3904381, 'mtr_portfolio_id': 27649321, 'created_at': datetime.datetime(2025, 10, 9, 16, 3, 1), 'result': '0.043246982858021366', 'result_long': None, 'result_double': None}] Qualite : 0.043246982858021366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27649321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649321_09-10-2025_16_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27649321 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649321_09-10-2025_16_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27649322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27649323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27649324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27649325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27649326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27649327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27649328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27649329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27649330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27649331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27649332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27649333, 'pht': 3726}}" where mtr_portfolio_id = 27649321 and dashboard_run_id = 2425335 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27649321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16191782, 0.043246982858021366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649321_09-10-2025_16_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27649322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27649323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27649324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27649325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27649326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27649327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27649328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27649329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27649330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27649331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27649332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27649333, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27649626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27649626 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27649626 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27649626 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27649626 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27649626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649626_09-10-2025_16_05_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27649626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27649626_09-10-2025_16_05_05.pdf'}" where mtr_portfolio_id = 27649626 and dashboard_run_id = 2425335 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27616397,27616511,27616659,27616991,27618012,27618241,27618510,27618804,27619103,27619532,27620022,27620507,27620936,27621421,27621858,27622985,27623042,27623172,27623708,27624416,27625035,27625716,27626354,27626904,27627828,27628633,27629335,27630015,27630822,27631512,27632207,27634525,27635080,27636064,27637006,27644666,27644949,27645669,27646241,27646955,27647577,27649321,27649626) result : ((1388277422,), (1388277424,), (1388277426,), (1388277449,), (1388277450,), (1388277452,), (1388277458,), (1388277459,), (1388277461,), (1388277465,), (1388277469,), (1388277478,), (1388277480,), (1388277482,), (1388277498,), (1388277499,), (1388277500,), (1388277502,), (1388277505,), (1388277518,), (1388277520,), (1388277522,), (1388277525,), (1388277542,), (1388277544,), (1388277547,), (1388277550,), (1388277553,), (1388277562,), (1388277564,), (1388277567,), (1388277585,), (1388277592,), (1388277607,), (1388277646,), (1388277648,), (1388277649,), (1388277668,), (1388277669,), (1388277670,), (1388277674,), (1388277678,), (1388277681,), (1388277688,), (1388277690,), (1388277693,), (1388277696,), (1388277699,), (1388277702,), (1388277707,), (1388277709,), (1388277713,), (1388277716,), (1388277718,), (1388277719,), (1388277724,), (1388277730,), (1388277733,), (1388277736,), (1388277740,), (1388277748,), (1388277768,), (1388277772,), (1388277776,), (1388277779,), (1388277782,), (1388277784,), (1388277786,), (1388277789,), (1388277804,), (1388277805,), (1388277839,), (1388277820,), (1388277823,), (1388277828,), (1388277832,), (1388277837,), (1388277846,), (1388277847,), (1388277848,), (1388277850,), (1388277854,), (1388277858,), (1388277885,), (1388277887,), (1388277889,), (1388277914,), (1388277915,), (1388277916,), (1388277918,), (1388277930,), (1388277932,), (1388277934,), (1388277938,), (1388277957,), (1388277958,), (1388277960,), (1388277963,), (1388277966,), (1388277969,), (1388277978,), (1388277981,), (1388277984,), (1388277987,), (1388277991,), (1388277993,), (1388277999,), (1388278001,), (1388278020,), (1388278028,), (1388278043,), (1388278051,), (1388278055,), (1388278056,), (1388278058,), (1388278060,), (1388278062,), (1388278064,), (1388278068,), (1388278071,), (1388278074,), (1388278077,), (1388278094,), (1388278099,), (1388278101,), (1388278105,), (1388278109,), (1388278120,), (1388278122,), (1388278124,), (1388278128,), (1388278141,), (1388278142,), (1388278146,), (1388278151,), (1388278155,), (1388278159,), (1388278184,), (1388278186,), (1388278188,), (1388278192,), (1388278196,), (1388278202,), (1388278217,), (1388278220,), (1388278225,), (1388278256,), (1388278328,), (1388278330,), (1388278332,), (1388278244,), (1388278246,), (1388278249,), (1388278252,), (1388278254,), (1388278264,), (1388278266,), (1388278269,), (1388278272,), (1388278281,), (1388278295,), (1388278307,), (1388278309,), (1388278311,), (1388278314,), (1388278316,), (1388278319,), (1388278324,), (1388278327,), (1388278334,), (1388278337,), (1388278341,), (1388278344,), (1388278357,), (1388278358,), (1388278359,), (1388278362,), (1388278366,), (1388278376,), (1388278378,), (1388278381,), (1388278384,), (1388278388,), (1388278399,), (1388278401,), (1388278403,), (1388278441,), (1388278443,), (1388278445,), (1388278449,), (1388278463,), (1388278464,), (1388278466,), (1388278469,), (1388278472,), (1388278475,), (1388278484,), (1388278486,), (1388278488,), (1388278492,), (1388278503,), (1388278505,), (1388278507,), (1388278509,), (1388278511,), (1388278513,), (1388278521,), (1388278524,), (1388278526,), (1388278529,), (1388278533,), (1388278540,), (1388278559,), (1388278561,), (1388278573,), (1388278575,), (1388278577,), (1388278585,), (1388278586,), (1388278588,), (1388278589,), (1388278590,), (1388278591,), (1388278592,), (1388278593,), (1388278595,), (1388278597,), (1388278600,), (1388278604,), (1388278608,), (1388278618,), (1388278619,), (1388278643,), (1388278634,), (1388278636,), (1388278638,), (1388278642,), (1388278651,), (1388278653,), (1388278655,), (1388278697,), (1388278699,), (1388278700,), (1388278703,), (1388278706,), (1388278723,), (1388278725,), (1388278727,), (1388278742,), (1388278743,), (1388278744,), (1388278746,), (1388278750,), (1388278762,), (1388278764,), (1388278767,), (1388278771,), (1388278774,), (1388278775,), (1388278779,), (1388278782,), (1388278785,), (1388278788,), (1388278789,), (1388278791,), (1388278794,), (1388278796,), (1388278803,), (1388278809,), (1388278825,), (1388278837,), (1388278855,), (1388278858,), (1388278861,), (1388278863,), (1388278864,), (1388278865,), (1388278868,), (1388278869,), (1388278871,), (1388278874,), (1388278877,), (1388278880,), (1388278894,), (1388278896,), (1388278898,), (1388278902,), (1388278911,), (1388278913,), (1388278915,), (1388278918,), (1388278934,), (1388278936,), (1388278939,), (1388278942,), (1388278946,), (1388278948,), (1388278956,), (1388278967,), (1388278979,), (1388278991,), (1388279001,), (1388279010,), (1388279036,), (1388279039,), (1388279041,), (1388279043,), (1388279046,), (1388279049,), (1388279069,), (1388279072,), (1388279073,), (1388279075,), (1388279078,), (1388279081,), (1388279089,), (1388279090,), (1388279092,), (1388279095,), (1388279097,), (1388279100,), (1388279106,), (1388279735,), (1388279733,), (1388279751,), (1388279753,), (1388279755,), (1388279759,), (1388279792,), (1388279794,), (1388279797,), (1388279812,), (1388279814,), (1388279816,), (1388279820,), (1388279828,), (1388279830,), (1388279832,), (1388279836,), (1388279840,), (1388279843,), (1388279852,), (1388279853,), (1388279854,), (1388279880,), (1388279882,), (1388279884,), (1388279888,), (1388279891,), (1388279894,), (1388279926,), (1388279928,), (1388279932,), (1388279936,), (1388279939,), (1388279941,), (1388279947,), (1388279948,), (1388279950,), (1388279952,), (1388279954,), (1388279961,), (1388279963,), (1388279966,), (1388279971,), (1388279973,), (1388279974,), (1388279978,), (1388279982,), (1388279994,), (1388279997,), (1388280002,), (1388280005,), (1388280008,), (1388280010,), (1388280019,), (1388280022,), (1388280025,), (1388280028,), (1388280038,), (1388280046,), (1388280060,), (1388280066,), (1388280068,), (1388280070,), (1388280072,), (1388280074,), (1388280083,), (1388280084,), (1388280087,), (1388280089,), (1388280091,), (1388280092,), (1388280096,), (1388280097,), (1388280101,), (1388280102,), (1388280105,), (1388280106,), (1388280110,), (1388280111,), (1388280113,), (1388280115,), (1388280118,), (1388280122,), (1388280132,), (1388280135,), (1388280138,), (1388280144,), (1388280147,), (1388280157,), (1388280153,), (1388280155,), (1388280174,), (1388280176,), (1388280177,), (1388280180,), (1388280184,), (1388280228,), (1388280230,), (1388280232,), (1388280256,), (1388280257,), (1388280258,), (1388280260,), (1388280263,), (1388280266,), (1388280276,), (1388280278,), (1388280280,), (1388280283,), (1388280296,), (1388280297,), (1388280299,), (1388280302,), (1388280305,), (1388280308,), (1388280319,), (1388280323,), (1388280327,), (1388280331,), (1388280334,), (1388280349,), (1388280362,), (1388280363,), (1388280365,), (1388280369,), (1388280371,), (1388280375,), (1388280381,), (1388280383,), (1388280386,), (1388280388,), (1388280390,), (1388280392,), (1388280394,), (1388280396,), (1388280399,), (1388280402,), (1388280406,), (1388280409,), (1388280422,), (1388280424,), (1388280426,), (1388280430,), (1388280435,), (1388280439,), (1388280448,), (1388280450,), (1388280467,), (1388280468,), (1388280469,), (1388280471,), (1388280474,), (1388280480,), (1388280555,), (1388280548,), (1388280549,), (1388280550,), (1388280551,), (1388280566,), (1388280569,), (1388280572,), (1388280604,), (1388280607,), (1388280609,), (1388280611,), (1388280614,), (1388280616,), (1388280626,), (1388280629,), (1388280633,), (1388280645,), (1388280646,), (1388280650,), (1388280660,), (1388280662,), (1388280667,), (1388280670,), (1388280672,), (1388280676,), (1388280694,), (1388280696,), (1388280698,), (1388280699,), (1388280703,), (1388280733,), (1388280735,), (1388280738,), (1388280741,), (1388280745,), (1388280751,), (1388280753,), (1388280755,), (1388280757,), (1388280761,), (1388280764,), (1388280771,), (1388280773,), (1388280775,), (1388280791,), (1388280792,), (1388280794,), (1388280797,), (1388280800,), (1388280803,), (1388280809,), (1388280812,), (1388280816,), (1388280819,), (1388280827,), (1388280835,), (1388280838,), (1388280841,), (1388280845,), (1388280848,), (1388280850,), (1388280852,), (1388280857,), (1388280861,), (1388280864,), (1388280866,), (1388280869,), (1388280871,), (1388280874,), (1388280877,), (1388280879,), (1388280882,), (1388280885,), (1388280888,), (1388280891,), (1388280897,), (1388280900,), (1388280903,), (1388280908,), (1388280935,), (1388280921,), (1388280923,), (1388280924,), (1388280927,), (1388280932,), (1388280943,), (1388280945,), (1388280947,), (1388280950,), (1388280953,), (1388280985,), (1388280987,), (1388280989,), (1388281010,), (1388281011,), (1388281012,), (1388281015,), (1388281019,), (1388281022,), (1388281030,), (1388281032,), (1388281034,), (1388281038,), (1388281042,), (1388281044,), (1388281051,), (1388281053,), (1388281055,), (1388281058,), (1388281061,), (1388281063,), (1388281074,), (1388281076,), (1388281079,), (1388281094,), (1388281101,), (1388281115,), (1388281119,), (1388281120,), (1388281122,), (1388281124,), (1388281127,), (1388281131,), (1388281139,), (1388281140,), (1388281143,), (1388281144,), (1388281147,), (1388281148,), (1388281150,), (1388281151,), (1388281153,), (1388281154,), (1388281156,), (1388281157,), (1388281160,), (1388281162,), (1388281163,), (1388281165,), (1388281168,), (1388281171,), (1388281179,), (1388281182,), (1388281194,), (1388281196,), (1388281198,), (1388281201,), (1388281205,), (1388281209,), (1388281217,), (1388281219,), (1388281220,), (1388281222,), (1388281236,), (1388281238,), (1388281241,), (1388281244,), (1388281247,), (1388281250,), (1388281288,), (1388281289,), (1388281290,), (1388281293,), (1388281305,), (1388281307,), (1388281309,), (1388281311,), (1388281314,), (1388281317,), (1388281328,), (1388281333,), (1388281337,), (1388281340,), (1388281370,), (1388281407,), (1388281409,), (1388281433,), (1388281436,), (1388281437,), (1388281440,), (1388281460,), (1388281361,), (1388281364,), (1388281366,), (1388281367,), (1388281369,), (1388281371,), (1388281372,), (1388281374,), (1388281378,), (1388281381,), (1388281384,), (1388281400,), (1388281401,), (1388281403,), (1388281405,), (1388281416,), (1388281417,), (1388281420,), (1388281422,), (1388281423,), (1388281427,), (1388281428,), (1388281432,), (1388281444,), (1388281446,), (1388281447,), (1388281449,), (1388281453,), (1388281455,), (1388281463,), (1388281465,), (1388281468,), (1388281470,), (1388281482,), (1388281484,), (1388281486,), (1388281489,), (1388281506,), (1388281508,), (1388281509,), (1388281513,), (1388281518,), (1388281557,), (1388281561,), (1388281565,), (1388281569,), (1388281572,), (1388281574,), (1388281578,), (1388281580,), (1388281582,), (1388281585,), (1388281588,), (1388281599,), (1388281601,), (1388281603,), (1388281605,), (1388281608,), (1388281610,), (1388281620,), (1388281622,), (1388281625,), (1388281628,), (1388281630,), (1388281633,), (1388281645,), (1388281646,), (1388281649,), (1388281656,), (1388281662,), (1388281671,), (1388281676,), (1388281678,), (1388281687,), (1388281689,), (1388281691,), (1388281695,), (1388281705,), (1388281707,), (1388281709,), (1388281710,), (1388281711,), (1388281713,), (1388281720,), (1388281723,), (1388281727,), (1388281731,), (1388281734,), (1388281736,), (1388281741,), (1388281745,), (1388281746,), (1388281767,), (1388281759,), (1388281761,), (1388281763,), (1388281781,), (1388281782,), (1388281783,), (1388281785,), (1388281788,), (1388281791,), (1388281825,), (1388281826,), (1388281827,), (1388281846,), (1388281848,), (1388281850,), (1388281852,), (1388281868,), (1388281882,), (1388281884,), (1388281886,), (1388281889,), (1388281892,), (1388281903,), (1388281904,), (1388281905,), (1388281906,), (1388281950,), (1388281953,), (1388281956,), (1388281959,), (1388281961,), (1388281964,), (1388281972,), (1388281974,), (1388281977,), (1388281981,), (1388282001,), (1388282003,), (1388282005,), (1388282007,), (1388282011,), (1388282022,), (1388282024,), (1388282026,), (1388282029,), (1388282041,), (1388282043,), (1388282045,), (1388282047,), (1388282097,), (1388282099,), (1388282102,), (1388282105,), (1388282107,), (1388282119,), (1388282121,), (1388282125,), (1388282128,), (1388282131,), (1388282158,), (1388282161,), (1388282163,), (1388282166,), (1388282212,), (1388282217,), (1388282219,), (1388282220,), (1388282221,), (1388282223,), (1388282225,), (1388282237,), (1388282239,), (1388282242,), (1388282154,), (1388282157,), (1388282180,), (1388282192,), (1388282198,), (1388282208,), (1388282210,), (1388282229,), (1388282232,), (1388282234,), (1388282247,), (1388282248,), (1388282250,), (1388282252,), (1388282254,), (1388282270,), (1388282271,), (1388282272,), (1388282275,), (1388282290,), (1388282292,), (1388282295,), (1388282299,), (1388282301,), (1388282304,), (1388282314,), (1388282316,), (1388282318,), (1388282321,), (1388282325,), (1388282359,), (1388282361,), (1388282363,), (1388282366,), (1388282380,), (1388282382,), (1388282384,), (1388282388,), (1388282392,), (1388282402,), (1388282403,), (1388282405,), (1388282408,), (1388282411,), (1388282414,), (1388282424,), (1388282426,), (1388282430,), (1388282433,), (1388282436,), (1388282438,), (1388282443,), (1388282446,), (1388282449,), (1388282451,), (1388282453,), (1388282466,), (1388282488,), (1388282492,), (1388282494,), (1388282496,), (1388282497,), (1388282499,), (1388282510,), (1388282514,), (1388282517,), (1388282519,), (1388282520,), (1388282521,), (1388282525,), (1388282528,), (1388282531,), (1388282534,), (1388282537,), (1388282547,), (1388282550,), (1388282552,), (1388282555,), (1388282558,), (1388282581,), (1388282568,), (1388282570,), (1388282572,), (1388282575,), (1388282578,), (1388282590,), (1388282592,), (1388282594,), (1388282598,), (1388282602,), (1388282605,), (1388282636,), (1388282637,), (1388282651,), (1388282653,), (1388282655,), (1388282658,), (1388282674,), (1388282676,), (1388282677,), (1388282696,), (1388282698,), (1388282701,), (1388282704,), (1388282706,), (1388282709,), (1388282714,), (1388282717,), (1388282720,), (1388282723,), (1388282727,), (1388282735,), (1388282762,), (1388282771,), (1388282772,), (1388282774,), (1388282776,), (1388282780,), (1388282786,), (1388282789,), (1388282792,), (1388282794,), (1388282795,), (1388282798,), (1388282800,), (1388282805,), (1388282820,), (1388282822,), (1388282824,), (1388282828,), (1388282833,), (1388282841,), (1388282843,), (1388282846,), (1388282849,), (1388282852,), (1388282862,), (1388282864,), (1388282865,), (1388282918,), (1388282920,), (1388282921,), (1388282925,), (1388282929,), (1388282932,), (1388282938,), (1388282940,), (1388282943,), (1388282947,), (1388282950,), (1388282961,), (1388282963,), (1388282964,), (1388282991,), (1388282994,), (1388282996,), (1388283060,), (1388283066,), (1388283068,), (1388283082,), (1388282982,), (1388282984,), (1388282988,), (1388283003,), (1388283005,), (1388283008,), (1388283011,), (1388283013,), (1388283017,), (1388283031,), (1388283041,), (1388283050,), (1388283073,), (1388283076,), (1388283079,), (1388283089,), (1388283090,), (1388283091,), (1388283094,), (1388283106,), (1388283108,), (1388283111,), (1388283115,), (1388283118,), (1388283121,), (1388283126,), (1388283128,), (1388283132,), (1388283135,), (1388283139,), (1388283141,), (1388283150,), (1388283152,), (1388283153,), (1388283156,), (1388283194,), (1388283196,), (1388283198,), (1388283200,), (1388283239,), (1388283240,), (1388283243,), (1388283255,), (1388283256,), (1388283257,), (1388283259,), (1388283262,), (1388283265,), (1388283320,), (1388283322,), (1388283324,), (1388283341,), (1388283343,), (1388283345,), (1388283348,), (1388283363,), (1388283366,), (1388283368,), (1388283372,), (1388283375,), (1388283378,), (1388283398,), (1388283386,), (1388283388,), (1388283390,), (1388283394,), (1388283404,), (1388283406,), (1388283408,), (1388283412,), (1388283416,), (1388283419,), (1388283482,), (1388283484,), (1388283485,), (1388283488,), (1388283504,), (1388283506,), (1388283508,), (1388283512,), (1388283516,), (1388283520,), (1388283528,), (1388283529,), (1388283532,), (1388283534,), (1388283537,), (1388283548,), (1388283549,), (1388283551,), (1388283553,), (1388283556,), (1388283560,), (1388283569,), (1388283581,), (1388283591,), (1388283599,), (1388283602,), (1388283605,), (1388283608,), (1388283611,), (1388283613,), (1388283616,), (1388283618,), (1388283621,), (1388283632,), (1388283633,), (1388283636,), (1388283638,), (1388283640,), (1388283644,), (1388283645,), (1388283648,), (1388283649,), (1388283651,), (1388283652,), (1388283654,), (1388283657,), (1388283662,), (1388283664,), (1388283666,), (1388283679,), (1388283682,), (1388283684,), (1388283714,), (1388283716,), (1388283717,), (1388283719,), (1388283757,), (1388283759,), (1388283761,), (1388283779,), (1388283780,), (1388283783,), (1388283786,), (1388283811,), (1388283816,), (1388283819,), (1388283822,), (1388283865,), (1388283868,), (1388283871,), (1388283876,), (1388283880,), (1388283804,), (1388283808,), (1388283843,), (1388283848,), (1388283851,), (1388283854,), (1388283856,), (1388283859,), (1388283889,), (1388283899,), (1388283902,), (1388283909,), (1388283911,), (1388283913,), (1388283917,), (1388283922,), (1388283926,), (1388283935,), (1388283938,), (1388283942,), (1388283963,), (1388283965,), (1388283967,), (1388283970,), (1388283990,), (1388283992,), (1388284004,), (1388284030,), (1388284032,), (1388284034,), (1388284054,), (1388284057,), (1388284060,), (1388284077,), (1388284080,), (1388284084,), (1388284088,), (1388284106,), (1388284108,), (1388284111,), (1388284119,), (1388285441,), (1388285470,), (1388285494,), (1388285582,), (1388285585,), (1388285612,), (1388285617,), (1388285623,), (1388285628,), (1388285631,), (1388285641,), (1388285644,), (1388285646,), (1388285675,), (1388285678,), (1388285681,), (1388285684,), (1388285709,), (1388285713,), (1388285716,), (1388285719,), (1388285735,), (1388285738,), (1388285750,), (1388285754,), (1388285758,), (1388285762,), (1388285769,), (1388285773,), (1388285777,), (1388285786,), (1388285790,), (1388285802,), (1388285822,), (1388285826,), (1388285829,), (1388285857,), (1388285850,), (1388285852,), (1388285854,), (1388285873,), (1388285875,), (1388285878,), (1388285932,), (1388285936,), (1388285941,), (1388285946,), (1388285952,), (1388285954,), (1388285963,), (1388285966,), (1388285968,), (1388285971,), (1388285986,), (1388285988,), (1388285990,), (1388285993,), (1388285997,), (1388286008,), (1388286011,), (1388286015,), (1388286018,), (1388286021,), (1388286035,), (1388286038,), (1388286040,), (1388286046,), (1388286059,), (1388286079,), (1388286081,), (1388286082,), (1388286084,), (1388286086,), (1388286090,), (1388286097,), (1388286102,), (1388286103,), (1388286105,), (1388286107,), (1388286117,), (1388286119,), (1388286121,), (1388286124,), (1388286127,), (1388286142,), (1388286144,), (1388286147,), (1388286150,), (1388286152,), (1388286161,), (1388286163,), (1388286165,), (1388286169,), (1388286173,), (1388286213,), (1388286217,), (1388286222,), (1388286226,), (1388286229,), (1388286231,), (1388286232,), (1388286233,), (1388286234,), (1388286237,), (1388286242,), (1388286245,), (1388286248,), (1388286251,), (1388286259,), (1388286261,), (1388286262,), (1388286265,), (1388286268,), (1388286271,), (1388286314,), (1388286435,), (1388286303,), (1388286306,), (1388286309,), (1388286312,), (1388286351,), (1388286360,), (1388286371,), (1388286372,), (1388286374,), (1388286377,), (1388286388,), (1388286391,), (1388286400,), (1388286401,), (1388286402,), (1388286403,), (1388286410,), (1388286413,), (1388286416,), (1388286419,), (1388286422,), (1388286423,), (1388286429,), (1388286433,), (1388286440,), (1388286449,), (1388286451,), (1388286454,), (1388286460,), (1388286462,), (1388286463,), (1388286466,), (1388286473,), (1388286476,), (1388286515,), (1388286517,), (1388286519,), (1388287106,), (1388287109,), (1388287114,), (1388287219,), (1388287237,), (1388287266,), (1388287330,), (1388287332,), (1388287334,), (1388287337,), (1388287353,), (1388287356,), (1388287377,), (1388287381,), (1388287385,), (1388287388,), (1388287398,), (1388287399,), (1388287531,), (1388287704,), (1388287706,), (1388287708,), (1388288640,), (1388288642,), (1388288648,), (1388288650,), (1388288653,), (1388288669,), (1388288716,), (1388288734,), (1388288744,), (1388288746,), (1388288999,), (1388289003,), (1388289010,), (1388289077,), (1388289090,), (1388289091,), (1388289093,), (1388289094,), (1388289178,), (1388289184,), (1388289310,), (1388289311,), (1388289347,), (1388289348,), (1388289386,), (1388289388,), (1388289423,), (1388289426,), (1388289648,), (1388289696,), (1388289777,), (1388289778,), (1388289782,), (1388289784,), (1388289798,), (1388289859,), (1388289926,), (1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,), (1388294369,), (1388294372,), (1388294374,), (1388294377,), (1388294381,), (1388294384,), (1388294393,), (1388294397,), (1388294400,), (1388294402,), (1388294405,), (1388294423,), (1388294427,), (1388294961,), (1388295350,), (1388295362,), (1388295418,), (1388295419,), (1388295420,), (1388295423,), (1388297113,), (1388297117,), (1388297119,), (1388297123,), (1388297127,), (1388297497,), (1388295405,), (1388295408,), (1388295836,), (1388295930,), (1388295932,), (1388295933,), (1388295936,), (1388296024,), (1388296041,), (1388296044,), (1388296130,), (1388296153,), (1388296714,), (1388297108,), (1388297109,), (1388297134,), (1388297135,), (1388297137,), (1388297338,), (1388297342,), (1388297377,), (1388297458,), (1388297479,), (1388297489,), (1388297494,), (1388298417,), (1388298419,), (1388298478,), (1388298486,), (1388298491,), (1388299308,), (1388299310,), (1388299333,), (1388299391,), (1388299395,), (1388299497,), (1388299628,), (1388299631,), (1388299633,), (1388299636,), (1388299652,), (1388299653,), (1388299654,), (1388299657,), (1388299660,), (1388299664,), (1388299682,), (1388299685,), (1388299695,), (1388299705,), (1388299717,), (1388299719,), (1388299721,), (1388299724,), (1388300085,), (1388300392,), (1388300425,), (1388300426,), (1388300428,), (1388300437,), (1388300441,), (1388300444,), (1388300467,), (1388300556,), (1388300687,), (1388300692,), (1388300802,), (1388300814,), (1388300817,), (1388300828,), (1388300831,), (1388300833,), (1388300836,), (1388300838,), (1388300843,), (1388300847,), (1388300850,), (1388301739,), (1388301742,), (1388301748,), (1388301755,), (1388301757,), (1388302049,), (1388302025,), (1388302038,), (1388302039,), (1388302042,), (1388302046,), (1388302064,), (1388302065,), (1388302068,), (1388302070,), (1388302926,), (1388302928,), (1388302930,), (1388302934,), (1388302937,), (1388302941,), (1388302966,), (1388302967,), (1388303197,), (1388303257,), (1388304068,), (1388304071,), (1388304073,), (1388304077,), (1388304174,), (1388304208,), (1388304278,), (1388304280,), (1388304284,), (1388304287,), (1388304301,), (1388304315,), (1388304369,), (1388304380,), (1388304383,), (1388304386,), (1388304390,), (1388304393,), (1388304405,), (1388304411,), (1388304421,), (1388304427,), (1388304441,), (1388304973,), (1388305173,), (1388305174,), (1388305176,), (1388305177,), (1388305179,), (1388305180,), (1388305182,), (1388305183,), (1388305185,), (1388305186,), (1388305187,), (1388305188,), (1388305354,), (1388305393,), (1388305396,), (1388305658,), (1388305836,), (1388305845,), (1388305888,), (1388306043,), (1388306045,), (1388306047,), (1388306081,), (1388306120,), (1388306134,), (1388306306,), (1388306339,), (1388306341,), (1388306345,), (1388306348,), (1388306689,), (1388306693,), (1388306719,), (1388306737,), (1388306740,), (1388306743,), (1388306795,), (1388306801,), (1388306804,), (1388306808,), (1388306849,), (1388306850,), (1388306851,), (1388306853,), (1388306856,), (1388306859,), (1388306899,), (1388306903,), (1388306907,), (1388306910,), (1388306913,), (1388306916,), (1388306946,), (1388307456,), (1388307948,), (1388307961,), (1388308004,), (1388308006,), (1388308008,), (1388308205,), (1388308661,), (1388306936,), (1388306938,), (1388306941,), (1388306944,), (1388307639,), (1388307812,), (1388307816,), (1388307818,), (1388307855,), (1388307857,), (1388307907,), (1388307915,), (1388307934,), (1388307942,), (1388307986,), (1388307990,), (1388307992,), (1388308013,), (1388308015,), (1388308018,), (1388308021,), (1388308024,), (1388308664,), (1388308666,), (1388308668,), (1388308672,), (1388308675,), (1388309220,), (1388309289,), (1388309295,), (1388309309,), (1388309425,), (1388309434,), (1388309436,), (1388309440,), (1388309445,), (1388309466,), (1388309469,), (1388309472,), (1388309475,), (1388309490,), (1388309492,), (1388309493,), (1388309496,), (1388309499,), (1388309501,), (1388309529,), (1388309532,), (1388309534,), (1388309537,), (1388309541,), (1388309551,), (1388309553,), (1388309554,), (1388309557,), (1388309563,), (1388309564,), (1388310798,), (1388310801,), (1388310804,), (1388310807,), (1388310811,), (1388310853,), (1388310855,), (1388310858,), (1388310862,), (1388311238,), (1388311241,), (1388311296,), (1388311311,), (1388311326,), (1388311329,), (1388311339,), (1388311342,), (1388311344,), (1388311395,), (1388311373,), (1388311375,), (1388311377,), (1388311380,), (1388311393,), (1388312011,), (1388312129,), (1388312132,), (1388312136,), (1388312139,), (1388312403,), (1388312410,), (1388312411,), (1388312414,), (1388312418,), (1388312421,), (1388312444,), (1388312446,), (1388312449,), (1388312451,), (1388312457,), (1388312473,), (1388312474,), (1388312475,), (1388312478,), (1388312482,), (1388312486,), (1388312495,), (1388312498,), (1388312501,), (1388312507,), (1388312510,), (1388312512,), (1388312527,), (1388312528,), (1388312530,), (1388312555,), (1388312571,), (1388312575,), (1388312578,), (1388312580,), (1388312582,), (1388312585,), (1388312625,), (1388312628,), (1388312629,), (1388312632,), (1388312661,), (1388312664,), (1388312667,), (1388312672,), (1388312692,), (1388312694,), (1388312696,), (1388312726,), (1388312729,), (1388312775,), (1388312779,), (1388312780,), (1388312786,), (1388312800,), (1388312806,), (1388312852,), (1388312854,), (1388312856,), (1388312859,), (1388312862,), (1388312874,), (1388312879,), (1388312884,), (1388312886,), (1388312890,), (1388312917,), (1388312909,), (1388312912,), (1388312915,), (1388312951,), (1388312959,), (1388312970,), (1388312973,), (1388312975,), (1388312978,), (1388313800,), (1388313803,), (1388313805,), (1388313834,), (1388313852,), (1388313856,), (1388313860,), (1388313864,), (1388314743,), (1388314746,), (1388314901,), (1388314949,), (1388314967,), (1388314969,), (1388314995,), (1388314998,), (1388315001,), (1388315005,), (1388315008,), (1388315022,), (1388315024,), (1388315026,), (1388315052,), (1388315055,), (1388315057,), (1388315078,), (1388315080,), (1388315082,), (1388315085,), (1388315165,), (1388315167,), (1388315169,), (1388315172,), (1388315175,), (1388315192,), (1388315195,), (1388315198,), (1388315201,), (1388315204,), (1388315225,), (1388315234,), (1388315237,), (1388315240,), (1388315415,), (1388315442,), (1388315456,), (1388315465,), (1388315468,), (1388315669,), (1388315726,), (1388315736,), (1388315742,), (1388315792,), (1388315923,), (1388315931,), (1388315933,), (1388315936,), (1388315938,), (1388315947,), (1388315971,), (1388315973,), (1388315977,), (1388315980,), (1388316065,), (1388316003,), (1388316005,), (1388316055,), (1388316058,), (1388316062,), (1388316079,), (1388316092,), (1388316095,), (1388316116,), (1388316120,), (1388316233,), (1388316241,), (1388316274,), (1388316277,), (1388316301,), (1388316306,), (1388316327,), (1388316337,), (1388316339,), (1388316342,), (1388316420,), (1388316422,), (1388316423,), (1388316507,), (1388316515,), (1388316517,), (1388316549,), (1388316672,), (1388316676,), (1388316696,), (1388316914,), (1388316923,), (1388316938,), (1388316946,), (1388316964,), (1388316988,), (1388316991,), (1388316993,), (1388317028,), (1388317035,), (1388317036,), (1388317039,), (1388317043,), (1388317049,), (1388317073,), (1388317370,), (1388317435,), (1388317439,), (1388317551,), (1388317583,), (1388317596,), (1388317597,), (1388317614,), (1388317623,), (1388317625,), (1388317662,), (1388317686,), (1388317689,), (1388317692,), (1388317705,), (1388317717,), (1388317719,), (1388317721,), (1388317724,), (1388317728,), (1388317731,), (1388317862,), (1388317869,), (1388317887,), (1388317892,), (1388317895,), (1388317965,), (1388317970,), (1388317997,), (1388318005,), (1388318006,), (1388318007,), (1388317938,), (1388317943,), (1388317945,), (1388317962,), (1388318090,), (1388318092,), (1388318096,), (1388318099,), (1388318102,), (1388318104,), (1388318193,), (1388318215,), (1388318218,), (1388318244,), (1388318255,), (1388318273,), (1388318276,), (1388318278,), (1388318281,), (1388318286,), (1388318301,), (1388318303,), (1388318305,), (1388318309,), (1388318313,), (1388318329,), (1388318331,), (1388318333,), (1388318336,), (1388318338,), (1388318375,), (1388318380,), (1388318393,), (1388318407,), (1388318409,), (1388318518,), (1388318525,), (1388318532,), (1388318537,), (1388318540,), (1388318559,), (1388318560,), (1388318561,), (1388318564,), (1388318568,), (1388318571,), (1388318606,), (1388318609,), (1388318613,), (1388318616,), (1388318618,), (1388318626,), (1388318628,), (1388318630,), (1388318792,), (1388318938,), (1388318950,), (1388318959,), (1388318974,), (1388318988,), (1388319003,), (1388319190,), (1388319203,), (1388319207,), (1388319235,), (1388319239,), (1388319246,), (1388319462,), (1388319464,), (1388319465,), (1388319468,), (1388319472,), (1388319608,), (1388319610,), (1388319660,), (1388319663,), (1388319700,), (1388319688,), (1388319691,), (1388319693,), (1388319696,), (1388319709,), (1388319711,), (1388319712,), (1388319716,), (1388319720,), (1388319729,), (1388319891,), (1388319894,), (1388319896,), (1388319901,), (1388319918,), (1388319920,), (1388319923,), (1388319927,), (1388319931,), (1388319954,), (1388319956,), (1388319957,), (1388319961,), (1388319965,), (1388319968,), (1388319978,), (1388319980,), (1388319983,), (1388319989,), (1388320124,), (1388320129,), (1388320150,), (1388320152,), (1388320155,), (1388320158,), (1388320167,), (1388320175,), (1388320198,), (1388320210,), (1388320235,), (1388320238,), (1388320280,), (1388320282,), (1388320284,), (1388320288,), (1388320292,), (1388320301,), (1388320480,), (1388320509,), (1388320510,), (1388320557,), (1388320640,), (1388320711,), (1388320716,), (1388320724,), (1388320727,), (1388320760,), (1388320761,), (1388320763,), (1388320766,), (1388320792,), (1388320809,), (1388320859,), (1388320860,), (1388320861,), (1388320864,), (1388320866,), (1388320873,), (1388320878,), (1388320896,), (1388320898,), (1388320913,), (1388320915,), (1388320939,), (1388320961,), (1388320964,), (1388320968,), (1388321032,), (1388321035,), (1388321038,), (1388321040,), (1388321043,), (1388321046,), (1388321079,), (1388321082,), (1388321084,), (1388322405,), (1388322408,), (1388322444,), (1388322448,), (1388322452,), (1388322468,), (1388322499,), (1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,), (1388322507,), (1388322509,), (1388322682,), (1388323280,), (1388323424,), (1388323456,), (1388323473,), (1388323482,), (1388323495,), (1388324533,), (1388324535,), (1388324536,), (1388324538,), (1388324955,), (1388324966,), (1388324967,), (1388325008,), (1388325011,), (1388325087,), (1388325089,), (1388325092,), (1388325096,), (1388325100,), (1388325123,), (1388325287,), (1388325288,), (1388325291,), (1388325294,), (1388325445,), (1388325448,), (1388325456,), (1388325458,), (1388325461,), (1388325464,), (1388325466,), (1388325474,), (1388325490,), (1388325502,), (1388325525,), (1388325534,), (1388325542,), (1388325549,), (1388325555,), (1388325556,), (1388325559,), (1388325560,), (1388325562,), (1388325563,), (1388325565,), (1388325566,), (1388325574,), (1388325576,), (1388325577,), (1388325578,), (1388325583,), (1388325585,), (1388325588,), (1388325593,), (1388325596,), (1388325601,), (1388325606,), (1388325608,), (1388325610,), (1388325614,), (1388325616,), (1388325668,), (1388325655,), (1388325657,), (1388325660,), (1388325664,), (1388325766,), (1388325768,), (1388325780,), (1388325782,), (1388325785,), (1388325814,), (1388325815,), (1388325816,), (1388325819,), (1388325895,), (1388325905,), (1388325909,), (1388325914,), (1388325919,), (1388325922,), (1388325943,), (1388325946,), (1388325953,), (1388325959,), (1388325964,), (1388326007,), (1388326010,), (1388326014,), (1388326058,), (1388326071,), (1388326073,), (1388326079,), (1388326149,), (1388326153,), (1388326156,), (1388326161,), (1388326193,), (1388326226,), (1388326229,), (1388326231,), (1388326234,), (1388326238,), (1388326242,), (1388326280,), (1388326285,), (1388326297,), (1388326378,), (1388326531,), (1388326561,), (1388326566,), (1388326569,), (1388326572,), (1388326730,), (1388326736,), (1388326757,), (1388326771,), (1388326821,), (1388326839,), (1388326841,), (1388326846,), (1388326883,), (1388326887,), (1388326898,), (1388326903,), (1388326905,), (1388326907,), (1388326967,), (1388326973,), (1388326987,), (1388327001,), (1388327133,), (1388327268,), (1388327097,), (1388327099,), (1388327103,), (1388327105,), (1388327111,), (1388327155,), (1388327157,), (1388327158,), (1388327159,), (1388327162,), (1388327175,), (1388327180,), (1388327184,), (1388327188,), (1388327191,), (1388327220,), (1388327228,), (1388327231,), (1388327282,), (1388327284,), (1388327288,), (1388327294,), (1388327298,), (1388327300,), (1388327308,), (1388327314,), (1388327316,), (1388327319,), (1388327367,), (1388327371,), (1388327373,), (1388327378,), (1388327382,), (1388327386,), (1388327397,), (1388327405,), (1388327415,), (1388327418,), (1388327490,), (1388327492,), (1388327575,), (1388327578,), (1388327614,), (1388327615,), (1388327616,), (1388327667,), (1388327670,), (1388327673,), (1388327676,), (1388327680,), (1388327684,), (1388327703,), (1388327711,), (1388327712,), (1388327765,), (1388327908,), (1388327922,), (1388328031,), (1388328033,), (1388328035,), (1388328038,), (1388328041,), (1388328332,), (1388328333,), (1388328336,), (1388328392,), (1388328395,), (1388328398,), (1388328437,), (1388328438,), (1388328439,), (1388328440,), (1388328824,), (1388328515,), (1388328517,), (1388328823,), (1388328854,), (1388328866,), (1388328888,), (1388328892,), (1388328910,), (1388328913,), (1388328916,), (1388328926,), (1388328942,), (1388328945,), (1388328949,), (1388328965,), (1388328969,), (1388328971,), (1388328975,), (1388328979,), (1388328983,), (1388329014,), (1388329029,), (1388329083,), (1388329093,), (1388329116,), (1388329118,), (1388329119,), (1388329122,), (1388329300,), (1388329386,), (1388329395,), (1388329397,), (1388329408,), (1388329415,), (1388329493,), (1388329550,), (1388329552,), (1388329555,), (1388329558,), (1388329562,), (1388329602,), (1388329616,), (1388329617,), (1388329619,), (1388329623,), (1388329659,), (1388329662,), (1388329665,), (1388329668,), (1388329671,), (1388329696,), (1388329701,), (1388329705,), (1388329711,), (1388329750,), (1388337160,), (1388337293,), (1388337700,), (1388337799,), (1388337800,), (1388338083,), (1388338337,), (1388338339,), (1388338374,), (1388338492,), (1388338494,), (1388338495,), (1388338497,), (1388338634,), (1388338637,), (1388338657,), (1388338714,), (1388338716,), (1388338720,), (1388338731,), (1388338859,), (1388338862,), (1388339178,), (1388339343,), (1388339346,), (1388339347,), (1388339351,), (1388339358,), (1388339385,), (1388339387,), (1388339388,), (1388339391,), (1388339395,), (1388339572,), (1388339575,), (1388339577,), (1388339591,), (1388339655,), (1388339672,), (1388339921,), (1388339929,), (1388339935,), (1388339938,), (1388339941,), (1388339944,), (1388340284,), (1388340287,), (1388340306,), (1388340309,), (1388340463,), (1388340464,), (1388340465,), (1388340476,), (1388340480,), (1388340546,), (1388340549,), (1388340551,), (1388340613,), (1388341137,), (1388341415,), (1388341503,), (1388341437,), (1388341439,), (1388341501,), (1388341896,), (1388342221,), (1388342259,), (1388342281,), (1388342479,), (1388342482,), (1388342537,), (1388342539,), (1388342540,), (1388342898,), (1388342905,), (1388342912,), (1388342914,), (1388342934,), (1388342936,), (1388343245,), (1388343251,), (1388343253,), (1388343261,), (1388343268,), (1388343317,), (1388343320,), (1388343337,), (1388343342,), (1388343344,), (1388343348,), (1388343395,), (1388343397,), (1388343399,), (1388343554,), (1388343556,), (1388343575,), (1388343611,), (1388343613,), (1388343904,), (1388344279,), (1388344282,), (1388344285,), (1388344287,), (1388344289,), (1388344292,), (1388344459,), (1388344478,), (1388344481,), (1388344485,), (1388344649,), (1388344662,), (1388344664,), (1388344666,), (1388344670,), (1388344675,), (1388344849,), (1388344910,), (1388344984,), (1388345008,), (1388345029,), (1388345032,), (1388345035,), (1388345075,), (1388345077,), (1388345080,), (1388345153,), (1388345155,), (1388345157,), (1388345160,), (1388345175,), (1388345186,), (1388345210,), (1388345214,), (1388345219,), (1388345286,), (1388345246,), (1388345252,), (1388345266,), (1388345429,), (1388345451,), (1388345594,), (1388345926,), (1388346304,), (1388346312,), (1388346417,), (1388346419,), (1388346552,), (1388346555,), (1388346965,), (1388346967,), (1388347207,), (1388347598,), (1388347601,), (1388347883,), (1388347885,), (1388347916,), (1388347994,), (1388347998,), (1388348084,), (1388348801,), (1388348804,), (1388348893,), (1388348908,), (1388349038,), (1388349049,), (1388349052,), (1388349067,), (1388349168,), (1388349171,), (1388349173,), (1388349175,), (1388349179,), (1388349262,), (1388349270,), (1388349280,), (1388349292,), (1388349371,), (1388349375,), (1388349380,), (1388349384,), (1388349409,), (1388349799,), (1388350352,), (1388350378,), (1388350383,), (1388350654,), (1388350657,), (1388350862,), (1388350871,), (1388350883,), (1388350986,), (1388351062,), (1388351106,), (1388351114,), (1388351248,), (1388351277,), (1388351284,), (1388351288,), (1388351498,), (1388351514,), (1388351516,), (1388351519,), (1388351798,), (1388351592,), (1388351647,), (1388351649,), (1388351790,), (1388351795,), (1388351883,), (1388352037,), (1388352099,), (1388352244,), (1388352246,), (1388352248,), (1388352254,), (1388352259,), (1388352377,), (1388352432,), (1388352440,), (1388352450,), (1388352452,), (1388352458,), (1388352522,), (1388352546,), (1388352549,), (1388352706,), (1388352895,), (1388352897,), (1388352898,), (1388352901,), (1388352923,), (1388352926,), (1388352987,), (1388352988,), (1388352990,), (1388352993,), (1388352996,), (1388353007,), (1388353030,), (1388353157,), (1388353167,), (1388353271,), (1388353336,), (1388353338,), (1388353375,), (1388353378,), (1388353382,), (1388353405,), (1388353407,), (1388353409,), (1388353412,), (1388353416,), (1388353419,), (1388353454,), (1388353465,), (1388353472,), (1388353476,), (1388353654,), (1388353672,), (1388353778,), (1388353806,), (1388353837,), (1388353867,), (1388353873,), (1388353875,), (1388353880,), (1388353885,), (1388353887,), (1388353946,), (1388353949,), (1388353952,), (1388353955,), (1388354046,), (1388354049,), (1388354150,), (1388354172,), (1388414665,), (1388417425,), (1388417767,), (1388417900,), (1388417903,), (1388417918,), (1388417920,), (1388417923,), (1388417961,), (1388417978,), (1388417988,), (1388418547,), (1388418917,), (1388418922,), (1388418928,), (1388418941,), (1388418944,), (1388418946,), (1388418977,), (1388418978,), (1388418988,), (1388418991,), (1388418995,), (1388418996,), (1388419008,), (1388419009,), (1388419096,), (1388419099,), (1388419103,), (1388419107,), (1388418973,), (1388418974,), (1388419093,), (1388419114,), (1388419151,), (1388419154,), (1388420659,), (1388420757,), (1388422380,), (1388422383,), (1388422797,), (1388422801,), (1388422815,), (1388423022,), (1388423024,), (1388423318,), (1388423321,), (1388423614,), (1388423628,), (1388423638,), (1388424030,), (1388424186,), (1388424190,), (1388424193,), (1388424198,), (1388424340,), (1388424806,), (1388424810,), (1388424854,), (1388424849,), (1388424906,), (1388424910,), (1388424914,), (1388425312,), (1388425378,), (1388425463,), (1388425468,), (1388425663,), (1388425668,), (1388425783,), (1388425807,), (1388425967,), (1388425975,), (1388426020,), (1388426374,), (1388426403,), (1388426661,), (1388426740,), (1388426742,), (1388426752,), (1388427021,), (1388427085,), (1388427087,), (1388427141,), (1388427144,), (1388427147,), (1388427329,), (1388427357,), (1388427362,), (1388427458,), (1388427460,), (1388427520,), (1388427487,), (1388427490,), (1388427496,), (1388427515,), (1388427673,), (1388427721,), (1388427728,), (1388427820,), (1388427822,), (1388427824,), (1388427858,), (1388427874,), (1388427947,), (1388428073,), (1388428075,), (1388428270,), (1388428273,), (1388428277,), (1388428281,), (1388428286,), (1388428314,), (1388428750,), (1388428901,), (1388428905,), (1388428913,), (1388431347,), (1388431399,), (1388431435,), (1388431436,), (1388431486,), (1388431585,), (1388431587,), (1388431591,), (1388431594,), (1388431682,), (1388431692,), (1388431696,), (1388431707,), (1388431711,), (1388431715,), (1388431717,), (1388431721,), (1388431731,), (1388431759,), (1388431763,), (1388431769,), (1388431772,), (1388431776,), (1388431793,), (1388431813,), (1388431957,), (1388431962,), (1388432011,), (1388432020,), (1388432128,), (1388432156,), (1388432160,), (1388432162,), (1388432164,), (1388432167,), (1388432170,), (1388432206,), (1388432209,), (1388431753,), (1388432087,), (1388432089,), (1388432099,), (1388432111,), (1388432119,), (1388432134,), (1388432136,), (1388432138,), (1388432142,), (1388432144,), (1388432148,), (1388432187,), (1388432191,), (1388432198,), (1388432363,), (1388432387,), (1388432389,), (1388432392,), (1388432396,), (1388432399,), (1388432417,), (1388432423,), (1388432424,), (1388432428,), (1388432506,), (1388432508,), (1388432510,), (1388432513,), (1388432562,), (1388432565,), (1388432566,), (1388432569,), (1388432970,), (1388433013,), (1388433016,), (1388433019,), (1388433138,), (1388433148,), (1388433153,), (1388433163,), (1388433202,), (1388433211,), (1388433280,), (1388433283,), (1388433287,), (1388433290,), (1388433907,), (1388433910,), (1388433911,), (1388433913,), (1388434129,), (1388434135,), (1388434141,), (1388434234,), (1388434215,), (1388434223,), (1388434266,), (1388434268,), (1388434271,), (1388434278,), (1388434283,), (1388434483,), (1388434490,), (1388434494,), (1388434508,), (1388434538,), (1388434542,), (1388434545,), (1388434548,), (1388434553,), (1388434575,), (1388434578,), (1388434920,), (1388436204,), (1388436207,), (1388436210,), (1388436259,), (1388436267,), (1388437718,), (1388437819,), (1388437861,), (1388437893,), (1388438215,), (1388438272,), (1388438328,), (1388438778,), (1388439873,), (1388440173,), (1388440177,), (1388440447,), (1388449505,), (1388449500,), (1388449503,), (1388449520,), (1388449522,), (1388449524,), (1388450383,), (1388450385,), (1388450387,), (1388450392,), (1388450396,), (1388450410,), (1388450413,), (1388450433,), (1388451268,), (1388451296,), (1388451298,), (1388451688,), (1388452157,), (1388452161,), (1388452172,), (1388452176,), (1388452179,), (1388452241,), (1388452230,), (1388453098,), (1388453107,), (1388453190,), (1388453192,), (1388453193,), (1388453194,), (1388453217,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09102025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27649626]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] map_info['map_portfolio_photo'] : {27649626: [1388453217, 1388453194, 1388453193, 1388453192, 1388453190, 1388453107, 1388453098, 1388452230]} final : True mtd_id 4302 list_pids : [1388453217, 1388453194, 1388453193, 1388453192, 1388453190] Looping around the photos to save general results len do output : 1 /27649626Didn'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, '3904421') ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421') ('4302', None, None, None, None, None, None, None, '3904421') ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '27649626', 'None', None, None, None, None, '3904421'), ('4302', '27649626', '1388453217', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453194', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453193', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453192', None, None, None, None, None, '3904421'), ('4302', '27649626', '1388453190', None, None, None, None, None, '3904421')] time used for this insertion : 0.03726911544799805 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.447838068008423 time spend to save output : 0.03743886947631836 total time spend for step 5 : 8.485276937484741 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 (3904421) 1.89user 2.36system 0:19.97elapsed 21%CPU (0avgtext+0avgdata 158180maxresident)k 24inputs+3784outputs (3major+63980minor)pagefaults 0swaps