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 : 795854 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 (3768816) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3768816) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141926 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3768816'] with mtr_portfolio_ids : ['27141926'] and first list_photo_ids : [] new path : /proc/795854/ Name: python3 Umask: 0002 State: R (running) Tgid: 795854 Ngid: 0 Pid: 795854 PPid: 795847 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 795854 NSpid: 795854 NSpgid: 795405 NSsid: 795405 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99016 kB VmRSS: 99016 kB RssAnon: 59836 kB RssFile: 39180 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 576 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: 57 nonvoluntary_ctxt_switches: 37 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '795854', 'Ngid': '0', 'Pid': '795854', 'PPid': '795847', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '795854', 'NSpid': '795854', 'NSpgid': '795405', 'NSsid': '795405', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99016 kB', 'VmRSS': '99016 kB', 'RssAnon': '59836 kB', 'RssFile': '39180 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '576 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': '57', 'nonvoluntary_ctxt_switches': '37'} ('datou_batch_current', '795854', '1106868', '0', '1106868', '865620', '99016', b'', 'marlene', '3768816') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27141926) 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 (3768816 ) ) 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 (27141926) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1385721524, 'portfolio_id': 27141926}, {'photo_id': 1385716314, 'portfolio_id': 27141926}, {'photo_id': 1385715536, 'portfolio_id': 27141926}, {'photo_id': 1385714600, 'portfolio_id': 27141926}, {'photo_id': 1385714529, 'portfolio_id': 27141926}, {'photo_id': 1385714508, 'portfolio_id': 27141926}, {'photo_id': 1385714494, 'portfolio_id': 27141926}, {'photo_id': 1385714493, 'portfolio_id': 27141926}, {'photo_id': 1385714492, 'portfolio_id': 27141926}, {'photo_id': 1385714294, 'portfolio_id': 27141926}, {'photo_id': 1385714293, 'portfolio_id': 27141926}, {'photo_id': 1385714261, 'portfolio_id': 27141926}, {'photo_id': 1385714205, 'portfolio_id': 27141926}, {'photo_id': 1385714186, 'portfolio_id': 27141926}, {'photo_id': 1385714181, 'portfolio_id': 27141926}, {'photo_id': 1385714178, 'portfolio_id': 27141926}, {'photo_id': 1385714167, 'portfolio_id': 27141926}, {'photo_id': 1385714166, 'portfolio_id': 27141926}, {'photo_id': 1385714145, 'portfolio_id': 27141926}] map_portfolio_id_photo_id: {27141926: [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145]} ##### 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.020832538604736328 #### 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 Wed Sep 24 06:08:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27141926) 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 : 27141926 get user id for portfolio 27141926 get sub ptf for main ptf 27141926, type 3726 and hashtags ['environnement', 'autre_refus', 'Carton_gris', 'metal', 'flou', 'papier', 'Teint_Dans_La_Masse', 'kraft', 'plastique', 'Carton_brun', 'cartonnette', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27141926 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','metal','flou','papier','Teint_Dans_La_Masse','kraft','plastique','Carton_brun','cartonnette','mal_croppe')) 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`=27141926 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','metal','flou','papier','Teint_Dans_La_Masse','kraft','plastique','Carton_brun','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27141926, 'sub_port_id': 27141932, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326536, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 27141926, 'sub_port_id': 27141933, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326537, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'mal_croppe': {'main_port_id': 27141926, 'sub_port_id': 27141934, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326538, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'metal': {'main_port_id': 27141926, 'sub_port_id': 27141935, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326539, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'plastique': {'main_port_id': 27141926, 'sub_port_id': 27141936, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326540, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'papier': {'main_port_id': 27141926, 'sub_port_id': 27141937, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326541, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'kraft': {'main_port_id': 27141926, 'sub_port_id': 27141938, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326542, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'Carton_brun': {'main_port_id': 27141926, 'sub_port_id': 27141939, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326543, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'flou': {'main_port_id': 27141926, 'sub_port_id': 27141940, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326544, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'cartonnette': {'main_port_id': 27141926, 'sub_port_id': 27141941, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326545, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'autre_refus': {'main_port_id': 27141926, 'sub_port_id': 27141942, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326546, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}, 'environnement': {'main_port_id': 27141926, 'sub_port_id': 27141943, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326547, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141932 , 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=27141926 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 (27141932) result : ((1385715524,), (1385715534,), (1385716092,), (1385716094,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141933 , 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=27141926 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 (27141933) result : ((1385715518,), (1385715519,), (1385715533,), (1385715893,), (1385715894,), (1385715895,), (1385715896,), (1385715897,), (1385715898,), (1385715899,), (1385716060,), (1385716062,), (1385716064,), (1385716066,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141934 , 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=27141926 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 (27141934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141935 , 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=27141926 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 (27141935) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141936 , 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=27141926 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 (27141936) result : ((1385716108,), (1385716110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141937 , 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=27141926 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 (27141937) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141938 , 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=27141926 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 (27141938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141939 , 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=27141926 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 (27141939) result : ((1385715531,), (1385715532,), (1385716104,), (1385716105,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141940 , 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=27141926 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 (27141940) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141941 , 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=27141926 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 (27141941) result : ((1385715526,), (1385715527,), (1385715528,), (1385715529,), (1385715530,), (1385715900,), (1385716101,), (1385716102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141942 , 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=27141926 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 (27141942) result : ((1385715522,), (1385715523,), (1385716076,), (1385716078,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27141943 , 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=27141926 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 (27141943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27141926) result : ((1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,)) 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 (1385714600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27141926 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','metal','flou','papier','Teint_Dans_La_Masse','kraft','plastique','Carton_brun','cartonnette','mal_croppe')) 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`=27141926 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Carton_gris','metal','flou','papier','Teint_Dans_La_Masse','kraft','plastique','Carton_brun','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27141926, 'sub_port_id': 27141945, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326548, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 27141926, 'sub_port_id': 27141946, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326549, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'mal_croppe': {'main_port_id': 27141926, 'sub_port_id': 27141947, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326550, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'metal': {'main_port_id': 27141926, 'sub_port_id': 27141948, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326551, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'plastique': {'main_port_id': 27141926, 'sub_port_id': 27141949, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326552, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'papier': {'main_port_id': 27141926, 'sub_port_id': 27141950, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326553, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'kraft': {'main_port_id': 27141926, 'sub_port_id': 27141951, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326554, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'Carton_brun': {'main_port_id': 27141926, 'sub_port_id': 27141952, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326555, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'flou': {'main_port_id': 27141926, 'sub_port_id': 27141953, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326556, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'cartonnette': {'main_port_id': 27141926, 'sub_port_id': 27141954, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326557, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'autre_refus': {'main_port_id': 27141926, 'sub_port_id': 27141955, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326558, 'last_updated_at': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 17, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}, 'environnement': {'main_port_id': 27141926, 'sub_port_id': 27141956, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18326559, 'last_updated_at': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 19, 1, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 17, 19, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27141956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27141943 lien utilise dans velours : https://marlene.fotonower.com/velours/27141945,27141946,27141947,27141948,27141949,27141950,27141951,27141952,27141953,27141954,27141955,27141956?tags=Carton_gris,Teint_Dans_La_Masse,mal_croppe,metal,plastique,papier,kraft,Carton_brun,flou,cartonnette,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27141926]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] map_info['map_portfolio_photo'] : {27141926: [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145]} final : False mtd_id 4302 list_pids : [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] Looping around the photos to save general results len do output : 1 /27141926. 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, '3768816') ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27141926', "{'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943}", None, None, None, None, '3768816'), ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816')] time used for this insertion : 0.01579117774963379 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4305868148803711 time spend to save output : 0.01610255241394043 total time spend for step 1 : 0.4466893672943115 step2:final Wed Sep 24 06:08:28 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 (27141926) 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 27141926 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1385714145,1385714205,1385714186,1385714181,1385714178,1385714167,1385714166,1385714294,1385714293,1385714261,1385714529,1385714508,1385714494,1385714493,1385714492,1385714600,1385716314,1385715536,1385721524); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27141926]) Inside saveOutput : final : False verbose : True original output for save of step final : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} new output for save of step final : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] map_info['map_portfolio_photo'] : {27141926: [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145]} final : False mtd_id 4302 list_pids : [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] Looping around the photos to save general results len do output : 19 /1385721524.Didn't retrieve data . /1385716314.Didn't retrieve data . /1385715536.Didn't retrieve data . /1385714600.Didn't retrieve data . /1385714529.Didn't retrieve data . /1385714508.Didn't retrieve data . /1385714494.Didn't retrieve data . /1385714493.Didn't retrieve data . /1385714492.Didn't retrieve data . /1385714294.Didn't retrieve data . /1385714293.Didn't retrieve data . /1385714261.Didn't retrieve data . /1385714205.Didn't retrieve data . /1385714186.Didn't retrieve data . /1385714181.Didn't retrieve data . /1385714178.Didn't retrieve data . /1385714167.Didn't retrieve data . /1385714166.Didn't retrieve data . /1385714145.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, '3768816') ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27141926', '1385721524', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385716314', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385715536', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714600', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714529', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714508', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714494', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714493', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714492', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714294', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714293', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714261', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714205', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714186', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714181', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714178', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714167', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714166', '0.05380199679501097', None, None, None, None, '3768816'), ('4302', '27141926', '1385714145', '0.05380199679501097', None, None, None, None, '3768816')] time used for this insertion : 0.016236543655395508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06089591979980469 time spend to save output : 0.017030954360961914 total time spend for step 2 : 0.0779268741607666 step3:velours_tree Wed Sep 24 06:08:28 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 : {27141926: [{'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943}]} input_args_next_step : {27141926: ()} output_args : {27141926: [{'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943}]} args : 27141926 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27141926) 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([27141926]) 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.3306233882904053 time spend to save output : 4.220008850097656e-05 total time spend for step 3 : 0.33066558837890625 step4:send_mail_cod Wed Sep 24 06:08:28 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 : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} input_args_next_step : {1385721524: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385721524 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385716314 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385715536 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714600 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714529 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714508 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714494 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714493 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714492 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714294 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714293 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714261 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714205 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714186 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714181 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714178 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714167 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714166 depend.output_id : 0 input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ()} output_args : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',)} args : 1385714145 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 : {27141926: [{'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943}]} input_args_next_step : {1385721524: ('0.05380199679501097',), 1385716314: ('0.05380199679501097',), 1385715536: ('0.05380199679501097',), 1385714600: ('0.05380199679501097',), 1385714529: ('0.05380199679501097',), 1385714508: ('0.05380199679501097',), 1385714494: ('0.05380199679501097',), 1385714493: ('0.05380199679501097',), 1385714492: ('0.05380199679501097',), 1385714294: ('0.05380199679501097',), 1385714293: ('0.05380199679501097',), 1385714261: ('0.05380199679501097',), 1385714205: ('0.05380199679501097',), 1385714186: ('0.05380199679501097',), 1385714181: ('0.05380199679501097',), 1385714178: ('0.05380199679501097',), 1385714167: ('0.05380199679501097',), 1385714166: ('0.05380199679501097',), 1385714145: ('0.05380199679501097',), 27141926: ()} output_args : {27141926: [{'Carton_gris': 27141932, 'Teint_Dans_La_Masse': 27141933, 'mal_croppe': 27141934, 'metal': 27141935, 'plastique': 27141936, 'papier': 27141937, 'kraft': 27141938, 'Carton_brun': 27141939, 'flou': 27141940, 'cartonnette': 27141941, 'autre_refus': 27141942, 'environnement': 27141943}]} args : 27141926 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :20, first value : ('0.05380199679501097',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27141926) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1385721524,1385716314,1385715536,1385714600,1385714529,1385714508,1385714494,1385714493,1385714492,1385714294,1385714293,1385714261,1385714205,1385714186,1385714181,1385714178,1385714167,1385714166,1385714145) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1385714145 begin to download photo : 1385714181 begin to download photo : 1385714293 begin to download photo : 1385714494 begin to download photo : 1385715536 download finish for photo 1385714293 begin to download photo : 1385714294 download finish for photo 1385714145 begin to download photo : 1385714166 download finish for photo 1385714181 begin to download photo : 1385714186 download finish for photo 1385715536 begin to download photo : 1385716314 download finish for photo 1385714494 begin to download photo : 1385714508 download finish for photo 1385714294 begin to download photo : 1385714492 download finish for photo 1385714166 begin to download photo : 1385714167 download finish for photo 1385714186 begin to download photo : 1385714205 download finish for photo 1385714508 begin to download photo : 1385714529 download finish for photo 1385716314 begin to download photo : 1385721524 download finish for photo 1385714167 begin to download photo : 1385714178 download finish for photo 1385714492 begin to download photo : 1385714493 download finish for photo 1385714205 begin to download photo : 1385714261 download finish for photo 1385714178 download finish for photo 1385721524 download finish for photo 1385714529 begin to download photo : 1385714600 download finish for photo 1385714493 download finish for photo 1385714261 download finish for photo 1385714600 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette271419341758686909/ imagette271419351758686909/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P27141926_24-09-2025_06_08_29.pdf 27141934 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271419341758686909 27141935 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271419351758686909 27141936 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385716108: '1758641126_1529145_1385714178_b243e1d407586a054d07b5e49a659e93_rle_crop_3971849720_0.png', 1385716110: '1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849739_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/9d15613a8c42c703e47f1c50d41d164a_32905270.png change filename to text .imagette271419361758686909/ imagette271419361758686909/1758641126_1529145_1385714178_b243e1d407586a054d07b5e49a659e93_rle_crop_3971849720_0.png.png imagette271419361758686909/1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849739_0.png.png imagette271419381758686909/ imagette271419401758686909/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c439fa7e4d248e28350d67bee53cc484_5988447.png imagette271419361758686909 27141938 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271419381758686909 27141940 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271419401758686909 27141941 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385715526: '1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848982_0.png', 1385715527: '1758640986_1523319_1385714508_9baf99a2161d0b14ee806fdeaf4a3bbf_rle_crop_3971849014_0.png', 1385715528: '1758640986_1523319_1385714494_cb2f90d0529d807a55f90fbbe52bcd8d_rle_crop_3971849029_0.png', 1385715529: '1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849043_0.png', 1385715530: '1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849039_0.png', 1385715900: '1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849512_0.png', 1385716101: '1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849701_0.png', 1385716102: '1758641126_1529145_1385714166_9ac0c8bb85c3e74f9804b12f278258bc_rle_crop_3971849745_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/3f28d040588cdd5082574da6e703bcd2_78445352.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/430303101101f07db647051855e9c8d0_63841050.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/abf37698dcec2765a52e6245dc327e76_68667759.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/970b5a6718bd7d93d827b192e0a0264d_1264282.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/cf087c87b90e4c799361cc8c1a4b00ae_85114117.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/09dc0c60ffa8ada1142dd9fd6b98d47a_29533987.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/52fe2d0814f58a346fb87049da28423e_87949483.png change filename to text .imagette271419411758686909/ imagette271419411758686909/1758640986_1523319_1385714494_cb2f90d0529d807a55f90fbbe52bcd8d_rle_crop_3971849029_0.png.png imagette271419411758686909/1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849701_0.png.png imagette271419411758686909/1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849043_0.png.png imagette271419411758686909/1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849512_0.png.png imagette271419411758686909/1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849039_0.png.png imagette271419411758686909/1758641126_1529145_1385714166_9ac0c8bb85c3e74f9804b12f278258bc_rle_crop_3971849745_0.png.png imagette271419411758686909/1758640986_1523319_1385714508_9baf99a2161d0b14ee806fdeaf4a3bbf_rle_crop_3971849014_0.png.png imagette271419411758686909/1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848982_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/86c69c4c74a2ff2af1d3908cb0ffb0d0_81101111.png imagette271419411758686909 27141942 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385715522: '1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848987_0.png', 1385715523: '1758640986_1523319_1385714494_cb2f90d0529d807a55f90fbbe52bcd8d_rle_crop_3971849030_0.png', 1385716076: '1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849724_0.png', 1385716078: '1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849729_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/eced14f79e36c3c45f530eb36fc94c75_35667714.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/b2fbb5d6740f3b66f1690f966052f553_66133185.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/59996cf3437ef6a491aa3623ad787700_24563877.png change filename to text .imagette271419421758686910/ imagette271419421758686910/1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848987_0.png.png imagette271419421758686910/1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849724_0.png.png imagette271419421758686910/1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849729_0.png.png imagette271419421758686910/1758640986_1523319_1385714494_cb2f90d0529d807a55f90fbbe52bcd8d_rle_crop_3971849030_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/ff62bb04f1f125965005ca1c363b0716_61418528.png imagette271419421758686910 27141932 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385715524: '1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849041_0.png', 1385715534: '1758641006_1523655_1385714529_89e99217f0666ebdff0164191c038b60_rle_crop_3971849149_0.png', 1385716092: '1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849708_0.png', 1385716094: '1758641126_1529145_1385714178_b243e1d407586a054d07b5e49a659e93_rle_crop_3971849715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/771a849727953cd5c109f0f13db50d1c_89209251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/073fe60f65407fb160abef32cded952e_51614877.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/464ea4cea007c0a441ed3a8ebcbbdad7_24268821.png change filename to text .imagette271419321758686910/ imagette271419321758686910/1758640986_1523319_1385714493_5249868572a110b1f11c03843f70d3d2_rle_crop_3971849041_0.png.png imagette271419321758686910/1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849708_0.png.png imagette271419321758686910/1758641006_1523655_1385714529_89e99217f0666ebdff0164191c038b60_rle_crop_3971849149_0.png.png imagette271419321758686910/1758641126_1529145_1385714178_b243e1d407586a054d07b5e49a659e93_rle_crop_3971849715_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/f346c40ae1c2abb8ca5ec5f26016efbc_64234456.png imagette271419321758686910 27141933 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385715518: '1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848984_0.png', 1385715519: '1758640986_1523319_1385714508_9baf99a2161d0b14ee806fdeaf4a3bbf_rle_crop_3971849020_0.png', 1385715533: '1758641006_1523655_1385714529_89e99217f0666ebdff0164191c038b60_rle_crop_3971849151_0.png', 1385715893: '1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849494_0.png', 1385715894: '1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849496_0.png', 1385715895: '1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849497_0.png', 1385715896: '1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849517_0.png', 1385715897: '1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849510_0.png', 1385715898: '1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849514_0.png', 1385715899: '1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849513_0.png', 1385716060: '1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849691_0.png', 1385716062: '1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849686_0.png', 1385716064: '1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849706_0.png', 1385716066: '1758641126_1529145_1385714166_9ac0c8bb85c3e74f9804b12f278258bc_rle_crop_3971849751_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/69307431b52239f0f2275318ccb37022_93498090.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/20a45581f60beef89f50a2e7da7520e2_38310588.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c177c89ef7f9fbbfe37abf071f1807c7_68401778.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/0ba6ed8c135193d4e055e7aba37690d4_64007037.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/fd4a120201a11ab883be642508c48e57_58948162.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/356e3a319f08e098b4c7583178f81020_97689476.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c523b702b139461e5b28a953fbcd658c_69293603.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/f691333c1a1931f51c0a5408db3d2db7_93213595.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/b73a748be00e60af6255b783043e0474_8850349.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/d9e72606c6132656929e206015f41a6c_75332885.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/80575d61b9d87d68d3aa8859b3cd6580_36249558.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/4eeb92de93d4f1b586cca6653f71e9a1_5268029.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/cb1ea68b27c8d067a8f9ae619c0b9022_28032811.png change filename to text .imagette271419331758686911/ imagette271419331758686911/1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849513_0.png.png imagette271419331758686911/1758641126_1529145_1385714181_24a6827a1233bb2ddcf504a92a38958a_rle_crop_3971849706_0.png.png imagette271419331758686911/1758641006_1523655_1385714529_89e99217f0666ebdff0164191c038b60_rle_crop_3971849151_0.png.png imagette271419331758686911/1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849517_0.png.png imagette271419331758686911/1758641126_1529145_1385714166_9ac0c8bb85c3e74f9804b12f278258bc_rle_crop_3971849751_0.png.png imagette271419331758686911/1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848984_0.png.png imagette271419331758686911/1758640986_1523319_1385714508_9baf99a2161d0b14ee806fdeaf4a3bbf_rle_crop_3971849020_0.png.png imagette271419331758686911/1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849497_0.png.png imagette271419331758686911/1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849686_0.png.png imagette271419331758686911/1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849510_0.png.png imagette271419331758686911/1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849691_0.png.png imagette271419331758686911/1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849496_0.png.png imagette271419331758686911/1758641108_1528745_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e_rle_crop_3971849514_0.png.png imagette271419331758686911/1758641108_1528745_1385714205_e2b0c53c9ee62538c05258e8e1244605_rle_crop_3971849494_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/5a86edaeea3bab324f0b556af7a1cbdb_76071352.png imagette271419331758686911 27141939 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385715531: '1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848990_0.png', 1385715532: '1758640986_1523319_1385714492_7ae0faa066bb24d0858b101718ca6aa7_rle_crop_3971849056_0.png', 1385716104: '1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849684_0.png', 1385716105: '1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849733_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/3af0250d446ae602209639fc42c75e9a_19385614.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/43fb75d4027887113ed6b7bb0cb53ad2_49229126.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c3ab6916cfdbae32488c319a19e5f82f_88174683.png change filename to text .imagette271419391758686912/ imagette271419391758686912/1758641126_1529145_1385714186_0865f4512e3d38fe4a7f7e3d2296c104_rle_crop_3971849684_0.png.png imagette271419391758686912/1758641126_1529145_1385714167_82674097f643f0c076d4aee87868b844_rle_crop_3971849733_0.png.png imagette271419391758686912/1758640986_1523319_1385714492_7ae0faa066bb24d0858b101718ca6aa7_rle_crop_3971849056_0.png.png imagette271419391758686912/1758640986_1523319_1385714600_42012e1633f6a2c196c3c0f9c26076b6_rle_crop_3971848990_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/f75b1a430da4d371d3c2d749999dac3d_82227063.png imagette271419391758686912 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27141926 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27141945,27141946,27141947,27141948,27141949,27141950,27141951,27141952,27141953,27141954,27141955,27141956?tags=Carton_gris,Teint_Dans_La_Masse,mal_croppe,metal,plastique,papier,kraft,Carton_brun,flou,cartonnette,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1385721524] : ('0.05380199679501097',) no score found for photo 1385721524 We are sending mail with results at report@fotonower.com args[1385716314] : ('0.05380199679501097',) no score found for photo 1385716314 We are sending mail with results at report@fotonower.com args[1385715536] : ('0.05380199679501097',) no score found for photo 1385715536 We are sending mail with results at report@fotonower.com args[1385714600] : ('0.05380199679501097',) no score found for photo 1385714600 We are sending mail with results at report@fotonower.com args[1385714529] : ('0.05380199679501097',) no score found for photo 1385714529 We are sending mail with results at report@fotonower.com args[1385714508] : ('0.05380199679501097',) no score found for photo 1385714508 We are sending mail with results at report@fotonower.com args[1385714494] : ('0.05380199679501097',) no score found for photo 1385714494 We are sending mail with results at report@fotonower.com args[1385714493] : ('0.05380199679501097',) no score found for photo 1385714493 We are sending mail with results at report@fotonower.com args[1385714492] : ('0.05380199679501097',) no score found for photo 1385714492 We are sending mail with results at report@fotonower.com args[1385714294] : ('0.05380199679501097',) no score found for photo 1385714294 We are sending mail with results at report@fotonower.com args[1385714293] : ('0.05380199679501097',) no score found for photo 1385714293 We are sending mail with results at report@fotonower.com args[1385714261] : ('0.05380199679501097',) no score found for photo 1385714261 We are sending mail with results at report@fotonower.com args[1385714205] : ('0.05380199679501097',) no score found for photo 1385714205 We are sending mail with results at report@fotonower.com args[1385714186] : ('0.05380199679501097',) no score found for photo 1385714186 We are sending mail with results at report@fotonower.com args[1385714181] : ('0.05380199679501097',) no score found for photo 1385714181 We are sending mail with results at report@fotonower.com args[1385714178] : ('0.05380199679501097',) no score found for photo 1385714178 We are sending mail with results at report@fotonower.com args[1385714167] : ('0.05380199679501097',) no score found for photo 1385714167 We are sending mail with results at report@fotonower.com args[1385714166] : ('0.05380199679501097',) no score found for photo 1385714166 We are sending mail with results at report@fotonower.com args[1385714145] : ('0.05380199679501097',) no score found for photo 1385714145 We are sending mail with results at report@fotonower.com refus_total : 0.05380199679501097 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141926 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_P27141926_24-09-2025_06_08_29.pdf results_Auto_P27141926_24-09-2025_06_08_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_24-09-2025_06_08_29.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','27141926','results_Auto_P27141926_24-09-2025_06_08_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_24-09-2025_06_08_29.pdf','pdf','','0.27','0.05380199679501097') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27141926]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] map_info['map_portfolio_photo'] : {27141926: [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145]} final : False mtd_id 4302 list_pids : [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] 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, '3768816') ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27141926', '1385721524', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816')] time used for this insertion : 0.015715837478637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.19783353805542 time spend to save output : 0.016049623489379883 total time spend for step 4 : 6.2138831615448 step5:split_time_score Wed Sep 24 06:08:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27141926'] 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 : [('27141926',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27141926) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1385714145: {'path': 'temp/1758686908_795854_1385714145_c53ff8ad95fc6b0cc42d593217cbbd2e.jpg', 'extension': 'jpg'}, 1385714166: {'path': 'temp/1758686908_795854_1385714166_9ac0c8bb85c3e74f9804b12f278258bc.jpg', 'extension': 'jpg'}, 1385714167: {'path': 'temp/1758686908_795854_1385714167_82674097f643f0c076d4aee87868b844.jpg', 'extension': 'jpg'}, 1385714178: {'path': 'temp/1758686908_795854_1385714178_b243e1d407586a054d07b5e49a659e93.jpg', 'extension': 'jpg'}, 1385715536: {'path': 'temp/1758686908_795854_1385715536_957bed9bd095e626c80631689af672ca.jpg', 'extension': 'jpg'}, 1385716314: {'path': 'temp/1758686908_795854_1385716314_5e3c94a923ac3dd3b4895ffed0f4ad14.jpg', 'extension': 'jpg'}, 1385721524: {'path': 'temp/1758686908_795854_1385721524_9d4749237303ae614409dedfdc3b57aa.jpg', 'extension': 'jpg'}, 1385714293: {'path': 'temp/1758686908_795854_1385714293_3b7a8321a8f5ebd2229cd896dc43b8da.jpg', 'extension': 'jpg'}, 1385714294: {'path': 'temp/1758686908_795854_1385714294_23589261c2eb4395b2928cf42d94af12.jpg', 'extension': 'jpg'}, 1385714492: {'path': 'temp/1758686908_795854_1385714492_7ae0faa066bb24d0858b101718ca6aa7.jpg', 'extension': 'jpg'}, 1385714493: {'path': 'temp/1758686908_795854_1385714493_5249868572a110b1f11c03843f70d3d2.jpg', 'extension': 'jpg'}, 1385714181: {'path': 'temp/1758686908_795854_1385714181_24a6827a1233bb2ddcf504a92a38958a.jpg', 'extension': 'jpg'}, 1385714186: {'path': 'temp/1758686908_795854_1385714186_0865f4512e3d38fe4a7f7e3d2296c104.jpg', 'extension': 'jpg'}, 1385714205: {'path': 'temp/1758686908_795854_1385714205_e2b0c53c9ee62538c05258e8e1244605.jpg', 'extension': 'jpg'}, 1385714261: {'path': 'temp/1758686908_795854_1385714261_d64fb7d2cbaa6737d331c8baab22e24d.jpg', 'extension': 'jpg'}, 1385714494: {'path': 'temp/1758686908_795854_1385714494_cb2f90d0529d807a55f90fbbe52bcd8d.jpg', 'extension': 'jpg'}, 1385714508: {'path': 'temp/1758686908_795854_1385714508_9baf99a2161d0b14ee806fdeaf4a3bbf.jpg', 'extension': 'jpg'}, 1385714529: {'path': 'temp/1758686908_795854_1385714529_89e99217f0666ebdff0164191c038b60.jpg', 'extension': 'jpg'}, 1385714600: {'path': 'temp/1758686908_795854_1385714600_42012e1633f6a2c196c3c0f9c26076b6.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 = 27141926; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27141926 group by h (('17', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27141926 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 (27141926) 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 (27141926) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23092025 27141926 Nombre de photos uploadées : 19 / 23040 (0%) 23092025 27141926 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 23092025 27141926 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1385714145, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c53ff8ad95fc6b0cc42d593217cbbd2e.jpg', 'username': None, 'uploaded_at': 1758640568, 'text': 'image_23092025_17_15_34_010150m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1385714205, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/e2b0c53c9ee62538c05258e8e1244605.jpg', 'username': None, 'uploaded_at': 1758640628, 'text': 'image_23092025_17_15_54_009128m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1385714186, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/0865f4512e3d38fe4a7f7e3d2296c104.jpg', 'username': None, 'uploaded_at': 1758640628, 'text': 'image_23092025_17_16_04_010156m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1385714181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/24a6827a1233bb2ddcf504a92a38958a.jpg', 'username': None, 'uploaded_at': 1758640628, 'text': 'image_23092025_17_16_14_010138m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008306503295898438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27141926, '2025-09-23' ) 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-09-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2334629,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20508170127868652 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= 2334629 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27110178, 'dashboard_result_id': 15609050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_24-09-2025_05_35_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27110339, 'dashboard_result_id': 15609051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_24-09-2025_05_35_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27110574, 'dashboard_result_id': 15609052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_24-09-2025_05_36_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27111222, 'dashboard_result_id': 15609053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_24-09-2025_05_37_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27111303, 'dashboard_result_id': 15609054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_24-09-2025_05_37_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27111567, 'dashboard_result_id': 15609055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_24-09-2025_05_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27111819, 'dashboard_result_id': 15609056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_24-09-2025_05_39_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27111974, 'dashboard_result_id': 15609057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_24-09-2025_05_40_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27112157, 'dashboard_result_id': 15609058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_24-09-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27112455, 'dashboard_result_id': 15609059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_24-09-2025_05_41_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27112498, 'dashboard_result_id': 15609060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_24-09-2025_05_42_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27112687, 'dashboard_result_id': 15609061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_24-09-2025_05_42_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27112928, 'dashboard_result_id': 15609062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_24-09-2025_05_43_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27113061, 'dashboard_result_id': 15609063, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_24-09-2025_05_43_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27113469, 'dashboard_result_id': 15609064, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_24-09-2025_05_44_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27113662, 'dashboard_result_id': 15609065, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_24-09-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27114096, 'dashboard_result_id': 15609066, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_24-09-2025_05_45_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27114459, 'dashboard_result_id': 15609067, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_24-09-2025_05_46_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27114912, 'dashboard_result_id': 15609068, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_24-09-2025_05_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27115466, 'dashboard_result_id': 15609069, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_24-09-2025_05_47_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27115933, 'dashboard_result_id': 15609070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_24-09-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27116818, 'dashboard_result_id': 15609071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_24-09-2025_05_48_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27117463, 'dashboard_result_id': 15609072, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_24-09-2025_05_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27118077, 'dashboard_result_id': 15609073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_24-09-2025_05_50_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27118722, 'dashboard_result_id': 15609074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_24-09-2025_05_50_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27119449, 'dashboard_result_id': 15609075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_24-09-2025_05_51_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27120106, 'dashboard_result_id': 15609076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_24-09-2025_05_52_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27120892, 'dashboard_result_id': 15609077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_24-09-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27123660, 'dashboard_result_id': 15609078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123660_24-09-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27123676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123687, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27123824, 'dashboard_result_id': 15609079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_24-09-2025_05_54_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27124375, 'dashboard_result_id': 15609080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_24-09-2025_05_55_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27125241, 'dashboard_result_id': 15609081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_24-09-2025_05_55_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27125947, 'dashboard_result_id': 15609082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_24-09-2025_05_55_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27126940, 'dashboard_result_id': 15609083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_24-09-2025_05_56_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27127522, 'dashboard_result_id': 15609084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_24-09-2025_05_56_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27128056, 'dashboard_result_id': 15609085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_24-09-2025_05_57_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27128847, 'dashboard_result_id': 15609086, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_24-09-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27129679, 'dashboard_result_id': 15609087, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_24-09-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27130302, 'dashboard_result_id': 15609088, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_24-09-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27133334, 'dashboard_result_id': 15609089, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133334_24-09-2025_06_00_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27133337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133348, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27133702, 'dashboard_result_id': 15609090, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27134309, 'dashboard_result_id': 15609091, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_24-09-2025_06_01_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27134858, 'dashboard_result_id': 15609092, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_24-09-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27135451, 'dashboard_result_id': 15609093, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_24-09-2025_06_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27135975, 'dashboard_result_id': 15609094, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135975_24-09-2025_06_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27136023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136026, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27136713, 'dashboard_result_id': 15609095, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27136713_24-09-2025_06_04_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27136752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136764, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27137331, 'dashboard_result_id': 15609096, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27137331_24-09-2025_06_04_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27137357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27137358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27137359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27137360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27137361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27137362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27137363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27137364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27137365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27137366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27137367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27137368, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27138021, 'dashboard_result_id': 15609097, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138021_24-09-2025_06_05_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138048, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27138574, 'dashboard_result_id': 15609098, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138574_24-09-2025_06_05_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138620, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27139184, 'dashboard_result_id': 15609099, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139184_24-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27139238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139249, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27139817, 'dashboard_result_id': 15609100, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139817_24-09-2025_06_06_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27139847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139855, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27140567, 'dashboard_result_id': 15609101, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27140567_24-09-2025_06_07_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27140598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27140599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27140600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27140601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27140602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27140603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27140604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27140605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27140606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27140607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27140608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27140609, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27141077, 'dashboard_result_id': 15609102, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141077_24-09-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141122, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27141926, 'dashboard_result_id': 15609103, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_23-09-2025_19_01_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141943, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27143178, 'dashboard_result_id': 15609104, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143178_23-09-2025_18_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143190, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27143621, 'dashboard_result_id': 15609105, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143621_23-09-2025_18_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143662, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27144295, 'dashboard_result_id': 15609106, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144295_23-09-2025_19_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27144306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27144312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144317, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27144937, 'dashboard_result_id': 15609107, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144937_23-09-2025_19_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27144949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27144956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144960, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27145517, 'dashboard_result_id': 15609108, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27145517_23-09-2025_19_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27145534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27145535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27145536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27145537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27145538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27145539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27145540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27145541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27145542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27145543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27145544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27145545, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27146065, 'dashboard_result_id': 15609109, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146065_23-09-2025_19_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146101, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27146655, 'dashboard_result_id': 15609110, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146655_23-09-2025_20_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146692, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27147275, 'dashboard_result_id': 15609111, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27147275_23-09-2025_20_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27147317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27147318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27147319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27147320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27147321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27147322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27147323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27147324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27147325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27147326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27147327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27147328, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27148031, 'dashboard_result_id': 15609112, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148031_23-09-2025_20_33_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148048, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27148627, 'dashboard_result_id': 15609113, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148627_23-09-2025_21_10_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148646, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27149921, 'dashboard_result_id': 15609114, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27149921_23-09-2025_21_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27149950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27149951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27149952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27149953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27149954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27149955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27149956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27149957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27149958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27149959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27149960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27149961, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27150247, 'dashboard_result_id': 15609115, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150247_23-09-2025_21_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150263, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27150642, 'dashboard_result_id': 15609116, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150642_23-09-2025_21_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150669, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27151338, 'dashboard_result_id': 15609117, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151338_23-09-2025_23_31_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27151346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151357, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27151879, 'dashboard_result_id': 15609118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151879_23-09-2025_22_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27151892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151897, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27152571, 'dashboard_result_id': 15609119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27152571_23-09-2025_22_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27152580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27152581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27152582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27152583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27152584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27152585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27152586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27152587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27152588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27152589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27152590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27152591, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27153137, 'dashboard_result_id': 15609120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153137_23-09-2025_22_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153198, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27153866, 'dashboard_result_id': 15609121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153866_23-09-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153886, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27154427, 'dashboard_result_id': 15609122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27154427_23-09-2025_23_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27154438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27154439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27154440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27154441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27154442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27154443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27154444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27154445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27154446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27154447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27154448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27154449, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27155256, 'dashboard_result_id': 15609123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155256_23-09-2025_23_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27155291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27155292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27155293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27155294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27155295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27155296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27155297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27155298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27155299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27155300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27155301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27155302, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27155951, 'dashboard_result_id': 15609124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155951_23-09-2025_23_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156075, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2350823, 'mtr_portfolio_id': 27156679, 'dashboard_result_id': 15609125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27156679_24-09-2025_00_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156691, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27110178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768763, 'mtr_portfolio_id': 27110178, 'created_at': datetime.datetime(2025, 9, 24, 5, 35, 28), 'result': '0.0842835302498198', 'result_long': None, 'result_double': None}] Qualite : 0.0842835302498198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_24-09-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_24-09-2025_05_35_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}" where mtr_portfolio_id = 27110178 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27110178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609050, 0.0842835302498198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_24-09-2025_05_35_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27110339 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768764, 'mtr_portfolio_id': 27110339, 'created_at': datetime.datetime(2025, 9, 24, 5, 35, 58), 'result': '0.08052653617255652', 'result_long': None, 'result_double': None}] Qualite : 0.08052653617255652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_24-09-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110339 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_24-09-2025_05_35_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}" where mtr_portfolio_id = 27110339 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27110339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609051, 0.08052653617255652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_24-09-2025_05_35_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27110574 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768765, 'mtr_portfolio_id': 27110574, 'created_at': datetime.datetime(2025, 9, 24, 5, 36, 30), 'result': '0.15193610779783676', 'result_long': None, 'result_double': None}] Qualite : 0.15193610779783676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_24-09-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_24-09-2025_05_36_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}" where mtr_portfolio_id = 27110574 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27110574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609052, 0.15193610779783676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_24-09-2025_05_36_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27111222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768766, 'mtr_portfolio_id': 27111222, 'created_at': datetime.datetime(2025, 9, 24, 5, 37, 28), 'result': '0.06511032879639336', 'result_long': None, 'result_double': None}] Qualite : 0.06511032879639336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_24-09-2025_05_37_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_24-09-2025_05_37_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}" where mtr_portfolio_id = 27111222 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27111222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609053, 0.06511032879639336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_24-09-2025_05_37_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27111303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768767, 'mtr_portfolio_id': 27111303, 'created_at': datetime.datetime(2025, 9, 24, 5, 37, 58), 'result': '0.07088026896845984', 'result_long': None, 'result_double': None}] Qualite : 0.07088026896845984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_24-09-2025_05_37_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_24-09-2025_05_37_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}" where mtr_portfolio_id = 27111303 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27111303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609054, 0.07088026896845984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_24-09-2025_05_37_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27111567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768768, 'mtr_portfolio_id': 27111567, 'created_at': datetime.datetime(2025, 9, 24, 5, 38, 30), 'result': '0.08627575428145877', 'result_long': None, 'result_double': None}] Qualite : 0.08627575428145877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_24-09-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_24-09-2025_05_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}" where mtr_portfolio_id = 27111567 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27111567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609055, 0.08627575428145877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_24-09-2025_05_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27111819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768769, 'mtr_portfolio_id': 27111819, 'created_at': datetime.datetime(2025, 9, 24, 5, 39, 28), 'result': '0.010484843398966976', 'result_long': None, 'result_double': None}] Qualite : 0.010484843398966976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_24-09-2025_05_39_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_24-09-2025_05_39_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}" where mtr_portfolio_id = 27111819 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27111819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609056, 0.010484843398966976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_24-09-2025_05_39_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27111974 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768770, 'mtr_portfolio_id': 27111974, 'created_at': datetime.datetime(2025, 9, 24, 5, 40, 1), 'result': '0.0850662591739114', 'result_long': None, 'result_double': None}] Qualite : 0.0850662591739114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_24-09-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111974 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_24-09-2025_05_40_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}" where mtr_portfolio_id = 27111974 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27111974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609057, 0.0850662591739114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_24-09-2025_05_40_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27112157 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768771, 'mtr_portfolio_id': 27112157, 'created_at': datetime.datetime(2025, 9, 24, 5, 40, 29), 'result': '0.04044909590864457', 'result_long': None, 'result_double': None}] Qualite : 0.04044909590864457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_24-09-2025_05_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112157 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_24-09-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}" where mtr_portfolio_id = 27112157 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27112157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609058, 0.04044909590864457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_24-09-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27112455 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768772, 'mtr_portfolio_id': 27112455, 'created_at': datetime.datetime(2025, 9, 24, 5, 41, 29), 'result': '0.05003919122138744', 'result_long': None, 'result_double': None}] Qualite : 0.05003919122138744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_24-09-2025_05_41_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112455 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_24-09-2025_05_41_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}" where mtr_portfolio_id = 27112455 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27112455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609059, 0.05003919122138744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_24-09-2025_05_41_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27112498 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768773, 'mtr_portfolio_id': 27112498, 'created_at': datetime.datetime(2025, 9, 24, 5, 42), 'result': '0.04466887370800656', 'result_long': None, 'result_double': None}] Qualite : 0.04466887370800656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_24-09-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112498 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_24-09-2025_05_42_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}" where mtr_portfolio_id = 27112498 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27112498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609060, 0.04466887370800656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_24-09-2025_05_42_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27112687 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768774, 'mtr_portfolio_id': 27112687, 'created_at': datetime.datetime(2025, 9, 24, 5, 42, 29), 'result': '0.04644080912606092', 'result_long': None, 'result_double': None}] Qualite : 0.04644080912606092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_24-09-2025_05_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112687 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_24-09-2025_05_42_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}" where mtr_portfolio_id = 27112687 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27112687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609061, 0.04644080912606092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_24-09-2025_05_42_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27112928 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768775, 'mtr_portfolio_id': 27112928, 'created_at': datetime.datetime(2025, 9, 24, 5, 43, 29), 'result': '0.07938918419812342', 'result_long': None, 'result_double': None}] Qualite : 0.07938918419812342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_24-09-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112928 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_24-09-2025_05_43_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}" where mtr_portfolio_id = 27112928 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27112928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609062, 0.07938918419812342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_24-09-2025_05_43_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27113061 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768776, 'mtr_portfolio_id': 27113061, 'created_at': datetime.datetime(2025, 9, 24, 5, 43, 58), 'result': '0.14121341587733877', 'result_long': None, 'result_double': None}] Qualite : 0.14121341587733877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_24-09-2025_05_43_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113061 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_24-09-2025_05_43_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}" where mtr_portfolio_id = 27113061 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27113061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609063, 0.14121341587733877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_24-09-2025_05_43_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27113469 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768777, 'mtr_portfolio_id': 27113469, 'created_at': datetime.datetime(2025, 9, 24, 5, 44, 28), 'result': '0.04942428243117697', 'result_long': None, 'result_double': None}] Qualite : 0.04942428243117697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_24-09-2025_05_44_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113469 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_24-09-2025_05_44_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}" where mtr_portfolio_id = 27113469 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27113469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609064, 0.04942428243117697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_24-09-2025_05_44_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27113662 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768778, 'mtr_portfolio_id': 27113662, 'created_at': datetime.datetime(2025, 9, 24, 5, 45, 31), 'result': '0.04660001475894227', 'result_long': None, 'result_double': None}] Qualite : 0.04660001475894227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_24-09-2025_05_45_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113662 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_24-09-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}" where mtr_portfolio_id = 27113662 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27113662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609065, 0.04660001475894227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_24-09-2025_05_45_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27114096 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768779, 'mtr_portfolio_id': 27114096, 'created_at': datetime.datetime(2025, 9, 24, 5, 45, 37), 'result': '0.04738553376969372', 'result_long': None, 'result_double': None}] Qualite : 0.04738553376969372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_24-09-2025_05_45_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114096 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_24-09-2025_05_45_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}" where mtr_portfolio_id = 27114096 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27114096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609066, 0.04738553376969372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_24-09-2025_05_45_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27114459 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768780, 'mtr_portfolio_id': 27114459, 'created_at': datetime.datetime(2025, 9, 24, 5, 45, 59), 'result': '0.05907237025513325', 'result_long': None, 'result_double': None}] Qualite : 0.05907237025513325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_24-09-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114459 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_24-09-2025_05_46_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}" where mtr_portfolio_id = 27114459 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27114459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609067, 0.05907237025513325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_24-09-2025_05_46_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27114912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768781, 'mtr_portfolio_id': 27114912, 'created_at': datetime.datetime(2025, 9, 24, 5, 46, 29), 'result': '0.05237205134853023', 'result_long': None, 'result_double': None}] Qualite : 0.05237205134853023 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_24-09-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_24-09-2025_05_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}" where mtr_portfolio_id = 27114912 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27114912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609068, 0.05237205134853023, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_24-09-2025_05_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27115466 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768782, 'mtr_portfolio_id': 27115466, 'created_at': datetime.datetime(2025, 9, 24, 5, 47, 29), 'result': '0.05740752231404644', 'result_long': None, 'result_double': None}] Qualite : 0.05740752231404644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_24-09-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115466 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_24-09-2025_05_47_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}" where mtr_portfolio_id = 27115466 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27115466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609069, 0.05740752231404644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_24-09-2025_05_47_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27115933 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768783, 'mtr_portfolio_id': 27115933, 'created_at': datetime.datetime(2025, 9, 24, 5, 48), 'result': '0.015516715483921719', 'result_long': None, 'result_double': None}] Qualite : 0.015516715483921719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_24-09-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_24-09-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}" where mtr_portfolio_id = 27115933 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27115933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609070, 0.015516715483921719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_24-09-2025_05_48_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27116818 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768784, 'mtr_portfolio_id': 27116818, 'created_at': datetime.datetime(2025, 9, 24, 5, 48, 35), 'result': '0.03718912478661317', 'result_long': None, 'result_double': None}] Qualite : 0.03718912478661317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27116818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_24-09-2025_05_48_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27116818 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_24-09-2025_05_48_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}" where mtr_portfolio_id = 27116818 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27116818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609071, 0.03718912478661317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_24-09-2025_05_48_38.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27117463 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768785, 'mtr_portfolio_id': 27117463, 'created_at': datetime.datetime(2025, 9, 24, 5, 50), 'result': '0.047488558620239145', 'result_long': None, 'result_double': None}] Qualite : 0.047488558620239145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27117463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_24-09-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27117463 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_24-09-2025_05_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}" where mtr_portfolio_id = 27117463 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27117463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609072, 0.047488558620239145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_24-09-2025_05_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27118077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768786, 'mtr_portfolio_id': 27118077, 'created_at': datetime.datetime(2025, 9, 24, 5, 50, 28), 'result': '0.04757913613503697', 'result_long': None, 'result_double': None}] Qualite : 0.04757913613503697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_24-09-2025_05_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_24-09-2025_05_50_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}" where mtr_portfolio_id = 27118077 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27118077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609073, 0.04757913613503697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_24-09-2025_05_50_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27118722 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768787, 'mtr_portfolio_id': 27118722, 'created_at': datetime.datetime(2025, 9, 24, 5, 50, 40), 'result': '0.05811176305687701', 'result_long': None, 'result_double': None}] Qualite : 0.05811176305687701 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_24-09-2025_05_50_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_24-09-2025_05_50_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}" where mtr_portfolio_id = 27118722 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27118722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609074, 0.05811176305687701, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_24-09-2025_05_50_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27119449 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768788, 'mtr_portfolio_id': 27119449, 'created_at': datetime.datetime(2025, 9, 24, 5, 51, 28), 'result': '0.0626598893478729', 'result_long': None, 'result_double': None}] Qualite : 0.0626598893478729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27119449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_24-09-2025_05_51_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27119449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_24-09-2025_05_51_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, 'pht': 3726}}" where mtr_portfolio_id = 27119449 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27119449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609075, 0.0626598893478729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_24-09-2025_05_51_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27120106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768789, 'mtr_portfolio_id': 27120106, 'created_at': datetime.datetime(2025, 9, 24, 5, 51, 58), 'result': '0.06505242144667801', 'result_long': None, 'result_double': None}] Qualite : 0.06505242144667801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27120106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_24-09-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27120106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_24-09-2025_05_52_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, 'pht': 3726}}" where mtr_portfolio_id = 27120106 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27120106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609076, 0.06505242144667801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_24-09-2025_05_52_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27120892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768790, 'mtr_portfolio_id': 27120892, 'created_at': datetime.datetime(2025, 9, 24, 5, 52, 28), 'result': '0.042109420876752894', 'result_long': None, 'result_double': None}] Qualite : 0.042109420876752894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27120892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_24-09-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27120892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_24-09-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, 'pht': 3726}}" where mtr_portfolio_id = 27120892 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27120892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609077, 0.042109420876752894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_24-09-2025_05_52_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27123660 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768791, 'mtr_portfolio_id': 27123660, 'created_at': datetime.datetime(2025, 9, 24, 5, 53, 30), 'result': '0.10128775071955361', 'result_long': None, 'result_double': None}] Qualite : 0.10128775071955361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27123660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123660_24-09-2025_05_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27123660 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123660_24-09-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27123676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123687, 'pht': 3726}}" where mtr_portfolio_id = 27123660 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27123660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609078, 0.10128775071955361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123660_24-09-2025_05_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27123676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123687, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27123824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768792, 'mtr_portfolio_id': 27123824, 'created_at': datetime.datetime(2025, 9, 24, 5, 53, 59), 'result': '0.08192593079532012', 'result_long': None, 'result_double': None}] Qualite : 0.08192593079532012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27123824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_24-09-2025_05_54_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27123824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_24-09-2025_05_54_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, 'pht': 3726}}" where mtr_portfolio_id = 27123824 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27123824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609079, 0.08192593079532012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_24-09-2025_05_54_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27124375 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768793, 'mtr_portfolio_id': 27124375, 'created_at': datetime.datetime(2025, 9, 24, 5, 54, 58), 'result': '0.04966104816108726', 'result_long': None, 'result_double': None}] Qualite : 0.04966104816108726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27124375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_24-09-2025_05_55_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27124375 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_24-09-2025_05_55_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, 'pht': 3726}}" where mtr_portfolio_id = 27124375 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27124375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609080, 0.04966104816108726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_24-09-2025_05_55_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27125241 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768794, 'mtr_portfolio_id': 27125241, 'created_at': datetime.datetime(2025, 9, 24, 5, 55, 30), 'result': '0.06099754501644063', 'result_long': None, 'result_double': None}] Qualite : 0.06099754501644063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27125241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_24-09-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27125241 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_24-09-2025_05_55_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, 'pht': 3726}}" where mtr_portfolio_id = 27125241 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27125241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609081, 0.06099754501644063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_24-09-2025_05_55_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27125947 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768795, 'mtr_portfolio_id': 27125947, 'created_at': datetime.datetime(2025, 9, 24, 5, 55, 37), 'result': '0.047634970094689456', 'result_long': None, 'result_double': None}] Qualite : 0.047634970094689456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27125947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_24-09-2025_05_55_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27125947 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_24-09-2025_05_55_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, 'pht': 3726}}" where mtr_portfolio_id = 27125947 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27125947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609082, 0.047634970094689456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_24-09-2025_05_55_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27126940 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768796, 'mtr_portfolio_id': 27126940, 'created_at': datetime.datetime(2025, 9, 24, 5, 55, 57), 'result': '0.04867328950528229', 'result_long': None, 'result_double': None}] Qualite : 0.04867328950528229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27126940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_24-09-2025_05_56_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27126940 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_24-09-2025_05_56_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, 'pht': 3726}}" where mtr_portfolio_id = 27126940 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27126940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609083, 0.04867328950528229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_24-09-2025_05_56_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27127522 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768797, 'mtr_portfolio_id': 27127522, 'created_at': datetime.datetime(2025, 9, 24, 5, 56, 31), 'result': '0.038843004539775905', 'result_long': None, 'result_double': None}] Qualite : 0.038843004539775905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27127522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_24-09-2025_05_56_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27127522 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_24-09-2025_05_56_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, 'pht': 3726}}" where mtr_portfolio_id = 27127522 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27127522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609084, 0.038843004539775905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_24-09-2025_05_56_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27128056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768798, 'mtr_portfolio_id': 27128056, 'created_at': datetime.datetime(2025, 9, 24, 5, 57, 28), 'result': '0.05162591167086681', 'result_long': None, 'result_double': None}] Qualite : 0.05162591167086681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27128056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_24-09-2025_05_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27128056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_24-09-2025_05_57_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, 'pht': 3726}}" where mtr_portfolio_id = 27128056 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27128056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609085, 0.05162591167086681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_24-09-2025_05_57_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27128847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768799, 'mtr_portfolio_id': 27128847, 'created_at': datetime.datetime(2025, 9, 24, 5, 57, 59), 'result': '0.042233687453263655', 'result_long': None, 'result_double': None}] Qualite : 0.042233687453263655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27128847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_24-09-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27128847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_24-09-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, 'pht': 3726}}" where mtr_portfolio_id = 27128847 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27128847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609086, 0.042233687453263655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_24-09-2025_05_58_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27129679 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768800, 'mtr_portfolio_id': 27129679, 'created_at': datetime.datetime(2025, 9, 24, 5, 58, 28), 'result': '0.035249405646784394', 'result_long': None, 'result_double': None}] Qualite : 0.035249405646784394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27129679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_24-09-2025_05_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27129679 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_24-09-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, 'pht': 3726}}" where mtr_portfolio_id = 27129679 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27129679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609087, 0.035249405646784394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_24-09-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27130302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768801, 'mtr_portfolio_id': 27130302, 'created_at': datetime.datetime(2025, 9, 24, 5, 59, 29), 'result': '0.05090607521142842', 'result_long': None, 'result_double': None}] Qualite : 0.05090607521142842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27130302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_24-09-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27130302 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_24-09-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, 'pht': 3726}}" where mtr_portfolio_id = 27130302 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27130302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609088, 0.05090607521142842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_24-09-2025_05_59_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27133334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768802, 'mtr_portfolio_id': 27133334, 'created_at': datetime.datetime(2025, 9, 24, 6, 0, 34), 'result': '0.05497850105931372', 'result_long': None, 'result_double': None}] Qualite : 0.05497850105931372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27133334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133334_24-09-2025_06_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27133334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133334_24-09-2025_06_00_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27133337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133348, 'pht': 3726}}" where mtr_portfolio_id = 27133334 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27133334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609089, 0.05497850105931372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133334_24-09-2025_06_00_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27133337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133348, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27133702 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3763818, 'mtr_portfolio_id': 27133702, 'created_at': datetime.datetime(2025, 9, 23, 14, 18, 59), 'result': '0.056277212402591724', 'result_long': None, 'result_double': None}] Qualite : 0.056277212402591724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27133702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27133702 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, 'pht': 3726}}" where mtr_portfolio_id = 27133702 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27133702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609090, 0.056277212402591724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27134309 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768804, 'mtr_portfolio_id': 27134309, 'created_at': datetime.datetime(2025, 9, 24, 6, 1, 29), 'result': '0.06701321198342085', 'result_long': None, 'result_double': None}] Qualite : 0.06701321198342085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27134309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_24-09-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27134309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_24-09-2025_06_01_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, 'pht': 3726}}" where mtr_portfolio_id = 27134309 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27134309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609091, 0.06701321198342085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_24-09-2025_06_01_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27134858 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768805, 'mtr_portfolio_id': 27134858, 'created_at': datetime.datetime(2025, 9, 24, 6, 2), 'result': '0.038698727901283904', 'result_long': None, 'result_double': None}] Qualite : 0.038698727901283904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27134858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_24-09-2025_06_02_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27134858 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_24-09-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, 'pht': 3726}}" where mtr_portfolio_id = 27134858 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27134858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609092, 0.038698727901283904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_24-09-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27135451 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768806, 'mtr_portfolio_id': 27135451, 'created_at': datetime.datetime(2025, 9, 24, 6, 2, 29), 'result': '0.03690972163473608', 'result_long': None, 'result_double': None}] Qualite : 0.03690972163473608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27135451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_24-09-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27135451 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_24-09-2025_06_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, 'pht': 3726}}" where mtr_portfolio_id = 27135451 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27135451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609093, 0.03690972163473608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_24-09-2025_06_02_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27135975 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768807, 'mtr_portfolio_id': 27135975, 'created_at': datetime.datetime(2025, 9, 24, 6, 3, 28), 'result': '0.057358472668771976', 'result_long': None, 'result_double': None}] Qualite : 0.057358472668771976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27135975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135975_24-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27135975 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135975_24-09-2025_06_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27136023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136026, 'pht': 3726}}" where mtr_portfolio_id = 27135975 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27135975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609094, 0.057358472668771976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135975_24-09-2025_06_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27136023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27136713 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768808, 'mtr_portfolio_id': 27136713, 'created_at': datetime.datetime(2025, 9, 24, 6, 3, 59), 'result': '0.06405639510850658', 'result_long': None, 'result_double': None}] Qualite : 0.06405639510850658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27136713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27136713_24-09-2025_06_04_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27136713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27136713_24-09-2025_06_04_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27136752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136764, 'pht': 3726}}" where mtr_portfolio_id = 27136713 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27136713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609095, 0.06405639510850658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27136713_24-09-2025_06_04_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27136752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27136753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27136754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27136755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27136756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27136757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27136759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27136760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27136761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27136762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27136763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27136764, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27137331 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768809, 'mtr_portfolio_id': 27137331, 'created_at': datetime.datetime(2025, 9, 24, 6, 4, 27), 'result': '0.04614855067900335', 'result_long': None, 'result_double': None}] Qualite : 0.04614855067900335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27137331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27137331_24-09-2025_06_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27137331 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27137331_24-09-2025_06_04_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27137357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27137358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27137359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27137360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27137361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27137362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27137363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27137364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27137365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27137366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27137367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27137368, 'pht': 3726}}" where mtr_portfolio_id = 27137331 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27137331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609096, 0.04614855067900335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27137331_24-09-2025_06_04_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27137357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27137358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27137359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27137360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27137361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27137362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27137363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27137364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27137365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27137366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27137367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27137368, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27138021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768810, 'mtr_portfolio_id': 27138021, 'created_at': datetime.datetime(2025, 9, 24, 6, 5, 31), 'result': '0.04743065974364085', 'result_long': None, 'result_double': None}] Qualite : 0.04743065974364085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27138021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138021_24-09-2025_06_05_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27138021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138021_24-09-2025_06_05_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138048, 'pht': 3726}}" where mtr_portfolio_id = 27138021 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27138021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609097, 0.04743065974364085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138021_24-09-2025_06_05_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138048, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27138574 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768811, 'mtr_portfolio_id': 27138574, 'created_at': datetime.datetime(2025, 9, 24, 6, 5, 39), 'result': '0.04411341145854646', 'result_long': None, 'result_double': None}] Qualite : 0.04411341145854646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27138574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138574_24-09-2025_06_05_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27138574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138574_24-09-2025_06_05_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138620, 'pht': 3726}}" where mtr_portfolio_id = 27138574 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27138574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609098, 0.04411341145854646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27138574_24-09-2025_06_05_43.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27138609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27138610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27138611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27138612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27138613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27138614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27138615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27138616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27138617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27138618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27138619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27138620, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27139184 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768812, 'mtr_portfolio_id': 27139184, 'created_at': datetime.datetime(2025, 9, 24, 6, 5, 58), 'result': '0.04905596222832073', 'result_long': None, 'result_double': None}] Qualite : 0.04905596222832073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27139184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139184_24-09-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27139184 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139184_24-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27139238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139249, 'pht': 3726}}" where mtr_portfolio_id = 27139184 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27139184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609099, 0.04905596222832073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139184_24-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27139238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139249, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27139817 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768813, 'mtr_portfolio_id': 27139817, 'created_at': datetime.datetime(2025, 9, 24, 6, 6, 28), 'result': '0.053546134796133495', 'result_long': None, 'result_double': None}] Qualite : 0.053546134796133495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27139817 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139817_24-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27139817 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139817_24-09-2025_06_06_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27139847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139855, 'pht': 3726}}" where mtr_portfolio_id = 27139817 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27139817 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609100, 0.053546134796133495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27139817_24-09-2025_06_06_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27139844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27139845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27139846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27139847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27139848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27139849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27139850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27139851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27139852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27139853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27139854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27139855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27140567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768814, 'mtr_portfolio_id': 27140567, 'created_at': datetime.datetime(2025, 9, 24, 6, 7, 29), 'result': '0.04574893501439664', 'result_long': None, 'result_double': None}] Qualite : 0.04574893501439664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27140567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27140567_24-09-2025_06_07_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27140567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27140567_24-09-2025_06_07_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27140598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27140599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27140600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27140601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27140602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27140603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27140604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27140605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27140606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27140607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27140608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27140609, 'pht': 3726}}" where mtr_portfolio_id = 27140567 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27140567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609101, 0.04574893501439664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27140567_24-09-2025_06_07_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27140598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27140599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27140600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27140601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27140602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27140603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27140604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27140605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27140606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27140607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27140608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27140609, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27141077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768815, 'mtr_portfolio_id': 27141077, 'created_at': datetime.datetime(2025, 9, 24, 6, 7, 58), 'result': '0.04501547272065182', 'result_long': None, 'result_double': None}] Qualite : 0.04501547272065182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27141077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141077_24-09-2025_06_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27141077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141077_24-09-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141122, 'pht': 3726}}" where mtr_portfolio_id = 27141077 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27141077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609102, 0.04501547272065182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141077_24-09-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141122, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27141926 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3768816, 'mtr_portfolio_id': 27141926, 'created_at': datetime.datetime(2025, 9, 24, 6, 8, 28), 'result': '0.05380199679501097', 'result_long': None, 'result_double': None}] Qualite : 0.05380199679501097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27141926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_24-09-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27141926 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_24-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141943, 'pht': 3726}}" where mtr_portfolio_id = 27141926 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27141926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609103, 0.05380199679501097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27141926_24-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27141932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27141933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27141934, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27141935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27141936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27141937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27141938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27141939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27141940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27141941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27141942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27141943, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27143178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765146, 'mtr_portfolio_id': 27143178, 'created_at': datetime.datetime(2025, 9, 23, 18, 32, 57), 'result': '0.061508855062405283', 'result_long': None, 'result_double': None}] Qualite : 0.061508855062405283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27143178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143178_23-09-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27143178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143178_23-09-2025_18_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143190, 'pht': 3726}}" where mtr_portfolio_id = 27143178 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27143178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609104, 0.061508855062405283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143178_23-09-2025_18_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143190, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27143621 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765193, 'mtr_portfolio_id': 27143621, 'created_at': datetime.datetime(2025, 9, 23, 18, 49, 1), 'result': '0.05667190845255797', 'result_long': None, 'result_double': None}] Qualite : 0.05667190845255797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27143621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143621_23-09-2025_18_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27143621 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143621_23-09-2025_18_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143662, 'pht': 3726}}" where mtr_portfolio_id = 27143621 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27143621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609105, 0.05667190845255797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27143621_23-09-2025_18_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27143651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27143652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27143653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27143654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27143655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27143656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27143657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27143658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27143659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27143660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27143661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27143662, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27144295 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765269, 'mtr_portfolio_id': 27144295, 'created_at': datetime.datetime(2025, 9, 23, 19, 2, 30), 'result': '0.058500645694436845', 'result_long': None, 'result_double': None}] Qualite : 0.058500645694436845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27144295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144295_23-09-2025_19_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27144295 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144295_23-09-2025_19_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27144306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27144312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144317, 'pht': 3726}}" where mtr_portfolio_id = 27144295 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27144295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609106, 0.058500645694436845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144295_23-09-2025_19_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27144306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27144312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144317, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27144937 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765345, 'mtr_portfolio_id': 27144937, 'created_at': datetime.datetime(2025, 9, 23, 19, 16, 58), 'result': '0.044017303658435585', 'result_long': None, 'result_double': None}] Qualite : 0.044017303658435585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27144937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144937_23-09-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27144937 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144937_23-09-2025_19_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27144949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27144956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144960, 'pht': 3726}}" where mtr_portfolio_id = 27144937 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27144937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609107, 0.044017303658435585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27144937_23-09-2025_19_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27144949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27144950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27144951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27144952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27144953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27144954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27144955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27144956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27144957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27144958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27144959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27144960, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27145517 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765427, 'mtr_portfolio_id': 27145517, 'created_at': datetime.datetime(2025, 9, 23, 19, 32, 58), 'result': '0.02932480798193117', 'result_long': None, 'result_double': None}] Qualite : 0.02932480798193117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27145517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27145517_23-09-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27145517 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27145517_23-09-2025_19_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27145534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27145535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27145536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27145537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27145538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27145539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27145540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27145541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27145542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27145543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27145544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27145545, 'pht': 3726}}" where mtr_portfolio_id = 27145517 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27145517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609108, 0.02932480798193117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27145517_23-09-2025_19_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27145534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27145535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27145536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27145537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27145538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27145539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27145540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27145541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27145542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27145543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27145544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27145545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27146065 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765497, 'mtr_portfolio_id': 27146065, 'created_at': datetime.datetime(2025, 9, 23, 19, 46, 57), 'result': '0.0359917446369581', 'result_long': None, 'result_double': None}] Qualite : 0.0359917446369581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27146065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146065_23-09-2025_19_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27146065 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146065_23-09-2025_19_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146101, 'pht': 3726}}" where mtr_portfolio_id = 27146065 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27146065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609109, 0.0359917446369581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146065_23-09-2025_19_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146101, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27146655 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765588, 'mtr_portfolio_id': 27146655, 'created_at': datetime.datetime(2025, 9, 23, 20, 2, 58), 'result': '0.049104629700944', 'result_long': None, 'result_double': None}] Qualite : 0.049104629700944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27146655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146655_23-09-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27146655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146655_23-09-2025_20_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146692, 'pht': 3726}}" where mtr_portfolio_id = 27146655 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27146655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609110, 0.049104629700944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27146655_23-09-2025_20_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27146681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27146682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27146683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27146684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27146685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27146686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27146687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27146688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27146689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27146690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27146691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27146692, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27147275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765704, 'mtr_portfolio_id': 27147275, 'created_at': datetime.datetime(2025, 9, 23, 20, 16, 59), 'result': '0.04141151544818177', 'result_long': None, 'result_double': None}] Qualite : 0.04141151544818177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27147275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27147275_23-09-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27147275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27147275_23-09-2025_20_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27147317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27147318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27147319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27147320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27147321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27147322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27147323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27147324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27147325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27147326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27147327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27147328, 'pht': 3726}}" where mtr_portfolio_id = 27147275 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27147275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609111, 0.04141151544818177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27147275_23-09-2025_20_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27147317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27147318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27147319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27147320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27147321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27147322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27147323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27147324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27147325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27147326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27147327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27147328, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27148031 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765814, 'mtr_portfolio_id': 27148031, 'created_at': datetime.datetime(2025, 9, 23, 20, 33, 31), 'result': '0.052359727070994816', 'result_long': None, 'result_double': None}] Qualite : 0.052359727070994816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27148031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148031_23-09-2025_20_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27148031 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148031_23-09-2025_20_33_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148048, 'pht': 3726}}" where mtr_portfolio_id = 27148031 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27148031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609112, 0.052359727070994816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148031_23-09-2025_20_33_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148048, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27148627 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3765899, 'mtr_portfolio_id': 27148627, 'created_at': datetime.datetime(2025, 9, 23, 21, 10, 58), 'result': '0.049909988740549145', 'result_long': None, 'result_double': None}] Qualite : 0.049909988740549145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27148627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148627_23-09-2025_21_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27148627 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148627_23-09-2025_21_10_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148646, 'pht': 3726}}" where mtr_portfolio_id = 27148627 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27148627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609113, 0.049909988740549145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27148627_23-09-2025_21_10_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27148634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27148635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27148636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27148637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27148639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27148640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27148641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27148642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27148643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27148644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27148645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27148646, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27149921 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766066, 'mtr_portfolio_id': 27149921, 'created_at': datetime.datetime(2025, 9, 23, 21, 16, 58), 'result': '0.06641214211826411', 'result_long': None, 'result_double': None}] Qualite : 0.06641214211826411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27149921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27149921_23-09-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27149921 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27149921_23-09-2025_21_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27149950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27149951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27149952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27149953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27149954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27149955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27149956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27149957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27149958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27149959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27149960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27149961, 'pht': 3726}}" where mtr_portfolio_id = 27149921 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27149921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609114, 0.06641214211826411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27149921_23-09-2025_21_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27149950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27149951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27149952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27149953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27149954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27149955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27149956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27149957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27149958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27149959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27149960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27149961, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27150247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766089, 'mtr_portfolio_id': 27150247, 'created_at': datetime.datetime(2025, 9, 23, 21, 32, 59), 'result': '0.042619460413422974', 'result_long': None, 'result_double': None}] Qualite : 0.042619460413422974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27150247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150247_23-09-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27150247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150247_23-09-2025_21_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150263, 'pht': 3726}}" where mtr_portfolio_id = 27150247 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27150247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609115, 0.042619460413422974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150247_23-09-2025_21_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150263, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27150642 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766130, 'mtr_portfolio_id': 27150642, 'created_at': datetime.datetime(2025, 9, 23, 21, 49, 30), 'result': '0.037079005105719674', 'result_long': None, 'result_double': None}] Qualite : 0.037079005105719674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27150642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150642_23-09-2025_21_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27150642 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150642_23-09-2025_21_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150669, 'pht': 3726}}" where mtr_portfolio_id = 27150642 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27150642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609116, 0.037079005105719674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27150642_23-09-2025_21_49_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27150658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27150659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27150660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27150661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27150662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27150663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27150664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27150665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27150666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27150667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27150668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27150669, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27151338 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766203, 'mtr_portfolio_id': 27151338, 'created_at': datetime.datetime(2025, 9, 23, 23, 31, 29), 'result': '0.055274376229825034', 'result_long': None, 'result_double': None}] Qualite : 0.055274376229825034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27151338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151338_23-09-2025_23_31_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27151338 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151338_23-09-2025_23_31_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27151346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151357, 'pht': 3726}}" where mtr_portfolio_id = 27151338 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27151338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609117, 0.055274376229825034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151338_23-09-2025_23_31_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27151346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151357, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27151879 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766311, 'mtr_portfolio_id': 27151879, 'created_at': datetime.datetime(2025, 9, 23, 22, 18, 58), 'result': '0.04681845983067481', 'result_long': None, 'result_double': None}] Qualite : 0.04681845983067481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27151879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151879_23-09-2025_22_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27151879 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151879_23-09-2025_22_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27151892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151897, 'pht': 3726}}" where mtr_portfolio_id = 27151879 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27151879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609118, 0.04681845983067481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27151879_23-09-2025_22_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27151886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27151887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27151888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27151889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27151890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27151891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27151892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27151893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27151894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27151895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27151896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27151897, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27152571 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766398, 'mtr_portfolio_id': 27152571, 'created_at': datetime.datetime(2025, 9, 23, 22, 32, 57), 'result': '0.030175887152507457', 'result_long': None, 'result_double': None}] Qualite : 0.030175887152507457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27152571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27152571_23-09-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27152571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27152571_23-09-2025_22_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27152580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27152581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27152582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27152583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27152584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27152585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27152586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27152587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27152588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27152589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27152590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27152591, 'pht': 3726}}" where mtr_portfolio_id = 27152571 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27152571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609119, 0.030175887152507457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27152571_23-09-2025_22_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27152580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27152581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27152582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27152583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27152584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27152585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27152586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27152587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27152588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27152589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27152590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27152591, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27153137 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766480, 'mtr_portfolio_id': 27153137, 'created_at': datetime.datetime(2025, 9, 23, 22, 49, 1), 'result': '0.057078160165488286', 'result_long': None, 'result_double': None}] Qualite : 0.057078160165488286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27153137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153137_23-09-2025_22_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27153137 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153137_23-09-2025_22_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153198, 'pht': 3726}}" where mtr_portfolio_id = 27153137 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27153137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609120, 0.057078160165488286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153137_23-09-2025_22_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153198, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27153866 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766546, 'mtr_portfolio_id': 27153866, 'created_at': datetime.datetime(2025, 9, 23, 23, 3), 'result': '0.06924695942942749', 'result_long': None, 'result_double': None}] Qualite : 0.06924695942942749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27153866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153866_23-09-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27153866 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153866_23-09-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153886, 'pht': 3726}}" where mtr_portfolio_id = 27153866 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27153866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609121, 0.06924695942942749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27153866_23-09-2025_23_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27153875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27153876, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27153877, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27153878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27153879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27153880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27153881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27153882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27153883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27153884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27153885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27153886, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27154427 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766621, 'mtr_portfolio_id': 27154427, 'created_at': datetime.datetime(2025, 9, 23, 23, 18, 58), 'result': '0.03361814977451628', 'result_long': None, 'result_double': None}] Qualite : 0.03361814977451628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27154427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27154427_23-09-2025_23_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27154427 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27154427_23-09-2025_23_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27154438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27154439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27154440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27154441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27154442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27154443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27154444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27154445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27154446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27154447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27154448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27154449, 'pht': 3726}}" where mtr_portfolio_id = 27154427 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27154427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609122, 0.03361814977451628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27154427_23-09-2025_23_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27154438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27154439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27154440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27154441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27154442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27154443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27154444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27154445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27154446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27154447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27154448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27154449, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27155256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766712, 'mtr_portfolio_id': 27155256, 'created_at': datetime.datetime(2025, 9, 23, 23, 33, 28), 'result': '0.04935103334168838', 'result_long': None, 'result_double': None}] Qualite : 0.04935103334168838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27155256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155256_23-09-2025_23_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27155256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155256_23-09-2025_23_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27155291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27155292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27155293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27155294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27155295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27155296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27155297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27155298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27155299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27155300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27155301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27155302, 'pht': 3726}}" where mtr_portfolio_id = 27155256 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27155256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609123, 0.04935103334168838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155256_23-09-2025_23_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27155291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27155292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27155293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27155294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27155295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27155296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27155297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27155298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27155299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27155300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27155301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27155302, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27155951 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766790, 'mtr_portfolio_id': 27155951, 'created_at': datetime.datetime(2025, 9, 23, 23, 46, 57), 'result': '0.033836237658143', 'result_long': None, 'result_double': None}] Qualite : 0.033836237658143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27155951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155951_23-09-2025_23_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27155951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155951_23-09-2025_23_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156075, 'pht': 3726}}" where mtr_portfolio_id = 27155951 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27155951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609124, 0.033836237658143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27155951_23-09-2025_23_46_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156075, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27156679 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3766870, 'mtr_portfolio_id': 27156679, 'created_at': datetime.datetime(2025, 9, 24, 0, 25, 59), 'result': '0.05153630100921654', 'result_long': None, 'result_double': None}] Qualite : 0.05153630100921654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27156679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27156679_24-09-2025_00_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27156679 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27156679_24-09-2025_00_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156691, 'pht': 3726}}" where mtr_portfolio_id = 27156679 and dashboard_run_id = 2350823 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27156679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15609125, 0.05153630100921654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27156679_24-09-2025_00_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27156680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27156681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27156682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27156683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27156684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27156685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27156686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27156687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27156688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27156689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27156690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27156691, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27110178,27110339,27110574,27111222,27111303,27111567,27111819,27111974,27112157,27112455,27112498,27112687,27112928,27113061,27113469,27113662,27114096,27114459,27114912,27115466,27115933,27116818,27117463,27118077,27118722,27119449,27120106,27120892,27123660,27123824,27124375,27125241,27125947,27126940,27127522,27128056,27128847,27129679,27130302,27133334,27133702,27134309,27134858,27135451,27135975,27136713,27137331,27138021,27138574,27139184,27139817,27140567,27141077,27141926,27143178,27143621,27144295,27144937,27145517,27146065,27146655,27147275,27148031,27148627,27149921,27150247,27150642,27151338,27151879,27152571,27153137,27153866,27154427,27155256,27155951,27156679) result : ((1385562864,), (1385562865,), (1385562897,), (1385562946,), (1385562981,), (1385562999,), (1385563000,), (1385563019,), (1385563032,), (1385563066,), (1385563067,), (1385563103,), (1385563219,), (1385563221,), (1385563377,), (1385563387,), (1385563388,), (1385563414,), (1385563415,), (1385564024,), (1385564048,), (1385564370,), (1385564710,), (1385564851,), (1385565321,), (1385565320,), (1385565454,), (1385565455,), (1385565510,), (1385565562,), (1385565572,), (1385565576,), (1385571909,), (1385571965,), (1385572095,), (1385572128,), (1385572152,), (1385572176,), (1385572192,), (1385572245,), (1385572300,), (1385572301,), (1385572339,), (1385572397,), (1385572423,), (1385572430,), (1385572567,), (1385572576,), (1385572577,), (1385572699,), (1385572700,), (1385572713,), (1385572734,), (1385572735,), (1385572754,), (1385572755,), (1385572756,), (1385572766,), (1385572767,), (1385572796,), (1385573548,), (1385573969,), (1385574022,), (1385574918,), (1385575357,), (1385575366,), (1385575427,), (1385575428,), (1385575509,), (1385576191,), (1385576532,), (1385577203,), (1385578099,), (1385578389,), (1385578408,), (1385578978,), (1385578979,), (1385579024,), (1385579046,), (1385579123,), (1385579134,), (1385579147,), (1385579157,), (1385579161,), (1385579165,), (1385579173,), (1385579174,), (1385579207,), (1385579208,), (1385579219,), (1385579220,), (1385579249,), (1385579282,), (1385579283,), (1385579298,), (1385579308,), (1385579309,), (1385579352,), (1385579400,), (1385579401,), (1385579446,), (1385579447,), (1385579448,), (1385579450,), (1385579461,), (1385579485,), (1385579486,), (1385579508,), (1385579615,), (1385579640,), (1385579977,), (1385579974,), (1385579975,), (1385579976,), (1385580751,), (1385580889,), (1385580890,), (1385580899,), (1385580911,), (1385580931,), (1385580942,), (1385580962,), (1385580988,), (1385581008,), (1385582288,), (1385582289,), (1385582626,), (1385582627,), (1385582724,), (1385582758,), (1385582759,), (1385582830,), (1385582855,), (1385583559,), (1385583903,), (1385583916,), (1385584188,), (1385584350,), (1385584348,), (1385584349,), (1385584372,), (1385584417,), (1385584418,), (1385584419,), (1385584425,), (1385584454,), (1385584455,), (1385584500,), (1385584501,), (1385584515,), (1385584570,), (1385584573,), (1385584578,), (1385584650,), (1385584666,), (1385584741,), (1385584742,), (1385584760,), (1385584786,), (1385584803,), (1385584915,), (1385584916,), (1385584917,), (1385584985,), (1385584996,), (1385584997,), (1385585032,), (1385585033,), (1385585520,), (1385585498,), (1385585794,), (1385585817,), (1385587472,), (1385587681,), (1385587701,), (1385587703,), (1385587717,), (1385587734,), (1385589487,), (1385589465,), (1385591767,), (1385591781,), (1385591783,), (1385591810,), (1385591820,), (1385591871,), (1385591873,), (1385592158,), (1385592161,), (1385592173,), (1385592195,), (1385592199,), (1385592263,), (1385592281,), (1385592283,), (1385592293,), (1385592296,), (1385592324,), (1385592337,), (1385592339,), (1385592380,), (1385592374,), (1385592377,), (1385592420,), (1385592423,), (1385592429,), (1385592456,), (1385592460,), (1385592473,), (1385592476,), (1385592501,), (1385592503,), (1385592524,), (1385592526,), (1385592527,), (1385592529,), (1385592533,), (1385592543,), (1385592544,), (1385592545,), (1385592563,), (1385592565,), (1385592567,), (1385592569,), (1385592582,), (1385592583,), (1385592584,), (1385592586,), (1385592592,), (1385592623,), (1385592625,), (1385592626,), (1385592628,), (1385592678,), (1385592679,), (1385592682,), (1385592710,), (1385592712,), (1385592716,), (1385592722,), (1385592727,), (1385592738,), (1385592739,), (1385592740,), (1385592742,), (1385592744,), (1385592746,), (1385592757,), (1385592759,), (1385592762,), (1385592765,), (1385592766,), (1385592781,), (1385592806,), (1385592807,), (1385592808,), (1385592810,), (1385592812,), (1385592822,), (1385592824,), (1385592825,), (1385592827,), (1385592832,), (1385592846,), (1385592842,), (1385592843,), (1385592844,), (1385592873,), (1385592880,), (1385592881,), (1385592883,), (1385592886,), (1385592892,), (1385592893,), (1385592894,), (1385592896,), (1385592924,), (1385592926,), (1385592928,), (1385592931,), (1385592936,), (1385592938,), (1385592943,), (1385592944,), (1385592945,), (1385592947,), (1385592950,), (1385592953,), (1385592962,), (1385592964,), (1385592969,), (1385592987,), (1385592989,), (1385592990,), (1385592993,), (1385592997,), (1385593017,), (1385593021,), (1385593023,), (1385593025,), (1385593027,), (1385593036,), (1385593037,), (1385593038,), (1385593040,), (1385593069,), (1385593074,), (1385593075,), (1385593077,), (1385593080,), (1385593083,), (1385593089,), (1385593090,), (1385593092,), (1385593094,), (1385593097,), (1385593099,), (1385593103,), (1385593105,), (1385593106,), (1385593108,), (1385593111,), (1385593118,), (1385593119,), (1385593120,), (1385593122,), (1385593124,), (1385593126,), (1385593144,), (1385593146,), (1385593148,), (1385593150,), (1385593164,), (1385593165,), (1385593167,), (1385593169,), (1385593173,), (1385593179,), (1385593205,), (1385593201,), (1385593203,), (1385593220,), (1385593223,), (1385593226,), (1385593227,), (1385593229,), (1385593231,), (1385593247,), (1385593249,), (1385593250,), (1385593254,), (1385593257,), (1385593260,), (1385593269,), (1385593270,), (1385593271,), (1385593273,), (1385593298,), (1385593307,), (1385593309,), (1385593311,), (1385593314,), (1385593317,), (1385593322,), (1385593323,), (1385593324,), (1385593326,), (1385593329,), (1385593353,), (1385593355,), (1385593356,), (1385593359,), (1385593374,), (1385593375,), (1385593376,), (1385593378,), (1385593382,), (1385593403,), (1385593406,), (1385593407,), (1385593408,), (1385593410,), (1385593417,), (1385593418,), (1385593419,), (1385593423,), (1385593428,), (1385593432,), (1385593445,), (1385593451,), (1385593452,), (1385593455,), (1385593457,), (1385593469,), (1385593472,), (1385593475,), (1385593492,), (1385593494,), (1385593495,), (1385593497,), (1385593500,), (1385593503,), (1385593810,), (1385593839,), (1385593867,), (1385593895,), (1385594305,), (1385594265,), (1385595231,), (1385595290,), (1385595388,), (1385595865,), (1385595890,), (1385595918,), (1385595942,), (1385595970,), (1385596021,), (1385596023,), (1385596026,), (1385596034,), (1385596066,), (1385596093,), (1385596189,), (1385596212,), (1385596234,), (1385596255,), (1385596263,), (1385596305,), (1385596309,), (1385596335,), (1385596350,), (1385596372,), (1385596374,), (1385596375,), (1385596377,), (1385596380,), (1385596387,), (1385596388,), (1385596389,), (1385596399,), (1385596401,), (1385596404,), (1385596406,), (1385596410,), (1385596432,), (1385596433,), (1385596463,), (1385596468,), (1385596469,), (1385596471,), (1385596488,), (1385596489,), (1385596490,), (1385596492,), (1385596526,), (1385596528,), (1385596530,), (1385596533,), (1385596537,), (1385596548,), (1385596555,), (1385596565,), (1385596568,), (1385596572,), (1385596586,), (1385596587,), (1385596589,), (1385596591,), (1385596594,), (1385596636,), (1385596632,), (1385596633,), (1385596634,), (1385596647,), (1385596649,), (1385596651,), (1385596654,), (1385596658,), (1385596661,), (1385596681,), (1385596683,), (1385596712,), (1385596714,), (1385596717,), (1385596721,), (1385596725,), (1385596729,), (1385596745,), (1385596746,), (1385596751,), (1385596754,), (1385596756,), (1385596765,), (1385596767,), (1385596770,), (1385596774,), (1385596777,), (1385596803,), (1385596805,), (1385596806,), (1385596808,), (1385596810,), (1385596812,), (1385596832,), (1385596833,), (1385596834,), (1385596855,), (1385596862,), (1385596865,), (1385596868,), (1385596871,), (1385596873,), (1385596891,), (1385596892,), (1385596893,), (1385596895,), (1385596897,), (1385596922,), (1385596924,), (1385596926,), (1385596952,), (1385596955,), (1385596956,), (1385596959,), (1385596963,), (1385596982,), (1385596989,), (1385596990,), (1385596993,), (1385597005,), (1385597007,), (1385597009,), (1385597013,), (1385597035,), (1385597039,), (1385597042,), (1385597046,), (1385597047,), (1385597052,), (1385597075,), (1385597070,), (1385597071,), (1385597072,), (1385597091,), (1385597093,), (1385597107,), (1385597295,), (1385597327,), (1385601753,), (1385601752,), (1385601862,), (1385601863,), (1385601864,), (1385601866,), (1385601879,), (1385601951,), (1385601952,), (1385601953,), (1385601955,), (1385602243,), (1385602244,), (1385602503,), (1385602625,), (1385602627,), (1385602650,), (1385602677,), (1385602711,), (1385602712,), (1385602713,), (1385602715,), (1385602717,), (1385602720,), (1385602731,), (1385602733,), (1385602735,), (1385602737,), (1385602740,), (1385602754,), (1385602755,), (1385602756,), (1385602772,), (1385602773,), (1385602786,), (1385602789,), (1385602956,), (1385602984,), (1385602989,), (1385602998,), (1385603004,), (1385603098,), (1385603099,), (1385603100,), (1385603102,), (1385603105,), (1385603108,), (1385603118,), (1385603121,), (1385603122,), (1385603202,), (1385603147,), (1385603173,), (1385603365,), (1385603381,), (1385603393,), (1385603403,), (1385603417,), (1385603418,), (1385603432,), (1385603434,), (1385603564,), (1385603751,), (1385603797,), (1385603871,), (1385603873,), (1385603874,), (1385603984,), (1385604007,), (1385604053,), (1385604080,), (1385604083,), (1385604181,), (1385604191,), (1385604192,), (1385604219,), (1385604220,), (1385604221,), (1385604257,), (1385604259,), (1385604537,), (1385604586,), (1385604615,), (1385604684,), (1385604686,), (1385604688,), (1385604690,), (1385604729,), (1385604713,), (1385604723,), (1385604725,), (1385604776,), (1385604778,), (1385604780,), (1385604814,), (1385604836,), (1385604850,), (1385604931,), (1385604934,), (1385604970,), (1385604972,), (1385604973,), (1385604976,), (1385604980,), (1385604983,), (1385605169,), (1385605197,), (1385605219,), (1385605349,), (1385605350,), (1385605352,), (1385605355,), (1385605374,), (1385605380,), (1385605383,), (1385605391,), (1385605407,), (1385605430,), (1385605437,), (1385605441,), (1385605445,), (1385605495,), (1385605498,), (1385605501,), (1385605604,), (1385605616,), (1385605673,), (1385605676,), (1385605677,), (1385605740,), (1385605741,), (1385605743,), (1385605746,), (1385605749,), (1385605824,), (1385605827,), (1385605900,), (1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,), (1385609935,), (1385609970,), (1385610006,), (1385610302,), (1385610310,), (1385610311,), (1385610464,), (1385610451,), (1385610504,), (1385610507,), (1385610508,), (1385610558,), (1385610560,), (1385610603,), (1385610606,), (1385610609,), (1385610619,), (1385610640,), (1385610641,), (1385610642,), (1385610646,), (1385610651,), (1385610673,), (1385610676,), (1385610678,), (1385610718,), (1385610783,), (1385610794,), (1385610800,), (1385610804,), (1385610821,), (1385610824,), (1385610827,), (1385610830,), (1385610857,), (1385610859,), (1385610915,), (1385610918,), (1385610920,), (1385610996,), (1385611236,), (1385611239,), (1385611494,), (1385611511,), (1385611514,), (1385611527,), (1385611557,), (1385611560,), (1385611562,), (1385611567,), (1385611573,), (1385611619,), (1385611615,), (1385611617,), (1385611659,), (1385611664,), (1385611672,), (1385611676,), (1385611680,), (1385611685,), (1385611699,), (1385611700,), (1385611701,), (1385611702,), (1385611710,), (1385611717,), (1385611755,), (1385611756,), (1385611757,), (1385611759,), (1385611786,), (1385611789,), (1385611795,), (1385611817,), (1385611819,), (1385611821,), (1385611824,), (1385611827,), (1385611854,), (1385611857,), (1385611868,), (1385611910,), (1385611912,), (1385611935,), (1385611937,), (1385611952,), (1385611975,), (1385611978,), (1385611989,), (1385611993,), (1385612054,), (1385612061,), (1385612066,), (1385612075,), (1385612297,), (1385612298,), (1385612299,), (1385612339,), (1385612494,), (1385612545,), (1385612579,), (1385612610,), (1385612643,), (1385612675,), (1385612728,), (1385612731,), (1385612732,), (1385612735,), (1385612738,), (1385612740,), (1385612784,), (1385612786,), (1385612787,), (1385612952,), (1385612968,), (1385612972,), (1385612974,), (1385612978,), (1385613003,), (1385613132,), (1385613113,), (1385613116,), (1385613120,), (1385613122,), (1385613128,), (1385613185,), (1385613187,), (1385613253,), (1385613255,), (1385613256,), (1385613259,), (1385613262,), (1385613334,), (1385613358,), (1385613382,), (1385613407,), (1385613628,), (1385613630,), (1385613632,), (1385613649,), (1385613651,), (1385613670,), (1385613711,), (1385613745,), (1385613994,), (1385614011,), (1385614030,), (1385614051,), (1385614138,), (1385614164,), (1385614198,), (1385614200,), (1385614376,), (1385614402,), (1385614431,), (1385614458,), (1385614484,), (1385614895,), (1385614898,), (1385614905,), (1385614911,), (1385615228,), (1385615256,), (1385615266,), (1385615303,), (1385615381,), (1385615438,), (1385615535,), (1385615548,), (1385615571,), (1385615835,), (1385615838,), (1385615840,), (1385615842,), (1385615845,), (1385615848,), (1385615995,), (1385616026,), (1385616057,), (1385616082,), (1385616115,), (1385616142,), (1385616185,), (1385616212,), (1385616235,), (1385616255,), (1385616338,), (1385625377,), (1385627190,), (1385627192,), (1385627193,), (1385627195,), (1385627203,), (1385627228,), (1385627506,), (1385627514,), (1385627515,), (1385627523,), (1385627785,), (1385627778,), (1385627999,), (1385628001,), (1385628024,), (1385628228,), (1385628254,), (1385628996,), (1385629025,), (1385629049,), (1385629170,), (1385629194,), (1385629199,), (1385629578,), (1385629580,), (1385629600,), (1385629647,), (1385629649,), (1385629651,), (1385629655,), (1385629659,), (1385629775,), (1385629810,), (1385629836,), (1385629861,), (1385629890,), (1385630159,), (1385630175,), (1385630229,), (1385630257,), (1385630504,), (1385630525,), (1385630533,), (1385630535,), (1385630561,), (1385630640,), (1385631023,), (1385631025,), (1385631027,), (1385631063,), (1385631206,), (1385631210,), (1385631217,), (1385631221,), (1385631225,), (1385631309,), (1385631253,), (1385631257,), (1385631258,), (1385631271,), (1385631999,), (1385632049,), (1385632099,), (1385632166,), (1385632215,), (1385632266,), (1385632597,), (1385632620,), (1385632660,), (1385632814,), (1385633059,), (1385633062,), (1385633065,), (1385633069,), (1385633072,), (1385633078,), (1385633091,), (1385633093,), (1385633095,), (1385633097,), (1385633458,), (1385633508,), (1385633576,), (1385634461,), (1385634488,), (1385634512,), (1385634545,), (1385634594,), (1385634987,), (1385634999,), (1385635013,), (1385635049,), (1385635070,), (1385635184,), (1385635211,), (1385635239,), (1385635276,), (1385635664,), (1385635690,), (1385635697,), (1385635700,), (1385635834,), (1385635837,), (1385635838,), (1385635856,), (1385636009,), (1385636010,), (1385636011,), (1385636014,), (1385636020,), (1385636023,), (1385636046,), (1385636049,), (1385636052,), (1385636057,), (1385636061,), (1385636081,), (1385636084,), (1385636085,), (1385636111,), (1385636297,), (1385636307,), (1385636309,), (1385636311,), (1385636314,), (1385636318,), (1385636368,), (1385636358,), (1385636360,), (1385636361,), (1385636364,), (1385636382,), (1385636385,), (1385636386,), (1385636389,), (1385636392,), (1385636413,), (1385636440,), (1385636695,), (1385636697,), (1385636699,), (1385636861,), (1385636886,), (1385636895,), (1385636897,), (1385637029,), (1385637032,), (1385637035,), (1385637038,), (1385637101,), (1385637107,), (1385637109,), (1385637163,), (1385637249,), (1385637422,), (1385637424,), (1385637561,), (1385637563,), (1385637569,), (1385637595,), (1385638681,), (1385638776,), (1385638887,), (1385638995,), (1385639169,), (1385639196,), (1385639223,), (1385639265,), (1385639936,), (1385640035,), (1385640061,), (1385640439,), (1385640464,), (1385641103,), (1385641105,), (1385641344,), (1385641346,), (1385641372,), (1385641457,), (1385642127,), (1385641941,), (1385642051,), (1385642096,), (1385642124,), (1385642179,), (1385642286,), (1385642312,), (1385642614,), (1385642635,), (1385642639,), (1385642780,), (1385642805,), (1385642858,), (1385643111,), (1385643114,), (1385643122,), (1385643158,), (1385643907,), (1385643920,), (1385644281,), (1385644289,), (1385644526,), (1385644529,), (1385644531,), (1385644537,), (1385644564,), (1385644822,), (1385644828,), (1385644866,), (1385645109,), (1385645655,), (1385645657,), (1385645681,), (1385645813,), (1385645815,), (1385645816,), (1385645819,), (1385645823,), (1385645908,), (1385645910,), (1385646475,), (1385646133,), (1385646283,), (1385646335,), (1385646386,), (1385646906,), (1385646936,), (1385646976,), (1385647004,), (1385647091,), (1385647118,), (1385647477,), (1385647523,), (1385647555,), (1385647582,), (1385647611,), (1385647645,), (1385648187,), (1385648233,), (1385648280,), (1385648329,), (1385648385,), (1385648996,), (1385649088,), (1385649140,), (1385649190,), (1385649243,), (1385649260,), (1385649391,), (1385649451,), (1385649479,), (1385649504,), (1385649655,), (1385649684,), (1385649709,), (1385649735,), (1385649764,), (1385650227,), (1385650261,), (1385650291,), (1385650320,), (1385650541,), (1385650550,), (1385650551,), (1385650568,), (1385650573,), (1385650604,), (1385650810,), (1385650872,), (1385650924,), (1385650971,), (1385651289,), (1385651307,), (1385651316,), (1385651318,), (1385651328,), (1385651332,), (1385651467,), (1385651468,), (1385651469,), (1385651763,), (1385652152,), (1385652158,), (1385652165,), (1385652170,), (1385652173,), (1385652179,), (1385652186,), (1385652193,), (1385652198,), (1385652201,), (1385652224,), (1385652212,), (1385652213,), (1385652219,), (1385652409,), (1385652434,), (1385652883,), (1385652956,), (1385653027,), (1385653102,), (1385653179,), (1385654030,), (1385654294,), (1385654388,), (1385654461,), (1385654535,), (1385654598,), (1385654952,), (1385655026,), (1385655304,), (1385655310,), (1385655344,), (1385655373,), (1385655427,), (1385655460,), (1385655984,), (1385656035,), (1385656105,), (1385656151,), (1385656790,), (1385656844,), (1385656872,), (1385656896,), (1385656923,), (1385657261,), (1385657285,), (1385657651,), (1385657676,), (1385657693,), (1385657706,), (1385657708,), (1385657722,), (1385657749,), (1385657973,), (1385657983,), (1385658001,), (1385658028,), (1385658058,), (1385658066,), (1385658167,), (1385658168,), (1385658169,), (1385658193,), (1385658194,), (1385658216,), (1385658218,), (1385658220,), (1385658226,), (1385658509,), (1385658504,), (1385658505,), (1385658631,), (1385658632,), (1385658634,), (1385658803,), (1385658805,), (1385658827,), (1385658855,), (1385658900,), (1385658930,), (1385659176,), (1385659197,), (1385659198,), (1385659434,), (1385659451,), (1385659555,), (1385659592,), (1385659614,), (1385659619,), (1385659791,), (1385659793,), (1385659794,), (1385659797,), (1385659802,), (1385659903,), (1385659904,), (1385659912,), (1385659945,), (1385659947,), (1385659948,), (1385659949,), (1385659953,), (1385659956,), (1385660086,), (1385660089,), (1385660091,), (1385660093,), (1385660096,), (1385660153,), (1385660158,), (1385660172,), (1385660178,), (1385660204,), (1385660230,), (1385660258,), (1385660287,), (1385660563,), (1385660590,), (1385660623,), (1385660647,), (1385660879,), (1385660880,), (1385660881,), (1385660883,), (1385660918,), (1385660928,), (1385660931,), (1385660957,), (1385660983,), (1385661010,), (1385661281,), (1385661290,), (1385661314,), (1385661325,), (1385661490,), (1385661451,), (1385661484,), (1385661486,), (1385661488,), (1385661532,), (1385661556,), (1385661582,), (1385661819,), (1385661847,), (1385661872,), (1385661898,), (1385661927,), (1385662247,), (1385662298,), (1385662331,), (1385662376,), (1385662412,), (1385662526,), (1385662528,), (1385662531,), (1385662536,), (1385662970,), (1385662973,), (1385662974,), (1385662976,), (1385662980,), (1385663100,), (1385663126,), (1385663154,), (1385663182,), (1385663216,), (1385663258,), (1385663281,), (1385663283,), (1385663285,), (1385663288,), (1385663294,), (1385663329,), (1385663331,), (1385663333,), (1385663336,), (1385663340,), (1385663355,), (1385663358,), (1385663365,), (1385663371,), (1385663375,), (1385663414,), (1385663416,), (1385663419,), (1385663425,), (1385663625,), (1385663627,), (1385663628,), (1385663657,), (1385663660,), (1385663665,), (1385663674,), (1385663683,), (1385663704,), (1385663715,), (1385663716,), (1385663724,), (1385663735,), (1385663767,), (1385663796,), (1385663895,), (1385663881,), (1385663893,), (1385663965,), (1385664000,), (1385664033,), (1385664070,), (1385664071,), (1385664072,), (1385664074,), (1385664107,), (1385664108,), (1385664109,), (1385664120,), (1385664430,), (1385664454,), (1385664480,), (1385664652,), (1385664654,), (1385664825,), (1385664826,), (1385664843,), (1385664871,), (1385665006,), (1385665034,), (1385665063,), (1385665084,), (1385665112,), (1385665115,), (1385665118,), (1385665139,), (1385665140,), (1385665141,), (1385665166,), (1385665167,), (1385665181,), (1385665193,), (1385665204,), (1385665303,), (1385665305,), (1385665308,), (1385665312,), (1385665343,), (1385665413,), (1385665478,), (1385665480,), (1385665483,), (1385665650,), (1385665665,), (1385665675,), (1385665678,), (1385665680,), (1385665684,), (1385665709,), (1385665703,), (1385665706,), (1385665708,), (1385666104,), (1385666127,), (1385666152,), (1385666177,), (1385666359,), (1385666367,), (1385666372,), (1385666384,), (1385666401,), (1385666614,), (1385666643,), (1385666647,), (1385666784,), (1385666814,), (1385666841,), (1385666871,), (1385666898,), (1385667252,), (1385667279,), (1385667303,), (1385667333,), (1385667523,), (1385667530,), (1385667621,), (1385667623,), (1385668036,), (1385668060,), (1385668084,), (1385668545,), (1385668578,), (1385668814,), (1385668816,), (1385668818,), (1385669028,), (1385680608,), (1385687329,), (1385687660,), (1385688066,), (1385688096,), (1385688402,), (1385688435,), (1385688811,), (1385688843,), (1385688848,), (1385688851,), (1385689166,), (1385689109,), (1385689140,), (1385689607,), (1385689655,), (1385690365,), (1385690412,), (1385690460,), (1385690496,), (1385690523,), (1385690952,), (1385691026,), (1385691079,), (1385691125,), (1385691931,), (1385691957,), (1385691992,), (1385692044,), (1385692097,), (1385692128,), (1385692362,), (1385692395,), (1385692426,), (1385692458,), (1385692512,), (1385692602,), (1385692628,), (1385692654,), (1385692687,), (1385692718,), (1385692748,), (1385692772,), (1385692798,), (1385692829,), (1385692868,), (1385693137,), (1385693159,), (1385693172,), (1385693176,), (1385693184,), (1385693188,), (1385693210,), (1385693212,), (1385693213,), (1385693215,), (1385693219,), (1385693232,), (1385693234,), (1385693235,), (1385693237,), (1385693241,), (1385693243,), (1385693267,), (1385693269,), (1385693270,), (1385693273,), (1385693277,), (1385693464,), (1385693474,), (1385693478,), (1385693490,), (1385693499,), (1385693551,), (1385693615,), (1385693622,), (1385693623,), (1385693632,), (1385693642,), (1385693662,), (1385693663,), (1385693665,), (1385693669,), (1385693672,), (1385693676,), (1385693683,), (1385693684,), (1385693692,), (1385693697,), (1385693695,), (1385693727,), (1385693728,), (1385693751,), (1385693780,), (1385693785,), (1385693988,), (1385694395,), (1385694427,), (1385694452,), (1385694700,), (1385694701,), (1385694703,), (1385694704,), (1385694802,), (1385694835,), (1385694861,), (1385694887,), (1385694910,), (1385695003,), (1385695004,), (1385695005,), (1385695006,), (1385695017,), (1385695019,), (1385695021,), (1385695023,), (1385695027,), (1385695030,), (1385695044,), (1385695046,), (1385695048,), (1385695079,), (1385695081,), (1385695105,), (1385695107,), (1385695111,), (1385695115,), (1385695120,), (1385695125,), (1385695156,), (1385695158,), (1385695159,), (1385695172,), (1385695176,), (1385695181,), (1385695219,), (1385695220,), (1385695221,), (1385695254,), (1385695279,), (1385695358,), (1385695348,), (1385695349,), (1385695351,), (1385695354,), (1385695397,), (1385695406,), (1385695412,), (1385695415,), (1385695463,), (1385695464,), (1385695537,), (1385695539,), (1385695556,), (1385695563,), (1385695586,), (1385695617,), (1385695619,), (1385695648,), (1385695649,), (1385695650,), (1385695728,), (1385695736,), (1385695739,), (1385695747,), (1385695762,), (1385695763,), (1385695764,), (1385695772,), (1385695830,), (1385695832,), (1385695834,), (1385695836,), (1385695840,), (1385695843,), (1385695854,), (1385695855,), (1385695856,), (1385695859,), (1385695862,), (1385695884,), (1385695886,), (1385695891,), (1385695906,), (1385695915,), (1385695950,), (1385695951,), (1385695952,), (1385695954,), (1385695991,), (1385695994,), (1385695995,), (1385695999,), (1385696009,), (1385696036,), (1385696071,), (1385696073,), (1385696074,), (1385696075,), (1385696080,), (1385696082,), (1385696120,), (1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,), (1385696608,), (1385696614,), (1385696619,), (1385696624,), (1385696673,), (1385696648,), (1385696667,), (1385696720,), (1385696721,), (1385696722,), (1385696725,), (1385696730,), (1385696733,), (1385696740,), (1385696795,), (1385696821,), (1385696849,), (1385696878,), (1385697287,), (1385697336,), (1385697385,), (1385697436,), (1385697491,), (1385697895,), (1385697946,), (1385698004,), (1385698017,), (1385698035,), (1385698117,), (1385698144,), (1385698168,), (1385698194,), (1385698217,), (1385698483,), (1385698494,), (1385698499,), (1385698502,), (1385698639,), (1385698641,), (1385698649,), (1385698657,), (1385698660,), (1385698668,), (1385698711,), (1385698718,), (1385698750,), (1385698776,), (1385698850,), (1385698851,), (1385698852,), (1385698854,), (1385698860,), (1385698889,), (1385699147,), (1385699175,), (1385699200,), (1385699347,), (1385699539,), (1385699563,), (1385699595,), (1385699912,), (1385699938,), (1385699961,), (1385700057,), (1385700058,), (1385700060,), (1385700077,), (1385700259,), (1385700295,), (1385700324,), (1385700366,), (1385700406,), (1385700544,), (1385700485,), (1385700511,), (1385700536,), (1385700540,), (1385700605,), (1385700610,), (1385700621,), (1385700647,), (1385700686,), (1385700731,), (1385700840,), (1385700853,), (1385700858,), (1385700865,), (1385700875,), (1385700877,), (1385700899,), (1385701031,), (1385701073,), (1385701112,), (1385701169,), (1385701172,), (1385701176,), (1385701180,), (1385701183,), (1385701190,), (1385701196,), (1385701200,), (1385701233,), (1385701268,), (1385701307,), (1385701334,), (1385701351,), (1385701358,), (1385701361,), (1385701373,), (1385701374,), (1385701382,), (1385701396,), (1385701411,), (1385701451,), (1385701624,), (1385701671,), (1385701757,), (1385701762,), (1385701860,), (1385701867,), (1385701884,), (1385701890,), (1385701903,), (1385701905,), (1385701913,), (1385701916,), (1385701918,), (1385701923,), (1385701933,), (1385701981,), (1385701982,), (1385701986,), (1385701988,), (1385702009,), (1385702045,), (1385702046,), (1385702047,), (1385702163,), (1385702195,), (1385702197,), (1385702198,), (1385702200,), (1385702203,), (1385702231,), (1385702216,), (1385702219,), (1385702221,), (1385702223,), (1385702227,), (1385702252,), (1385702253,), (1385702254,), (1385702257,), (1385702277,), (1385702278,), (1385702279,), (1385702284,), (1385702287,), (1385702331,), (1385702332,), (1385702334,), (1385702336,), (1385702351,), (1385702353,), (1385702373,), (1385702377,), (1385702381,), (1385702383,), (1385702426,), (1385702428,), (1385702429,), (1385702436,), (1385702443,), (1385702448,), (1385702467,), (1385702468,), (1385702469,), (1385702472,), (1385702500,), (1385702501,), (1385702502,), (1385702506,), (1385702508,), (1385702531,), (1385702533,), (1385702534,), (1385702550,), (1385702563,), (1385702627,), (1385702628,), (1385702646,), (1385702648,), (1385702649,), (1385702651,), (1385702655,), (1385702659,), (1385702670,), (1385702671,), (1385702672,), (1385702675,), (1385702679,), (1385702735,), (1385702737,), (1385702738,), (1385702741,), (1385702744,), (1385702747,), (1385702827,), (1385702828,), (1385702829,), (1385702831,), (1385702840,), (1385702842,), (1385702843,), (1385702846,), (1385702849,), (1385702851,), (1385702896,), (1385702886,), (1385702887,), (1385702891,), (1385702893,), (1385702929,), (1385702931,), (1385702932,), (1385702934,), (1385702938,), (1385703010,), (1385703029,), (1385703030,), (1385703056,), (1385703059,), (1385703079,), (1385703081,), (1385703082,), (1385703085,), (1385703088,), (1385703090,), (1385703104,), (1385703106,), (1385703108,), (1385703111,), (1385703115,), (1385703119,), (1385703139,), (1385703142,), (1385703143,), (1385703145,), (1385703148,), (1385703187,), (1385703189,), (1385703192,), (1385703197,), (1385703201,), (1385703204,), (1385703211,), (1385703213,), (1385703223,), (1385703227,), (1385703289,), (1385703308,), (1385703309,), (1385703310,), (1385703312,), (1385703317,), (1385703319,), (1385703345,), (1385703346,), (1385703347,), (1385703918,), (1385703984,), (1385704251,), (1385704247,), (1385704464,), (1385704485,), (1385704490,), (1385704496,), (1385704501,), (1385704504,), (1385704516,), (1385704517,), (1385704519,), (1385704521,), (1385704738,), (1385704766,), (1385704789,), (1385704822,), (1385704854,), (1385704894,), (1385705143,), (1385705166,), (1385705189,), (1385705223,), (1385705523,), (1385705554,), (1385705561,), (1385705564,), (1385705567,), (1385705570,), (1385705600,), (1385705625,), (1385705648,), (1385705675,), (1385705702,), (1385705869,), (1385705879,), (1385705880,), (1385705894,), (1385705917,), (1385705927,), (1385705935,), (1385705936,), (1385705937,), (1385705939,), (1385705957,), (1385705959,), (1385705961,), (1385705963,), (1385705966,), (1385705969,), (1385705975,), (1385705976,), (1385705979,), (1385705983,), (1385705986,), (1385706004,), (1385706006,), (1385706008,), (1385706011,), (1385706015,), (1385706018,), (1385706028,), (1385706029,), (1385706030,), (1385706033,), (1385706056,), (1385706057,), (1385706058,), (1385706060,), (1385706064,), (1385706068,), (1385706095,), (1385706098,), (1385706100,), (1385706102,), (1385706158,), (1385706149,), (1385706151,), (1385706152,), (1385706154,), (1385706171,), (1385706173,), (1385706174,), (1385706176,), (1385706181,), (1385706190,), (1385706199,), (1385706217,), (1385706219,), (1385706222,), (1385706229,), (1385706244,), (1385706265,), (1385706292,), (1385706318,), (1385706322,), (1385706324,), (1385706325,), (1385706328,), (1385706332,), (1385706335,), (1385706341,), (1385706358,), (1385706361,), (1385706362,), (1385706364,), (1385706367,), (1385706370,), (1385706395,), (1385706396,), (1385706397,), (1385706399,), (1385706422,), (1385706423,), (1385706424,), (1385706426,), (1385706430,), (1385706434,), (1385706443,), (1385706444,), (1385706445,), (1385706453,), (1385706485,), (1385706488,), (1385706490,), (1385706502,), (1385706518,), (1385706527,), (1385706557,), (1385706558,), (1385706559,), (1385706561,), (1385706564,), (1385706594,), (1385706598,), (1385706612,), (1385706615,), (1385706635,), (1385706677,), (1385706684,), (1385706708,), (1385706739,), (1385706765,), (1385706840,), (1385706842,), (1385706843,), (1385706845,), (1385706848,), (1385706872,), (1385706873,), (1385706874,), (1385706876,), (1385706879,), (1385706913,), (1385706943,), (1385706951,), (1385706961,), (1385706971,), (1385706982,), (1385707048,), (1385707042,), (1385707043,), (1385707044,), (1385707082,), (1385707090,), (1385707091,), (1385707092,), (1385707107,), (1385707206,), (1385707232,), (1385707235,), (1385707243,), (1385707249,), (1385707258,), (1385707272,), (1385707274,), (1385707275,), (1385707277,), (1385707281,), (1385707303,), (1385707304,), (1385707305,), (1385707309,), (1385707312,), (1385707328,), (1385707349,), (1385707351,), (1385707353,), (1385707359,), (1385707370,), (1385707371,), (1385707372,), (1385707376,), (1385707385,), (1385707396,), (1385707407,), (1385707409,), (1385707433,), (1385707461,), (1385707488,), (1385707530,), (1385707531,), (1385707532,), (1385707533,), (1385707536,), (1385707540,), (1385707558,), (1385707566,), (1385707592,), (1385707598,), (1385707602,), (1385707607,), (1385707615,), (1385707617,), (1385707619,), (1385707628,), (1385707630,), (1385707639,), (1385707660,), (1385707674,), (1385707679,), (1385707702,), (1385707704,), (1385707705,), (1385707707,), (1385707712,), (1385707741,), (1385707747,), (1385707785,), (1385707787,), (1385707789,), (1385707949,), (1385707997,), (1385708027,), (1385708056,), (1385708081,), (1385708105,), (1385708200,), (1385708219,), (1385708223,), (1385708228,), (1385708436,), (1385708327,), (1385708351,), (1385708376,), (1385708411,), (1385708423,), (1385708637,), (1385708670,), (1385708682,), (1385708699,), (1385708702,), (1385708756,), (1385708758,), (1385708766,), (1385708798,), (1385708821,), (1385708846,), (1385708895,), (1385708918,), (1385708941,), (1385708950,), (1385708953,), (1385709018,), (1385709020,), (1385709021,), (1385709024,), (1385709026,), (1385709030,), (1385709049,), (1385709050,), (1385709051,), (1385709053,), (1385709085,), (1385709087,), (1385709088,), (1385709090,), (1385709094,), (1385709230,), (1385709256,), (1385709279,), (1385709307,), (1385709332,), (1385709357,), (1385709499,), (1385709522,), (1385709546,), (1385709572,), (1385709596,), (1385709627,), (1385709629,), (1385709631,), (1385709637,), (1385709640,), (1385709643,), (1385709654,), (1385709656,), (1385709658,), (1385709660,), (1385709883,), (1385709906,), (1385709929,), (1385709958,), (1385709982,), (1385710154,), (1385710156,), (1385710157,), (1385710159,), (1385710168,), (1385710179,), (1385710632,), (1385710661,), (1385710687,), (1385710714,), (1385710749,), (1385710752,), (1385710755,), (1385710773,), (1385710802,), (1385710906,), (1385710870,), (1385710879,), (1385710899,), (1385711152,), (1385711181,), (1385711206,), (1385711234,), (1385711264,), (1385711300,), (1385711719,), (1385711744,), (1385711769,), (1385711795,), (1385712216,), (1385712286,), (1385712355,), (1385712443,), (1385712537,), (1385712633,), (1385713002,), (1385713115,), (1385713456,), (1385714147,), (1385714145,), (1385714166,), (1385714167,), (1385714178,), (1385714181,), (1385714186,), (1385714205,), (1385714261,), (1385714293,), (1385714294,), (1385714492,), (1385714493,), (1385714494,), (1385714508,), (1385714529,), (1385714600,), (1385715536,), (1385716314,), (1385721524,), (1385721515,), (1385721517,), (1385721518,), (1385721520,), (1385721538,), (1385721539,), (1385721540,), (1385721544,), (1385721548,), (1385721605,), (1385721606,), (1385721607,), (1385721610,), (1385721614,), (1385721633,), (1385721635,), (1385721636,), (1385721638,), (1385721640,), (1385721642,), (1385721683,), (1385721684,), (1385721685,), (1385721750,), (1385721751,), (1385721752,), (1385721754,), (1385721758,), (1385721759,), (1385721766,), (1385721768,), (1385721769,), (1385721771,), (1385721783,), (1385721785,), (1385721787,), (1385721790,), (1385721800,), (1385721808,), (1385721814,), (1385721816,), (1385721817,), (1385721846,), (1385721850,), (1385721851,), (1385721852,), (1385721854,), (1385721860,), (1385721870,), (1385721872,), (1385721875,), (1385721881,), (1385721896,), (1385721907,), (1385721910,), (1385721914,), (1385721917,), (1385721921,), (1385721932,), (1385721933,), (1385721934,), (1385721936,), (1385721938,), (1385721941,), (1385721967,), (1385721974,), (1385721976,), (1385721979,), (1385722005,), (1385721994,), (1385721995,), (1385721996,), (1385721998,), (1385722001,), (1385722023,), (1385722024,), (1385722025,), (1385722028,), (1385722031,), (1385722044,), (1385722058,), (1385722059,), (1385722060,), (1385722088,), (1385722089,), (1385722090,), (1385722092,), (1385722096,), (1385722099,), (1385722119,), (1385722120,), (1385722121,), (1385722123,), (1385722127,), (1385722153,), (1385722154,), (1385722155,), (1385722156,), (1385722159,), (1385722163,), (1385722173,), (1385722175,), (1385722176,), (1385722178,), (1385722181,), (1385722184,), (1385722203,), (1385722207,), (1385722211,), (1385722217,), (1385722222,), (1385722237,), (1385722238,), (1385722239,), (1385722242,), (1385722246,), (1385722262,), (1385722321,), (1385722334,), (1385722364,), (1385722389,), (1385722397,), (1385722460,), (1385722462,), (1385722463,), (1385722466,), (1385722469,), (1385722473,), (1385722534,), (1385722566,), (1385722651,), (1385722672,), (1385722676,), (1385722681,), (1385722684,), (1385722689,), (1385722742,), (1385722748,), (1385722750,), (1385722753,), (1385722756,), (1385722829,), (1385722856,), (1385722880,), (1385722906,), (1385722932,), (1385722967,), (1385722954,), (1385722957,), (1385722960,), (1385722964,), (1385722979,), (1385722980,), (1385722981,), (1385722982,), (1385722986,), (1385722989,), (1385723012,), (1385723014,), (1385723016,), (1385723018,), (1385723021,), (1385723032,), (1385723034,), (1385723035,), (1385723037,), (1385723060,), (1385723062,), (1385723064,), (1385723066,), (1385723069,), (1385723072,), (1385723127,), (1385723128,), (1385723130,), (1385723133,), (1385723336,), (1385723361,), (1385723386,), (1385723412,), (1385723431,), (1385723444,), (1385723445,), (1385723446,), (1385723447,), (1385723452,), (1385723455,), (1385723498,), (1385723499,), (1385723501,), (1385723504,), (1385723507,), (1385723511,), (1385723520,), (1385723521,), (1385723522,), (1385723523,), (1385723525,), (1385723528,), (1385723530,), (1385723535,), (1385723597,), (1385723598,), (1385723599,), (1385723606,), (1385723635,), (1385723666,), (1385724098,), (1385724122,), (1385724149,), (1385724155,), (1385724159,), (1385724164,), (1385724183,), (1385724184,), (1385724185,), (1385724188,), (1385724216,), (1385724222,), (1385724226,), (1385724228,), (1385724255,), (1385724278,), (1385724530,), (1385724419,), (1385724449,), (1385724474,), (1385724500,), (1385724837,), (1385724868,), (1385724900,), (1385724927,), (1385724953,), (1385724981,), (1385725235,), (1385725263,), (1385725287,), (1385725312,), (1385725636,), (1385725661,), (1385725687,), (1385725712,), (1385725760,), (1385725803,), (1385726244,), (1385726298,), (1385726350,), (1385726404,), (1385726454,), (1385726507,), (1385726721,), (1385726747,), (1385726755,), (1385726946,), (1385726971,), (1385726995,), (1385727005,), (1385727008,), (1385727012,), (1385727120,), (1385727123,), (1385727138,), (1385727156,), (1385727157,), (1385727158,), (1385727171,), (1385727172,), (1385727173,), (1385727175,), (1385727179,), (1385727182,), (1385727202,), (1385727203,), (1385727204,), (1385727219,), (1385727221,), (1385727222,), (1385727224,), (1385727239,), (1385727249,), (1385727253,), (1385727257,), (1385727260,), (1385727263,), (1385727270,), (1385727271,), (1385727272,), (1385727274,), (1385727278,), (1385727282,), (1385727305,), (1385727304,), (1385727325,), (1385727327,), (1385727329,), (1385727331,), (1385727334,), (1385727338,), (1385727353,), (1385727354,), (1385727355,), (1385727358,), (1385727363,), (1385727416,), (1385727419,), (1385727420,), (1385727423,), (1385727446,), (1385727448,), (1385727450,), (1385727452,), (1385727456,), (1385727459,), (1385727488,), (1385727537,), (1385727575,), (1385727576,), (1385727577,), (1385727614,), (1385727642,), (1385727643,), (1385727644,), (1385727673,), (1385727678,), (1385727679,), (1385727685,), (1385727688,), (1385727699,), (1385727700,), (1385727701,), (1385727703,), (1385727707,), (1385727733,), (1385727734,), (1385727736,), (1385727739,), (1385727742,), (1385727782,), (1385727779,), (1385727781,), (1385727810,), (1385727811,), (1385727812,), (1385727815,), (1385727819,), (1385727832,), (1385727833,), (1385727834,), (1385727836,), (1385727840,), (1385727886,), (1385727887,), (1385727888,), (1385727890,), (1385727905,), (1385727907,), (1385727962,), (1385727963,), (1385728100,), (1385728201,), (1385728229,), (1385728231,), (1385728273,), (1385728275,), (1385728276,), (1385728356,), (1385728358,), (1385728360,), (1385728383,), (1385728377,), (1385728378,), (1385728381,), (1385728398,), (1385728400,), (1385728431,), (1385728462,), (1385728487,), (1385728572,), (1385728573,), (1385728574,), (1385728576,), (1385728589,), (1385728591,), (1385728592,), (1385728595,), (1385728599,), (1385728629,), (1385728635,), (1385728639,), (1385728644,), (1385728653,), (1385728655,), (1385728663,), (1385728756,), (1385728782,), (1385728808,), (1385728815,), (1385728822,), (1385728827,), (1385728857,), (1385728859,), (1385728872,), (1385728923,), (1385728924,), (1385728925,), (1385728948,), (1385728949,), (1385728968,), (1385728969,), (1385728970,), (1385728972,), (1385728976,), (1385729009,), (1385729021,), (1385729023,), (1385729038,), (1385729252,), (1385729284,), (1385729307,), (1385729335,), (1385729361,), (1385729385,), (1385729513,), (1385729516,), (1385729520,), (1385729524,), (1385729527,), (1385729530,), (1385729543,), (1385729544,), (1385729822,), (1385729659,), (1385729687,), (1385729718,), (1385729748,), (1385729793,), (1385730247,), (1385730299,), (1385730361,), (1385730413,), (1385730469,), (1385730528,), (1385730931,), (1385730960,), (1385730985,), (1385731009,), (1385731278,), (1385731311,), (1385731335,), (1385731359,), (1385731388,), (1385731417,), (1385731489,), (1385731490,), (1385731491,), (1385731494,), (1385731512,), (1385731514,), (1385731515,), (1385731521,), (1385731525,), (1385731527,), (1385731535,), (1385731536,), (1385731538,), (1385731541,), (1385731550,), (1385731588,), (1385731590,), (1385731591,), (1385731621,), (1385731622,), (1385731623,), (1385731625,), (1385731758,), (1385731760,), (1385731761,), (1385731764,), (1385731768,), (1385731772,), (1385731781,), (1385731785,), (1385731786,), (1385731802,), (1385731806,), (1385731809,), (1385731861,), (1385731864,), (1385731865,), (1385731868,), (1385732131,), (1385732137,), (1385732360,), (1385732362,), (1385732391,), (1385732389,), (1385732527,), (1385732593,), (1385732602,), (1385732606,), (1385732608,), (1385732611,), (1385732750,), (1385732775,), (1385732779,), (1385733040,), (1385733066,), (1385733094,), (1385733117,), (1385733255,), (1385733256,), (1385733257,), (1385733259,), (1385733263,), (1385733320,), (1385733322,), (1385733323,), (1385733326,), (1385733330,), (1385733343,), (1385733344,), (1385733345,), (1385733369,), (1385733374,), (1385733375,), (1385733376,), (1385733378,), (1385733381,), (1385733527,), (1385733552,), (1385733556,), (1385733565,), (1385733569,), (1385733606,), (1385733608,), (1385733624,), (1385733657,), (1385733718,), (1385733719,), (1385733725,), (1385733755,), (1385733758,), (1385733769,), (1385733771,), (1385733772,), (1385733775,), (1385733779,), (1385733782,), (1385733798,), (1385733794,), (1385733795,), (1385733796,), (1385733815,), (1385733817,), (1385733818,), (1385733828,), (1385733830,), (1385733834,), (1385733836,), (1385733837,), (1385733838,), (1385733841,), (1385733845,), (1385733848,), (1385733857,), (1385733859,), (1385733861,), (1385733878,), (1385733880,), (1385733882,), (1385733886,), (1385733892,), (1385733943,), (1385733945,), (1385733946,), (1385733948,), (1385733952,), (1385734061,), (1385734084,), (1385734088,), (1385734090,), (1385734228,), (1385734274,), (1385734277,), (1385734279,), (1385734283,), (1385734285,), (1385734306,), (1385734320,), (1385734321,), (1385734324,), (1385734348,), (1385734350,), (1385734356,), (1385734357,), (1385734374,), (1385734381,), (1385734391,), (1385734392,), (1385734393,), (1385734396,), (1385734637,), (1385737548,), (1385736756,), (1385737547,), (1385737647,), (1385737650,), (1385737662,), (1385738023,), (1385738024,), (1385738065,), (1385738192,), (1385738254,), (1385738256,), (1385738257,), (1385738259,), (1385738261,), (1385738289,), (1385738629,), (1385738640,), (1385738949,), (1385738978,), (1385738990,), (1385738992,), (1385739033,), (1385739035,), (1385739037,), (1385739039,), (1385739042,), (1385739074,), (1385739075,), (1385739076,), (1385739113,), (1385739115,), (1385739116,), (1385739119,), (1385739217,), (1385739218,), (1385739219,), (1385739221,), (1385739224,), (1385739241,), (1385739243,), (1385739244,), (1385739247,), (1385739250,), (1385739255,), (1385739267,), (1385739268,), (1385739269,), (1385739287,), (1385739289,), (1385739290,), (1385739292,), (1385739295,), (1385739297,), (1385739305,), (1385739306,), (1385739307,), (1385739309,), (1385739326,), (1385739352,), (1385739362,), (1385739368,), (1385739454,), (1385739443,), (1385739444,), (1385739445,), (1385739449,), (1385739451,), (1385739465,), (1385739467,), (1385739468,), (1385739469,), (1385739488,), (1385739489,), (1385739490,), (1385739492,), (1385739495,), (1385739497,), (1385739524,), (1385739529,), (1385739530,), (1385739533,), (1385739537,), (1385739544,), (1385739545,), (1385739546,), (1385739568,), (1385739570,), (1385739571,), (1385739574,), (1385739577,), (1385739578,), (1385739598,), (1385739599,), (1385739601,), (1385739603,), (1385739605,), (1385739607,), (1385739614,), (1385739616,), (1385739617,), (1385739618,), (1385739636,), (1385739637,), (1385739638,), (1385739640,), (1385739643,), (1385739645,), (1385739688,), (1385739692,), (1385739693,), (1385739722,), (1385739723,), (1385739724,), (1385739726,), (1385739749,), (1385739805,), (1385739808,), (1385739812,), (1385739814,), (1385739818,), (1385739822,), (1385739927,), (1385739928,), (1385739929,), (1385739932,), (1385739975,), (1385739977,), (1385739978,), (1385739981,), (1385739993,), (1385740012,), (1385740014,), (1385740015,), (1385740024,), (1385740048,), (1385740434,), (1385740375,), (1385740400,), (1385740419,), (1385740427,), (1385740432,), (1385740497,), (1385740500,), (1385740516,), (1385740541,), (1385740592,), (1385740621,), (1385740792,), (1385740794,), (1385740814,), (1385740815,), (1385740824,), (1385740825,), (1385740826,), (1385740829,), (1385740832,), (1385740852,), (1385740854,), (1385740855,), (1385740858,), (1385740862,), (1385740865,), (1385740872,), (1385740873,), (1385740874,), (1385740878,), (1385740906,), (1385740908,), (1385740910,), (1385740913,), (1385740915,), (1385740921,), (1385740922,), (1385740923,), (1385740926,), (1385740930,), (1385740949,), (1385740951,), (1385740952,), (1385740954,), (1385740965,), (1385740966,), (1385740967,), (1385740969,), (1385740972,), (1385740974,), (1385741032,), (1385741034,), (1385741035,), (1385741037,), (1385741040,), (1385741043,), (1385741050,), (1385741051,), (1385741052,), (1385741054,), (1385741056,), (1385741067,), (1385741071,), (1385741073,), (1385741079,), (1385741082,), (1385741084,), (1385741102,), (1385741106,), (1385741110,), (1385741114,), (1385741439,), (1385741359,), (1385741382,), (1385741409,), (1385741730,), (1385741754,), (1385741778,), (1385741802,), (1385741811,), (1385741821,), (1385741911,), (1385741936,), (1385741963,), (1385741992,), (1385742066,), (1385742068,), (1385742069,), (1385742070,), (1385742073,), (1385742081,), (1385742087,), (1385742088,), (1385742089,), (1385742138,), (1385742146,), (1385742148,), (1385742150,), (1385742153,), (1385742155,), (1385742193,), (1385742194,), (1385742200,), (1385742212,), (1385742215,), (1385742261,), (1385742262,), (1385742290,), (1385742297,), (1385742300,), (1385742302,), (1385742382,), (1385742383,), (1385742384,), (1385742413,), (1385742426,), (1385742427,), (1385742428,), (1385742430,), (1385742435,), (1385742439,), (1385742446,), (1385742448,), (1385742449,), (1385742450,), (1385742452,), (1385742461,), (1385742462,), (1385742463,), (1385742465,), (1385742467,), (1385742476,), (1385742478,), (1385742479,), (1385742481,), (1385742482,), (1385742502,), (1385742496,), (1385742497,), (1385742498,), (1385742500,), (1385742501,), (1385742504,), (1385742506,), (1385742507,), (1385742509,), (1385742512,), (1385742515,), (1385742525,), (1385742531,), (1385742533,), (1385742541,), (1385742568,), (1385742570,), (1385742571,), (1385742572,), (1385742576,), (1385742578,), (1385742589,), (1385742590,), (1385742592,), (1385742594,), (1385742603,), (1385742605,), (1385742606,), (1385742607,), (1385742610,), (1385742612,), (1385742627,), (1385742628,), (1385742629,), (1385742678,), (1385742680,), (1385742681,), (1385742682,), (1385742684,), (1385742701,), (1385742709,), (1385742711,), (1385742713,), (1385742715,), (1385742717,), (1385742725,), (1385742726,), (1385742727,), (1385742728,), (1385742738,), (1385742739,), (1385742744,), (1385742745,), (1385742754,), (1385742756,), (1385742758,), (1385742765,), (1385742778,), (1385742780,), (1385742792,), (1385742793,), (1385742794,), (1385742798,), (1385742971,), (1385742996,), (1385743021,), (1385743046,), (1385743075,), (1385743103,), (1385743358,), (1385743386,), (1385743416,), (1385743441,), (1385743465,), (1385743490,), (1385743586,), (1385743576,), (1385743578,), (1385743579,), (1385743806,), (1385743824,), (1385743835,), (1385743838,), (1385743840,), (1385743841,), (1385743850,), (1385743851,), (1385743852,), (1385743854,), (1385743886,), (1385743888,), (1385743890,), (1385743891,), (1385743893,), (1385743901,), (1385743903,), (1385743906,), (1385743911,), (1385743924,), (1385743926,), (1385743982,), (1385743985,), (1385743987,), (1385743988,), (1385744006,), (1385744022,), (1385744025,), (1385744026,), (1385744049,), (1385744052,), (1385744074,), (1385744081,), (1385744084,), (1385744101,), (1385744133,), (1385744159,), (1385744440,), (1385744468,), (1385744491,), (1385744517,), (1385744783,), (1385744814,), (1385744840,), (1385744864,), (1385744889,), (1385744919,), (1385745038,), (1385745040,), (1385745041,), (1385745256,), (1385745290,), (1385745295,), (1385745296,), (1385745297,), (1385745298,), (1385745311,), (1385745312,), (1385745313,), (1385745315,), (1385745318,), (1385745327,), (1385745329,), (1385746420,), (1385745764,), (1385745865,), (1385746209,), (1385746362,), (1385746523,), (1385746524,), (1385746544,), (1385746618,), (1385746942,), (1385746943,), (1385746944,), (1385746949,), (1385746954,), (1385747203,), (1385747287,), (1385747361,), (1385747452,), (1385747680,), (1385747681,), (1385747682,), (1385747684,), (1385747687,), (1385747689,), (1385747720,), (1385747746,), (1385747770,), (1385747799,), (1385747823,), (1385747848,), (1385748109,), (1385748140,), (1385748168,), (1385748193,), (1385748220,), (1385748488,), (1385748514,), (1385748538,), (1385748564,), (1385748620,), (1385748828,), (1385748830,), (1385748831,), (1385748832,), (1385748844,), (1385748848,), (1385748875,), (1385749200,), (1385749202,), (1385749204,), (1385749234,), (1385749248,), (1385749312,), (1385749313,), (1385749314,), (1385749316,), (1385749319,), (1385749321,), (1385749327,), (1385749328,), (1385749329,), (1385749330,), (1385749942,), (1385750029,), (1385750108,), (1385750178,), (1385750247,), (1385750322,), (1385750493,), (1385750546,), (1385750604,), (1385751799,), (1385751323,), (1385751421,), (1385751525,), (1385751656,), (1385752679,), (1385752715,), (1385752754,), (1385752803,), (1385752860,), (1385752924,), (1385753617,), (1385753690,), (1385753732,), (1385753779,), (1385753827,), (1385754608,), (1385754730,), (1385755541,), (1385755542,), (1385755543,), (1385755544,), (1385755564,), (1385755845,), (1385755871,), (1385755897,), (1385755921,), (1385755948,), (1385756099,), (1385756113,), (1385756114,), (1385756116,), (1385756129,), (1385756132,), (1385756142,), (1385756143,), (1385756167,), (1385756169,), (1385756171,), (1385756173,), (1385756176,), (1385756178,), (1385756184,), (1385756185,), (1385756186,), (1385756188,), (1385756191,), (1385756670,), (1385756925,), (1385757004,), (1385757075,), (1385757222,), (1385757273,), (1385757309,), (1385757335,), (1385757364,), (1385757397,), (1385757596,), (1385757676,), (1385757732,), (1385757760,), (1385757786,), (1385757814,), (1385757963,), (1385757994,), (1385758024,), (1385758053,), (1385758084,), (1385758475,), (1385758343,), (1385758369,), (1385758395,), (1385758421,), (1385758446,), (1385758688,), (1385758689,), (1385758690,), (1385758692,), (1385758694,), (1385758700,), (1385758702,), (1385758703,), (1385758721,), (1385758746,), (1385759012,), (1385759036,), (1385759049,), (1385759059,), (1385759062,), (1385759087,), (1385759157,), (1385759159,), (1385759160,), (1385759770,), (1385760087,), (1385760180,), (1385760389,), (1385760466,), (1385760693,), (1385760721,), (1385760745,), (1385760777,), (1385760847,), (1385760916,), (1385761313,), (1385761339,), (1385761361,), (1385761383,), (1385761407,), (1385761702,), (1385761729,), (1385761754,), (1385761777,), (1385762004,), (1385762005,), (1385762020,), (1385762043,), (1385762067,), (1385762436,), (1385762485,), (1385762531,), (1385763018,), (1385763023,), (1385763024,), (1385763040,), (1385763064,), (1385763091,), (1385763202,), (1385763208,), (1385763209,), (1385763210,), (1385763212,), (1385763795,), (1385763796,), (1385763797,), (1385763798,), (1385763931,), (1385763933,), (1385763935,), (1385763936,), (1385763938,), (1385764194,), (1385764079,), (1385764117,), (1385764141,), (1385764168,), (1385764475,), (1385764505,), (1385764542,), (1385764580,), (1385764622,), (1385764652,), (1385764848,), (1385764873,), (1385764899,), (1385765241,), (1385765268,), (1385765283,), (1385765285,), (1385765287,), (1385765290,), (1385765301,), (1385765302,), (1385765303,), (1385765324,), (1385765691,), (1385765717,), (1385765745,), (1385765790,), (1385766229,), (1385766334,), (1385766444,), (1385766549,), (1385766650,), (1385766766,), (1385767390,), (1385767416,), (1385767439,), (1385767463,), (1385768525,), (1385768526,), (1385768527,), (1385768528,), (1385768921,), (1385768953,), (1385769014,), (1385769066,), (1385769431,), (1385769461,), (1385769489,), (1385769516,), (1385769543,), (1385769568,), (1385769816,), (1385769843,), (1385769869,), (1385769899,), (1385769926,), (1385770206,), (1385770238,), (1385770262,), (1385770290,), (1385770479,), (1385770506,), (1385770532,), (1385770557,), (1385770584,), (1385771117,), (1385771165,), (1385771216,), (1385771242,), (1385771270,), (1385771505,), (1385771503,), (1385771642,), (1385771667,), (1385771692,), (1385771717,), (1385771743,), (1385771914,), (1385771927,), (1385771928,), (1385771929,), (1385771932,), (1385771935,), (1385771966,), (1385771967,), (1385771968,), (1385771969,), (1385771990,), (1385771991,), (1385771992,), (1385771993,), (1385771995,), (1385771997,), (1385772004,), (1385772005,), (1385772006,), (1385772008,), (1385772027,), (1385772082,), (1385772092,), (1385772094,), (1385772102,), (1385772103,), (1385772104,), (1385772105,), (1385772108,), (1385772110,), (1385772129,), (1385772135,), (1385772138,), (1385772139,), (1385772141,), (1385772173,), (1385772174,), (1385772176,), (1385772177,), (1385772180,), (1385772190,), (1385772192,), (1385772193,), (1385772195,), (1385772198,), (1385772205,), (1385772206,), (1385772207,), (1385772214,), (1385772241,), (1385772266,), (1385772502,), (1385772507,), (1385772509,), (1385772510,), (1385772604,), (1385772628,), (1385772651,), (1385772680,), (1385772708,), (1385773155,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23092025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27141926]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] map_info['map_portfolio_photo'] : {27141926: [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145]} final : True mtd_id 4302 list_pids : [1385721524, 1385716314, 1385715536, 1385714600, 1385714529, 1385714508, 1385714494, 1385714493, 1385714492, 1385714294, 1385714293, 1385714261, 1385714205, 1385714186, 1385714181, 1385714178, 1385714167, 1385714166, 1385714145] Looping around the photos to save general results len do output : 1 /27141926Didn'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, '3768816') ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816') ('4302', None, None, None, None, None, None, None, '3768816') ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27141926', 'None', None, None, None, None, '3768816'), ('4302', '27141926', '1385721524', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385716314', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385715536', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714600', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714529', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714508', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714494', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714493', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714492', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714294', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714293', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714261', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714205', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714186', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714181', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714178', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714167', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714166', None, None, None, None, None, '3768816'), ('4302', '27141926', '1385714145', None, None, None, None, None, '3768816')] time used for this insertion : 0.08118271827697754 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.783181190490723 time spend to save output : 0.08145856857299805 total time spend for step 5 : 8.86463975906372 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 (3768816) 2.57user 2.05system 0:19.30elapsed 23%CPU (0avgtext+0avgdata 161228maxresident)k 824inputs+18032outputs (8major+76957minor)pagefaults 0swaps