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 : 804266 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 (3796773) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3796773) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367917 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3796773'] with mtr_portfolio_ids : ['27367917'] and first list_photo_ids : [] new path : /proc/804266/ Name: python3 Umask: 0002 State: R (running) Tgid: 804266 Ngid: 0 Pid: 804266 PPid: 804265 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 804266 NSpid: 804266 NSpgid: 802989 NSsid: 802989 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99072 kB VmRSS: 99072 kB RssAnon: 59832 kB RssFile: 39240 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 61 nonvoluntary_ctxt_switches: 150 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '804266', 'Ngid': '0', 'Pid': '804266', 'PPid': '804265', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '804266', 'NSpid': '804266', 'NSpgid': '802989', 'NSsid': '802989', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99072 kB', 'VmRSS': '99072 kB', 'RssAnon': '59832 kB', 'RssFile': '39240 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '61', 'nonvoluntary_ctxt_switches': '150'} ('datou_batch_current', '804266', '1106856', '0', '1106856', '865608', '99072', b'', 'marlene', '3796773') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27367917) 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 (3796773 ) ) 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 (27367917) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387023629, 'portfolio_id': 27367917}, {'photo_id': 1387023612, 'portfolio_id': 27367917}, {'photo_id': 1387023562, 'portfolio_id': 27367917}, {'photo_id': 1387022994, 'portfolio_id': 27367917}, {'photo_id': 1387022933, 'portfolio_id': 27367917}, {'photo_id': 1387022931, 'portfolio_id': 27367917}] map_portfolio_id_photo_id: {27367917: [1387023629, 1387023612, 1387023562, 1387022994, 1387022933, 1387022931]} ##### 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.05203986167907715 #### 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 Tue Sep 30 21:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27367917) 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 : 27367917 get user id for portfolio 27367917 get sub ptf for main ptf 27367917, type 3726 and hashtags ['papier', 'kraft', 'metal', 'Carton_brun', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'Carton_gris', 'flou', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27367917 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','metal','Carton_brun','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','environnement')) 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`=27367917 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','metal','Carton_brun','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27367917, 'sub_port_id': 27367971, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493129, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 27367917, 'sub_port_id': 27367972, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493130, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'Carton_brun': {'main_port_id': 27367917, 'sub_port_id': 27367973, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493131, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'autre_refus': {'main_port_id': 27367917, 'sub_port_id': 27367974, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493132, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'kraft': {'main_port_id': 27367917, 'sub_port_id': 27367975, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493133, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'mal_croppe': {'main_port_id': 27367917, 'sub_port_id': 27367976, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493134, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'papier': {'main_port_id': 27367917, 'sub_port_id': 27367977, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493135, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'Carton_gris': {'main_port_id': 27367917, 'sub_port_id': 27367978, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493136, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'plastique': {'main_port_id': 27367917, 'sub_port_id': 27367979, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493137, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'cartonnette': {'main_port_id': 27367917, 'sub_port_id': 27367980, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493138, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'flou': {'main_port_id': 27367917, 'sub_port_id': 27367981, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493139, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}, 'environnement': {'main_port_id': 27367917, 'sub_port_id': 27367982, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493140, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 25)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367971 , 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=27367917 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 (27367971) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367972 , 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=27367917 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 (27367972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367973 , 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=27367917 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 (27367973) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367974 , 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=27367917 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 (27367974) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367975 , 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=27367917 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 (27367975) result : ((1387023043,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367976 , 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=27367917 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 (27367976) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367977 , 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=27367917 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 (27367977) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367978 , 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=27367917 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 (27367978) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367979 , 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=27367917 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 (27367979) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367980 , 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=27367917 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 (27367980) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367981 , 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=27367917 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 (27367981) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27367982 , 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=27367917 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 (27367982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27367917) result : ((1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27367917 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','metal','Carton_brun','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','environnement')) 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`=27367917 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','metal','Carton_brun','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 27367917, 'sub_port_id': 27367991, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493158, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 27367917, 'sub_port_id': 27367992, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493159, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'Carton_brun': {'main_port_id': 27367917, 'sub_port_id': 27367993, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493160, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'autre_refus': {'main_port_id': 27367917, 'sub_port_id': 27367994, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493161, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'kraft': {'main_port_id': 27367917, 'sub_port_id': 27367995, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493162, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'mal_croppe': {'main_port_id': 27367917, 'sub_port_id': 27367996, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493163, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'papier': {'main_port_id': 27367917, 'sub_port_id': 27367997, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493164, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'Carton_gris': {'main_port_id': 27367917, 'sub_port_id': 27367998, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493165, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'plastique': {'main_port_id': 27367917, 'sub_port_id': 27367999, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493166, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'cartonnette': {'main_port_id': 27367917, 'sub_port_id': 27368000, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493167, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'flou': {'main_port_id': 27367917, 'sub_port_id': 27368001, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493168, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}, 'environnement': {'main_port_id': 27367917, 'sub_port_id': 27368002, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18493169, 'last_updated_at': datetime.datetime(2025, 9, 30, 21, 6, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 21, 6, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 21, 5, 26)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367973 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367974 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367975 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367976 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367977 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27367999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27368000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27368001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27368002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27367982 lien utilise dans velours : https://marlene.fotonower.com/velours/27367991,27367992,27367993,27367994,27367995,27367996,27367997,27367998,27367999,27368000,27368001,27368002?tags=metal,Teint_Dans_La_Masse,Carton_brun,autre_refus,kraft,mal_croppe,papier,Carton_gris,plastique,cartonnette,flou,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27367917]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387023629, 1387023612, 1387023562] map_info['map_portfolio_photo'] : {27367917: [1387023629, 1387023612, 1387023562, 1387022994, 1387022933, 1387022931]} final : False mtd_id 4302 list_pids : [1387023629, 1387023612, 1387023562] Looping around the photos to save general results len do output : 1 /27367917. 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, '3796773') ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '27367917', "{'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982}", None, None, None, None, '3796773'), ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773')] time used for this insertion : 0.03468036651611328 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.039655923843384 time spend to save output : 0.03490710258483887 total time spend for step 1 : 5.074563026428223 step2:final Tue Sep 30 21:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (27367917) 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 27367917 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387022933,1387022931,1387022994,1387023562,1387023629,1387023612); 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([27367917]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} new output for save of step final : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} [1387023629, 1387023612, 1387023562] map_info['map_portfolio_photo'] : {27367917: [1387023629, 1387023612, 1387023562, 1387022994, 1387022933, 1387022931]} final : False mtd_id 4302 list_pids : [1387023629, 1387023612, 1387023562] Looping around the photos to save general results len do output : 3 /1387023629.Didn't retrieve data . /1387023612.Didn't retrieve data . /1387023562.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, '3796773') ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '27367917', '1387023629', '0.2664214355694786', None, None, None, None, '3796773'), ('4302', '27367917', '1387023612', '0.2664214355694786', None, None, None, None, '3796773'), ('4302', '27367917', '1387023562', '0.2664214355694786', None, None, None, None, '3796773')] time used for this insertion : 0.03695106506347656 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23963499069213867 time spend to save output : 0.03722953796386719 total time spend for step 2 : 0.27686452865600586 step3:velours_tree Tue Sep 30 21:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27367917: [{'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982}]} input_args_next_step : {27367917: ()} output_args : {27367917: [{'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982}]} args : 27367917 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 : ({'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27367917) 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([27367917]) 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.3602480888366699 time spend to save output : 7.295608520507812e-05 total time spend for step 3 : 0.360321044921875 step4:send_mail_cod Tue Sep 30 21:15:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} input_args_next_step : {1387023629: ()} output_args : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} args : 1387023629 depend.output_id : 0 input_args_next_step : {1387023629: ('0.2664214355694786',), 1387023612: ()} output_args : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} args : 1387023612 depend.output_id : 0 input_args_next_step : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ()} output_args : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',)} args : 1387023562 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 : {27367917: [{'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982}]} input_args_next_step : {1387023629: ('0.2664214355694786',), 1387023612: ('0.2664214355694786',), 1387023562: ('0.2664214355694786',), 27367917: ()} output_args : {27367917: [{'metal': 27367971, 'Teint_Dans_La_Masse': 27367972, 'Carton_brun': 27367973, 'autre_refus': 27367974, 'kraft': 27367975, 'mal_croppe': 27367976, 'papier': 27367977, 'Carton_gris': 27367978, 'plastique': 27367979, 'cartonnette': 27367980, 'flou': 27367981, 'environnement': 27367982}]} args : 27367917 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 :4, first value : ('0.2664214355694786',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27367917) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1387023629,1387023612,1387023562) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387023562 begin to download photo : 1387023612 begin to download photo : 1387023629 download finish for photo 1387023612 download finish for photo 1387023629 download finish for photo 1387023562 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette273679711759259704/ imagette273679741759259704/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P27367917_30-09-2025_21_15_04.pdf 27367971 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679711759259704 27367974 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367974 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679741759259704 27367975 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367975 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387023043: '1759259225_3499149_1387022994_9e35188c198de2863de70a2dabbfdf6a_rle_crop_3981361663_0.png'} change filename to text .imagette273679751759259704/ imagette273679751759259704/1759259225_3499149_1387022994_9e35188c198de2863de70a2dabbfdf6a_rle_crop_3981361663_0.png.png imagette273679761759259704/ imagette273679791759259704/ imagette273679801759259704/ imagette273679811759259704/ imagette273679721759259704/ imagette273679731759259704/ imagette273679781759259704/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/46bdc3f8820e43abd6b43097f25513f6_72349506.png imagette273679751759259704 27367976 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367976 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679761759259704 27367979 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679791759259704 27367980 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679801759259704 27367981 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679811759259704 27367972 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679721759259704 27367973 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679731759259704 27367978 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273679781759259704 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27367917 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27367991,27367992,27367993,27367994,27367995,27367996,27367997,27367998,27367999,27368000,27368001,27368002?tags=metal,Teint_Dans_La_Masse,Carton_brun,autre_refus,kraft,mal_croppe,papier,Carton_gris,plastique,cartonnette,flou,environnement your option no_mail is active, we will not send the real mail to your client args[1387023629] : ('0.2664214355694786',) no score found for photo 1387023629 We are sending mail with results at report@fotonower.com args[1387023612] : ('0.2664214355694786',) no score found for photo 1387023612 We are sending mail with results at report@fotonower.com args[1387023562] : ('0.2664214355694786',) no score found for photo 1387023562 We are sending mail with results at report@fotonower.com refus_total : 0.2664214355694786 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367917 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_P27367917_30-09-2025_21_15_04.pdf results_Auto_P27367917_30-09-2025_21_15_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_15_04.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','27367917','results_Auto_P27367917_30-09-2025_21_15_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_15_04.pdf','pdf','','0.05','0.2664214355694786') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27367917]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387023629, 1387023612, 1387023562] map_info['map_portfolio_photo'] : {27367917: [1387023629, 1387023612, 1387023562, 1387022994, 1387022933, 1387022931]} final : False mtd_id 4302 list_pids : [1387023629, 1387023612, 1387023562] 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, '3796773') ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '27367917', '1387023629', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773')] time used for this insertion : 0.03597307205200195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5162696838378906 time spend to save output : 0.03622913360595703 total time spend for step 4 : 1.5524988174438477 step5:split_time_score Tue Sep 30 21:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27367917'] 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 : [('27367917',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27367917) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387023612: {'path': 'temp/1759259704_804266_1387023612_3e886c9731b953b47110e6ce9ea770de.jpg', 'extension': 'jpg'}, 1387023629: {'path': 'temp/1759259704_804266_1387023629_325aa52cb0d1b89804f28faefcc71ae3.jpg', 'extension': 'jpg'}, 1387023562: {'path': 'temp/1759259704_804266_1387023562_596f7bc3320dc898fb93fcf24b0c256a.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 = 27367917; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27367917 group by h (('21', 6),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27367917 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 (27367917) 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 (27367917) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30092025 27367917 Nombre de photos uploadées : 6 / 23040 (0%) 30092025 27367917 Nombre de photos taguées (types de déchets): 0 / 6 (0%) 30092025 27367917 Nombre de photos taguées (volume) : 0 / 6 (0%) [{'photo_id': 1387022933, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/65ae32d5b11abd243be85eac57f1dd22.jpg', 'username': None, 'uploaded_at': 1759259048, 'text': 'image_30092025_21_02_54_9128.jpg'}, {'photo_id': 1387022931, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f661a48b299f58b46809bf72b8b44966.jpg', 'username': None, 'uploaded_at': 1759259048, 'text': 'image_30092025_21_03_44_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387022994, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9e35188c198de2863de70a2dabbfdf6a.jpg', 'username': None, 'uploaded_at': 1759259168, 'text': 'image_30092025_21_03_55_010137m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1387023562, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/596f7bc3320dc898fb93fcf24b0c256a.jpg', 'username': None, 'uploaded_at': 1759259587, 'text': 'image_30092025_21_05_24_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????? elapsed_time : fill_and_build_computed_from_old_data 0.00036454200744628906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27367917, '2025-09-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2363251,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.7510616779327393 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= 2363251 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27335682, 'dashboard_result_id': 15824790, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27335814, 'dashboard_result_id': 15824791, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27335961, 'dashboard_result_id': 15824792, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27336428, 'dashboard_result_id': 15824793, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27337055, 'dashboard_result_id': 15824794, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27337483, 'dashboard_result_id': 15824795, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27338516, 'dashboard_result_id': 15824796, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27338908, 'dashboard_result_id': 15824797, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27339780, 'dashboard_result_id': 15824798, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27339914, 'dashboard_result_id': 15824799, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27346603, 'dashboard_result_id': 15824800, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27346604, 'dashboard_result_id': 15824801, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27346605, 'dashboard_result_id': 15824802, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343961, 'dashboard_result_id': 15824803, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343964, 'dashboard_result_id': 15824804, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27346606, 'dashboard_result_id': 15824805, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27346607, 'dashboard_result_id': 15824806, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343995, 'dashboard_result_id': 15824807, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27341302, 'dashboard_result_id': 15824808, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343998, 'dashboard_result_id': 15824809, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27344000, 'dashboard_result_id': 15824810, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27341336, 'dashboard_result_id': 15824811, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27344002, 'dashboard_result_id': 15824812, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27340889, 'dashboard_result_id': 15824813, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27342266, 'dashboard_result_id': 15824814, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343199, 'dashboard_result_id': 15824815, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27342690, 'dashboard_result_id': 15824816, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27343836, 'dashboard_result_id': 15824817, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27344539, 'dashboard_result_id': 15824818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27348083, 'dashboard_result_id': 15824819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27348699, 'dashboard_result_id': 15824820, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27349371, 'dashboard_result_id': 15824821, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27350226, 'dashboard_result_id': 15824822, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27350819, 'dashboard_result_id': 15824823, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27351603, 'dashboard_result_id': 15824824, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27351983, 'dashboard_result_id': 15824825, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27352576, 'dashboard_result_id': 15824826, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27353601, 'dashboard_result_id': 15824827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27354235, 'dashboard_result_id': 15824828, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27355020, 'dashboard_result_id': 15824829, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27355733, 'dashboard_result_id': 15824830, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27356323, 'dashboard_result_id': 15824831, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27356877, 'dashboard_result_id': 15824832, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27357789, 'dashboard_result_id': 15824833, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27359942, 'dashboard_result_id': 15824834, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27360591, 'dashboard_result_id': 15824835, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27361214, 'dashboard_result_id': 15824836, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27361733, 'dashboard_result_id': 15824837, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27362389, 'dashboard_result_id': 15824838, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27363066, 'dashboard_result_id': 15824839, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27363779, 'dashboard_result_id': 15824840, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27364486, 'dashboard_result_id': 15824841, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27365188, 'dashboard_result_id': 15824842, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27365970, 'dashboard_result_id': 15824843, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27366469, 'dashboard_result_id': 15824844, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2375543, 'mtr_portfolio_id': 27367917, 'dashboard_result_id': 15824845, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_06_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, '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 = 27335682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27335682 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_30-09-2025_16_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335682 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}" where mtr_portfolio_id = 27335682 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335814 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792806, 'mtr_portfolio_id': 27335814, 'created_at': datetime.datetime(2025, 9, 30, 15, 51, 5), 'result': '0.12942168143363605', 'result_long': None, 'result_double': None}] Qualite : 0.12942168143363605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335814 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}" where mtr_portfolio_id = 27335814 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27335814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824791, 0.12942168143363605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792807, 'mtr_portfolio_id': 27335961, 'created_at': datetime.datetime(2025, 9, 30, 15, 31, 5), 'result': '0.05682456087437678', 'result_long': None, 'result_double': None}] Qualite : 0.05682456087437678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}" where mtr_portfolio_id = 27335961 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27335961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824792, 0.05682456087437678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27336428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792808, 'mtr_portfolio_id': 27336428, 'created_at': datetime.datetime(2025, 9, 30, 14, 56, 6), 'result': '0.03513037243292421', 'result_long': None, 'result_double': None}] Qualite : 0.03513037243292421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27336428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}" where mtr_portfolio_id = 27336428 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824793, 0.03513037243292421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27337055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792809, 'mtr_portfolio_id': 27337055, 'created_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'result': '0.11175540744958323', 'result_long': None, 'result_double': None}] Qualite : 0.11175540744958323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}" where mtr_portfolio_id = 27337055 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824794, 0.11175540744958323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27337483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792810, 'mtr_portfolio_id': 27337483, 'created_at': datetime.datetime(2025, 9, 30, 14, 31, 6), 'result': '0.13236143831560637', 'result_long': None, 'result_double': None}] Qualite : 0.13236143831560637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}" where mtr_portfolio_id = 27337483 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824795, 0.13236143831560637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27338516 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792811, 'mtr_portfolio_id': 27338516, 'created_at': datetime.datetime(2025, 9, 30, 13, 46, 5), 'result': '0.08477776823286796', 'result_long': None, 'result_double': None}] Qualite : 0.08477776823286796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338516 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}" where mtr_portfolio_id = 27338516 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27338516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824796, 0.08477776823286796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27338908 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792733, 'mtr_portfolio_id': 27338908, 'created_at': datetime.datetime(2025, 9, 30, 16, 48, 32), 'result': '0.018743900037648104', 'result_long': None, 'result_double': None}] Qualite : 0.018743900037648104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338908 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}" where mtr_portfolio_id = 27338908 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27338908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824797, 0.018743900037648104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27339780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792882, 'mtr_portfolio_id': 27339780, 'created_at': datetime.datetime(2025, 9, 30, 6, 51, 25), 'result': '0.027011637195848395', 'result_long': None, 'result_double': None}] Qualite : 0.027011637195848395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}" where mtr_portfolio_id = 27339780 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27339780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824798, 0.027011637195848395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27339914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792899, 'mtr_portfolio_id': 27339914, 'created_at': datetime.datetime(2025, 9, 30, 13, 26, 5), 'result': '0.03242617448801075', 'result_long': None, 'result_double': None}] Qualite : 0.03242617448801075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}" where mtr_portfolio_id = 27339914 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27339914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824799, 0.03242617448801075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346603 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346603 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}" where mtr_portfolio_id = 27346603 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346604 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}" where mtr_portfolio_id = 27346604 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346605 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346605 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}" where mtr_portfolio_id = 27346605 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343961 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}" where mtr_portfolio_id = 27343961 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343964 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343964 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}" where mtr_portfolio_id = 27343964 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346606 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346606 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}" where mtr_portfolio_id = 27346606 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346607 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346607 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}" where mtr_portfolio_id = 27346607 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343995 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343995 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}" where mtr_portfolio_id = 27343995 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341302 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341302 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}" where mtr_portfolio_id = 27341302 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343998 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343998 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}" where mtr_portfolio_id = 27343998 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344000 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344000 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}" where mtr_portfolio_id = 27344000 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}" where mtr_portfolio_id = 27341336 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344002 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}" where mtr_portfolio_id = 27344002 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27340889 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27340889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27340889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}" where mtr_portfolio_id = 27340889 and dashboard_run_id = 2375543 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27342266 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793369, 'mtr_portfolio_id': 27342266, 'created_at': datetime.datetime(2025, 9, 30, 11, 36, 6), 'result': '0.032037475049841224', 'result_long': None, 'result_double': None}] Qualite : 0.032037475049841224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342266 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}" where mtr_portfolio_id = 27342266 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27342266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824814, 0.032037475049841224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343199 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793694, 'mtr_portfolio_id': 27343199, 'created_at': datetime.datetime(2025, 9, 30, 11, 56, 5), 'result': '0.031162266974524126', 'result_long': None, 'result_double': None}] Qualite : 0.031162266974524126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343199 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}" where mtr_portfolio_id = 27343199 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27343199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824815, 0.031162266974524126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27342690 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793447, 'mtr_portfolio_id': 27342690, 'created_at': datetime.datetime(2025, 9, 30, 11, 51, 7), 'result': '0.08112103612526256', 'result_long': None, 'result_double': None}] Qualite : 0.08112103612526256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342690 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}" where mtr_portfolio_id = 27342690 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27342690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824816, 0.08112103612526256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793803, 'mtr_portfolio_id': 27343836, 'created_at': datetime.datetime(2025, 9, 30, 12, 21, 4), 'result': '0.06402936172566988', 'result_long': None, 'result_double': None}] Qualite : 0.06402936172566988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}" where mtr_portfolio_id = 27343836 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27343836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824817, 0.06402936172566988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344539 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793931, 'mtr_portfolio_id': 27344539, 'created_at': datetime.datetime(2025, 9, 30, 12, 39, 24), 'result': '0.06871672178279924', 'result_long': None, 'result_double': None}] Qualite : 0.06871672178279924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344539 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}" where mtr_portfolio_id = 27344539 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27344539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824818, 0.06871672178279924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27348083 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794214, 'mtr_portfolio_id': 27348083, 'created_at': datetime.datetime(2025, 9, 30, 14, 11, 6), 'result': '0.05605132116591798', 'result_long': None, 'result_double': None}] Qualite : 0.05605132116591798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348083 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}" where mtr_portfolio_id = 27348083 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27348083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824819, 0.05605132116591798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27348699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794256, 'mtr_portfolio_id': 27348699, 'created_at': datetime.datetime(2025, 9, 30, 14, 21, 4), 'result': '0.04381904414100635', 'result_long': None, 'result_double': None}] Qualite : 0.04381904414100635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348699 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}" where mtr_portfolio_id = 27348699 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27348699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824820, 0.04381904414100635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27349371 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794299, 'mtr_portfolio_id': 27349371, 'created_at': datetime.datetime(2025, 9, 30, 14, 36, 5), 'result': '0.03183588031159431', 'result_long': None, 'result_double': None}] Qualite : 0.03183588031159431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27349371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27349371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}" where mtr_portfolio_id = 27349371 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27349371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824821, 0.03183588031159431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27350226 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794387, 'mtr_portfolio_id': 27350226, 'created_at': datetime.datetime(2025, 9, 30, 14, 51, 5), 'result': '0.06751035463601696', 'result_long': None, 'result_double': None}] Qualite : 0.06751035463601696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350226 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}" where mtr_portfolio_id = 27350226 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27350226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824822, 0.06751035463601696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27350819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794478, 'mtr_portfolio_id': 27350819, 'created_at': datetime.datetime(2025, 9, 30, 15, 6, 5), 'result': '0.06836435408594851', 'result_long': None, 'result_double': None}] Qualite : 0.06836435408594851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}" where mtr_portfolio_id = 27350819 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27350819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824823, 0.06836435408594851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27351603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794570, 'mtr_portfolio_id': 27351603, 'created_at': datetime.datetime(2025, 9, 30, 15, 26, 4), 'result': '0.060426941062765714', 'result_long': None, 'result_double': None}] Qualite : 0.060426941062765714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351603 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}" where mtr_portfolio_id = 27351603 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27351603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824824, 0.060426941062765714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27351983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794606, 'mtr_portfolio_id': 27351983, 'created_at': datetime.datetime(2025, 9, 30, 15, 36, 5), 'result': '0.03756418339818615', 'result_long': None, 'result_double': None}] Qualite : 0.03756418339818615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}" where mtr_portfolio_id = 27351983 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27351983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824825, 0.03756418339818615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27352576 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794664, 'mtr_portfolio_id': 27352576, 'created_at': datetime.datetime(2025, 9, 30, 15, 53, 25), 'result': '0.056827191337181726', 'result_long': None, 'result_double': None}] Qualite : 0.056827191337181726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27352576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27352576 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}" where mtr_portfolio_id = 27352576 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27352576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824826, 0.056827191337181726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27353601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794801, 'mtr_portfolio_id': 27353601, 'created_at': datetime.datetime(2025, 9, 30, 16, 11, 6), 'result': '0.06005432698009597', 'result_long': None, 'result_double': None}] Qualite : 0.06005432698009597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27353601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27353601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}" where mtr_portfolio_id = 27353601 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27353601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824827, 0.06005432698009597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27354235 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794868, 'mtr_portfolio_id': 27354235, 'created_at': datetime.datetime(2025, 9, 30, 16, 21, 7), 'result': '0.052175548624391554', 'result_long': None, 'result_double': None}] Qualite : 0.052175548624391554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27354235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27354235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}" where mtr_portfolio_id = 27354235 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27354235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824828, 0.052175548624391554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27355020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794930, 'mtr_portfolio_id': 27355020, 'created_at': datetime.datetime(2025, 9, 30, 16, 41, 7), 'result': '0.03992816911486089', 'result_long': None, 'result_double': None}] Qualite : 0.03992816911486089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}" where mtr_portfolio_id = 27355020 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27355020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824829, 0.03992816911486089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27355733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795055, 'mtr_portfolio_id': 27355733, 'created_at': datetime.datetime(2025, 9, 30, 16, 51, 26), 'result': '0.03956578148142965', 'result_long': None, 'result_double': None}] Qualite : 0.03956578148142965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}" where mtr_portfolio_id = 27355733 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27355733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824830, 0.03956578148142965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27356323 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795120, 'mtr_portfolio_id': 27356323, 'created_at': datetime.datetime(2025, 9, 30, 17, 4, 59), 'result': '0.03351866036357782', 'result_long': None, 'result_double': None}] Qualite : 0.03351866036357782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356323 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}" where mtr_portfolio_id = 27356323 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27356323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824831, 0.03351866036357782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27356877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795212, 'mtr_portfolio_id': 27356877, 'created_at': datetime.datetime(2025, 9, 30, 17, 19, 23), 'result': '0.04055982741025997', 'result_long': None, 'result_double': None}] Qualite : 0.04055982741025997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}" where mtr_portfolio_id = 27356877 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27356877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824832, 0.04055982741025997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27357789 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795311, 'mtr_portfolio_id': 27357789, 'created_at': datetime.datetime(2025, 9, 30, 18, 5, 4), 'result': '0.04134207455672641', 'result_long': None, 'result_double': None}] Qualite : 0.04134207455672641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27357789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27357789 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}" where mtr_portfolio_id = 27357789 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27357789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824833, 0.04134207455672641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27359942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795575, 'mtr_portfolio_id': 27359942, 'created_at': datetime.datetime(2025, 9, 30, 18, 17, 3), 'result': '0.04682273514079712', 'result_long': None, 'result_double': None}] Qualite : 0.04682273514079712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27359942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27359942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}" where mtr_portfolio_id = 27359942 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27359942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824834, 0.04682273514079712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27360591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795626, 'mtr_portfolio_id': 27360591, 'created_at': datetime.datetime(2025, 9, 30, 18, 35, 6), 'result': '0.06108782636962525', 'result_long': None, 'result_double': None}] Qualite : 0.06108782636962525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27360591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27360591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}" where mtr_portfolio_id = 27360591 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27360591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824835, 0.06108782636962525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27361214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795704, 'mtr_portfolio_id': 27361214, 'created_at': datetime.datetime(2025, 9, 30, 18, 49, 3), 'result': '0.040197135565628296', 'result_long': None, 'result_double': None}] Qualite : 0.040197135565628296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}" where mtr_portfolio_id = 27361214 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27361214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824836, 0.040197135565628296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27361733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795798, 'mtr_portfolio_id': 27361733, 'created_at': datetime.datetime(2025, 9, 30, 19, 5, 25), 'result': '0.08001342542891669', 'result_long': None, 'result_double': None}] Qualite : 0.08001342542891669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}" where mtr_portfolio_id = 27361733 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27361733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824837, 0.08001342542891669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27362389 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795916, 'mtr_portfolio_id': 27362389, 'created_at': datetime.datetime(2025, 9, 30, 19, 17, 1), 'result': '0.03990075924470431', 'result_long': None, 'result_double': None}] Qualite : 0.03990075924470431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27362389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27362389 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}" where mtr_portfolio_id = 27362389 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27362389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824838, 0.03990075924470431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27363066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796012, 'mtr_portfolio_id': 27363066, 'created_at': datetime.datetime(2025, 9, 30, 19, 33), 'result': '0.04919134925850653', 'result_long': None, 'result_double': None}] Qualite : 0.04919134925850653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27363066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27363066 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}" where mtr_portfolio_id = 27363066 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27363066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824839, 0.04919134925850653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27363779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796140, 'mtr_portfolio_id': 27363779, 'created_at': datetime.datetime(2025, 9, 30, 19, 49, 4), 'result': '0.061652323278321645', 'result_long': None, 'result_double': None}] Qualite : 0.061652323278321645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27363779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27363779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}" where mtr_portfolio_id = 27363779 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27363779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824840, 0.061652323278321645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27364486 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796256, 'mtr_portfolio_id': 27364486, 'created_at': datetime.datetime(2025, 9, 30, 20, 5), 'result': '0.05320708801057103', 'result_long': None, 'result_double': None}] Qualite : 0.05320708801057103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27364486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27364486 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}" where mtr_portfolio_id = 27364486 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27364486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824841, 0.05320708801057103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27365188 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796361, 'mtr_portfolio_id': 27365188, 'created_at': datetime.datetime(2025, 9, 30, 20, 19, 3), 'result': '0.061260001620685706', 'result_long': None, 'result_double': None}] Qualite : 0.061260001620685706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27365188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27365188 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}" where mtr_portfolio_id = 27365188 and dashboard_run_id = 2375543 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27365188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824842, 0.061260001620685706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27365970 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796476, 'mtr_portfolio_id': 27365970, 'created_at': datetime.datetime(2025, 9, 30, 20, 33, 4), 'result': '0.0719164820812083', 'result_long': None, 'result_double': None}] Qualite : 0.0719164820812083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27365970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27365970 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}" where mtr_portfolio_id = 27365970 and dashboard_run_id = 2375545 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27365970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824843, 0.0719164820812083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27366469 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796564, 'mtr_portfolio_id': 27366469, 'created_at': datetime.datetime(2025, 9, 30, 21, 4, 58), 'result': '0.06237384333281851', 'result_long': None, 'result_double': None}] Qualite : 0.06237384333281851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27366469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27366469 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}" where mtr_portfolio_id = 27366469 and dashboard_run_id = 2375545 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27366469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824844, 0.06237384333281851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27367917 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796773, 'mtr_portfolio_id': 27367917, 'created_at': datetime.datetime(2025, 9, 30, 21, 15, 3), 'result': '0.2664214355694786', 'result_long': None, 'result_double': None}] Qualite : 0.2664214355694786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27367917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_15_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27367917 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_15_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, 'pht': 3726}}" where mtr_portfolio_id = 27367917 and dashboard_run_id = 2375545 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27367917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15824845, 0.2664214355694786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_15_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, '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 (27335682,27335814,27335961,27336428,27337055,27337483,27338516,27338908,27339780,27339914,27346603,27346604,27346605,27343961,27343964,27346606,27346607,27343995,27341302,27343998,27344000,27341336,27344002,27340889,27342266,27343199,27342690,27343836,27344539,27348083,27348699,27349371,27350226,27350819,27351603,27351983,27352576,27353601,27354235,27355020,27355733,27356323,27356877,27357789,27359942,27360591,27361214,27361733,27362389,27363066,27363779,27364486,27365188,27365970,27366469,27367917) result : ((1386830906,), (1386831058,), (1386831149,), (1386831559,), (1386831560,), (1386831612,), (1386831630,), (1386831953,), (1386834594,), (1386834611,), (1386834722,), (1386834745,), (1386834749,), (1386835358,), (1386835525,), (1386835526,), (1386835555,), (1386835577,), (1386835578,), (1386835580,), (1386835617,), (1386836087,), (1386836114,), (1386836146,), (1386836150,), (1386836173,), (1386836773,), (1386837033,), (1386837163,), (1386837614,), (1386837618,), (1386837640,), (1386838514,), (1386838480,), (1386838598,), (1386838757,), (1386838762,), (1386838817,), (1386838821,), (1386838873,), (1386839202,), (1386839206,), (1386839236,), (1386840158,), (1386840162,), (1386840829,), (1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,), (1386849361,), (1386849364,), (1386849384,), (1386849388,), (1386850015,), (1386850930,), (1386850944,), (1386851321,), (1386864607,), (1386864599,), (1386864603,), (1386865238,), (1386866133,), (1386866142,), (1386866326,), (1386866337,), (1386866524,), (1386866820,), (1386866863,), (1386866867,), (1386867039,), (1386867095,), (1386867134,), (1386867139,), (1386867143,), (1386867298,), (1386867302,), (1386867341,), (1386867364,), (1386867367,), (1386867371,), (1386867403,), (1386867505,), (1386867561,), (1386867683,), (1386867703,), (1386867914,), (1386868130,), (1386868156,), (1386868534,), (1386868833,), (1386868840,), (1386868973,), (1386868977,), (1386868979,), (1386868980,), (1386868983,), (1386869000,), (1386869003,), (1386869005,), (1386869175,), (1386869179,), (1386869337,), (1386869444,), (1386884239,), (1386884236,), (1386884259,), (1386884264,), (1386884266,), (1386884270,), (1386884273,), (1386884276,), (1386884285,), (1386884288,), (1386884495,), (1386884499,), (1386884505,), (1386884523,), (1386884526,), (1386884551,), (1386884603,), (1386884580,), (1386884592,), (1386884597,), (1386884600,), (1386884620,), (1386884624,), (1386884626,), (1386884627,), (1386884629,), (1386884647,), (1386884651,), (1386884743,), (1386884746,), (1386884748,), (1386884750,), (1386884753,), (1386884771,), (1386884775,), (1386884777,), (1386884780,), (1386884803,), (1386884807,), (1386884809,), (1386884811,), (1386884814,), (1386885703,), (1386885707,), (1386885710,), (1386885713,), (1386885733,), (1386885736,), (1386885739,), (1386885742,), (1386885746,), (1386885751,), (1386886102,), (1386886187,), (1386886190,), (1386886212,), (1386886215,), (1386886218,), (1386886222,), (1386886226,), (1386886537,), (1386886542,), (1386886548,), (1386886554,), (1386886557,), (1386886561,), (1386886565,), (1386886567,), (1386886570,), (1386886598,), (1386893352,), (1386893355,), (1386893357,), (1386893360,), (1386893363,), (1386893367,), (1386893383,), (1386893386,), (1386893400,), (1386893403,), (1386893407,), (1386893420,), (1386893423,), (1386893425,), (1386893429,), (1386893433,), (1386893453,), (1386893454,), (1386893456,), (1386893459,), (1386893462,), (1386893466,), (1386893471,), (1386893473,), (1386893475,), (1386893477,), (1386893482,), (1386893484,), (1386893487,), (1386893491,), (1386893493,), (1386893509,), (1386893513,), (1386893538,), (1386893542,), (1386893547,), (1386893550,), (1386893572,), (1386893575,), (1386893577,), (1386893580,), (1386893583,), (1386893598,), (1386893603,), (1386893607,), (1386893612,), (1386893616,), (1386893632,), (1386893637,), (1386893640,), (1386893671,), (1386893674,), (1386893678,), (1386893683,), (1386893687,), (1386893691,), (1386893704,), (1386893709,), (1386893715,), (1386893720,), (1386893726,), (1386893780,), (1386893782,), (1386893787,), (1386893789,), (1386893792,), (1386893795,), (1386893797,), (1386893799,), (1386893816,), (1386893819,), (1386891495,), (1386891526,), (1386891528,), (1386891530,), (1386891533,), (1386891536,), (1386891539,), (1386891570,), (1386891719,), (1386892445,), (1386892539,), (1386892559,), (1386892560,), (1386892561,), (1386892584,), (1386892588,), (1386892591,), (1386892623,), (1386892628,), (1386892631,), (1386892653,), (1386892657,), (1386892660,), (1386892661,), (1386892664,), (1386892668,), (1386892685,), (1386892689,), (1386892691,), (1386892713,), (1386892717,), (1386892720,), (1386892723,), (1386892727,), (1386892731,), (1386892747,), (1386892750,), (1386892751,), (1386892752,), (1386892755,), (1386892774,), (1386892776,), (1386892778,), (1386892783,), (1386892790,), (1386892792,), (1386892808,), (1386892811,), (1386892813,), (1386892815,), (1386892817,), (1386892820,), (1386892826,), (1386892828,), (1386892831,), (1386892833,), (1386892838,), (1386892842,), (1386892856,), (1386893766,), (1386893769,), (1386893773,), (1386893777,), (1386893802,), (1386893804,), (1386893807,), (1386893810,), (1386893813,), (1386893826,), (1386893829,), (1386893832,), (1386893836,), (1386893840,), (1386893841,), (1386893853,), (1386893856,), (1386893857,), (1386893859,), (1386893882,), (1386893885,), (1386893888,), (1386893892,), (1386893896,), (1386893899,), (1386893911,), (1386893915,), (1386893918,), (1386893922,), (1386893927,), (1386893953,), (1386893957,), (1386893959,), (1386893961,), (1386893965,), (1386893981,), (1386893983,), (1386893985,), (1386893988,), (1386893992,), (1386893996,), (1386894015,), (1386894018,), (1386894020,), (1386894022,), (1386894066,), (1386894079,), (1386894097,), (1386894113,), (1386894119,), (1386894134,), (1386894152,), (1386894160,), (1386894164,), (1386894167,), (1386894173,), (1386894178,), (1386894209,), (1386894211,), (1386894215,), (1386894217,), (1386894222,), (1386894230,), (1386894232,), (1386894236,), (1386894239,), (1386894246,), (1386894253,), (1386894836,), (1386894850,), (1386894854,), (1386894915,), (1386895141,), (1386895144,), (1386895146,), (1386895148,), (1386895156,), (1386895162,), (1386895299,), (1386895309,), (1386895342,), (1386895723,), (1386895735,), (1386895926,), (1386900156,), (1386900188,), (1386900194,), (1386900201,), (1386900206,), (1386900412,), (1386900446,), (1386900448,), (1386900505,), (1386900545,), (1386900548,), (1386900550,), (1386900552,), (1386900555,), (1386900716,), (1386900720,), (1386900723,), (1386900726,), (1386900730,), (1386900760,), (1386900826,), (1386900955,), (1386900985,), (1386900990,), (1386901085,), (1386901090,), (1386901093,), (1386901118,), (1386901123,), (1386901126,), (1386901152,), (1386901161,), (1386901166,), (1386901170,), (1386901188,), (1386901328,), (1386901335,), (1386901337,), (1386901338,), (1386901354,), (1386901357,), (1386901359,), (1386901362,), (1386901366,), (1386901484,), (1386901487,), (1386901532,), (1386901535,), (1386901538,), (1386902218,), (1386902222,), (1386902224,), (1386902226,), (1386902853,), (1386902907,), (1386902909,), (1386902911,), (1386902914,), (1386903185,), (1386903190,), (1386903209,), (1386903606,), (1386903609,), (1386903610,), (1386903648,), (1386903701,), (1386903705,), (1386903707,), (1386903711,), (1386903719,), (1386903723,), (1386903810,), (1386895910,), (1386895914,), (1386895922,), (1386895924,), (1386895925,), (1386896032,), (1386896038,), (1386896051,), (1386896054,), (1386896057,), (1386896131,), (1386896134,), (1386896138,), (1386896142,), (1386896147,), (1386896151,), (1386896618,), (1386896624,), (1386896637,), (1386896638,), (1386897098,), (1386897100,), (1386897103,), (1386897108,), (1386897576,), (1386897585,), (1386897599,), (1386897603,), (1386897608,), (1386897618,), (1386897874,), (1386897977,), (1386897990,), (1386898003,), (1386898005,), (1386898032,), (1386898038,), (1386898179,), (1386898183,), (1386898217,), (1386898233,), (1386898363,), (1386898368,), (1386898400,), (1386898410,), (1386898441,), (1386898481,), (1386898486,), (1386898489,), (1386898492,), (1386898534,), (1386898599,), (1386898601,), (1386898604,), (1386898606,), (1386898609,), (1386898641,), (1386898924,), (1386898950,), (1386898952,), (1386898956,), (1386899097,), (1386899210,), (1386899213,), (1386899223,), (1386899237,), (1386899240,), (1386899406,), (1386899410,), (1386899411,), (1386899417,), (1386899623,), (1386899835,), (1386899935,), (1386899942,), (1386899953,), (1386899978,), (1386900214,), (1386903798,), (1386903803,), (1386903807,), (1386903828,), (1386903832,), (1386903833,), (1386903835,), (1386903840,), (1386903925,), (1386903939,), (1386903942,), (1386903981,), (1386904001,), (1386904006,), (1386904033,), (1386904036,), (1386904173,), (1386904825,), (1386905049,), (1386905099,), (1386905224,), (1386905287,), (1386905328,), (1386905701,), (1386905704,), (1386905706,), (1386905709,), (1386905712,), (1386905900,), (1386905917,), (1386905934,), (1386905939,), (1386905944,), (1386905947,), (1386906360,), (1386906370,), (1386906479,), (1386906481,), (1386906520,), (1386906617,), (1386906644,), (1386906654,), (1386906658,), (1386906662,), (1386906665,), (1386906709,), (1386906713,), (1386906739,), (1386906744,), (1386906768,), (1386906771,), (1386906773,), (1386906971,), (1386906973,), (1386907263,), (1386907267,), (1386907270,), (1386907274,), (1386907284,), (1386907349,), (1386907352,), (1386907356,), (1386907360,), (1386908221,), (1386908290,), (1386908385,), (1386908388,), (1386908393,), (1386908444,), (1386908474,), (1386908484,), (1386908517,), (1386908556,), (1386887862,), (1386887869,), (1386887949,), (1386888130,), (1386888160,), (1386888165,), (1386888201,), (1386888232,), (1386888221,), (1386888225,), (1386888229,), (1386888256,), (1386888259,), (1386888262,), (1386888264,), (1386888265,), (1386888267,), (1386888284,), (1386888285,), (1386888305,), (1386888307,), (1386888310,), (1386888312,), (1386888314,), (1386888316,), (1386888328,), (1386888334,), (1386888338,), (1386888341,), (1386888343,), (1386888361,), (1386888365,), (1386888368,), (1386888372,), (1386888377,), (1386888380,), (1386888396,), (1386888399,), (1386888402,), (1386888405,), (1386888408,), (1386888424,), (1386888426,), (1386888430,), (1386888432,), (1386888433,), (1386888447,), (1386888451,), (1386888454,), (1386888457,), (1386888461,), (1386888464,), (1386888479,), (1386888481,), (1386888483,), (1386888486,), (1386888489,), (1386888491,), (1386888494,), (1386888497,), (1386888499,), (1386888501,), (1386888511,), (1386888514,), (1386888517,), (1386888521,), (1386888525,), (1386888544,), (1386888546,), (1386888548,), (1386888551,), (1386888556,), (1386888580,), (1386888584,), (1386888591,), (1386888594,), (1386888606,), (1386888612,), (1386888616,), (1386888620,), (1386888623,), (1386888626,), (1386888638,), (1386888641,), (1386888644,), (1386888648,), (1386888653,), (1386888656,), (1386888678,), (1386889632,), (1386889660,), (1386889691,), (1386889695,), (1386889699,), (1386889735,), (1386889739,), (1386889743,), (1386889744,), (1386889747,), (1386889772,), (1386889774,), (1386889777,), (1386889781,), (1386889785,), (1386889789,), (1386889815,), (1386889819,), (1386889825,), (1386889828,), (1386889846,), (1386889850,), (1386889854,), (1386889859,), (1386889864,), (1386889868,), (1386889888,), (1386889890,), (1386889891,), (1386889893,), (1386889895,), (1386889899,), (1386889918,), (1386889922,), (1386889925,), (1386889928,), (1386889956,), (1386889960,), (1386889963,), (1386889967,), (1386889971,), (1386889975,), (1386889992,), (1386890028,), (1386890032,), (1386890037,), (1386890039,), (1386890044,), (1386890070,), (1386890076,), (1386890080,), (1386890085,), (1386890118,), (1386890124,), (1386890130,), (1386890136,), (1386890140,), (1386890145,), (1386890169,), (1386891885,), (1386891919,), (1386891924,), (1386891926,), (1386891928,), (1386891931,), (1386891945,), (1386891947,), (1386892029,), (1386892034,), (1386892037,), (1386892065,), (1386892061,), (1386892128,), (1386892276,), (1386892279,), (1386892281,), (1386892285,), (1386892305,), (1386892307,), (1386892310,), (1386892313,), (1386892316,), (1386892330,), (1386892337,), (1386892338,), (1386892340,), (1386892342,), (1386892345,), (1386892356,), (1386892358,), (1386892449,), (1386892849,), (1386892851,), (1386892853,), (1386892871,), (1386892872,), (1386892874,), (1386892876,), (1386892882,), (1386892885,), (1386892907,), (1386892911,), (1386892914,), (1386892917,), (1386892936,), (1386892938,), (1386892940,), (1386892942,), (1386892945,), (1386892962,), (1386892965,), (1386892968,), (1386892971,), (1386892973,), (1386892988,), (1386892989,), (1386892990,), (1386892992,), (1386893010,), (1386893014,), (1386893017,), (1386893021,), (1386893025,), (1386893029,), (1386893045,), (1386893047,), (1386893049,), (1386893050,), (1386893053,), (1386893074,), (1386893079,), (1386893082,), (1386893086,), (1386893091,), (1386893111,), (1386893115,), (1386893119,), (1386893122,), (1386893138,), (1386893144,), (1386893146,), (1386893148,), (1386893151,), (1386893154,), (1386893167,), (1386893169,), (1386893172,), (1386893176,), (1386893178,), (1386893182,), (1386893198,), (1386893206,), (1386893211,), (1386893214,), (1386893217,), (1386893232,), (1386893236,), (1386893238,), (1386893241,), (1386893245,), (1386893248,), (1386893273,), (1386893276,), (1386893325,), (1386908539,), (1386908544,), (1386908549,), (1386908552,), (1386908553,), (1386909801,), (1386909836,), (1386909842,), (1386910212,), (1386910274,), (1386910277,), (1386910280,), (1386910282,), (1386910462,), (1386910465,), (1386910468,), (1386910469,), (1386910505,), (1386910507,), (1386910509,), (1386910511,), (1386910515,), (1386910522,), (1386910539,), (1386910545,), (1386910550,), (1386910946,), (1386910950,), (1386911121,), (1386911141,), (1386911143,), (1386911145,), (1386911147,), (1386911285,), (1386911288,), (1386911301,), (1386911306,), (1386911486,), (1386911566,), (1386911815,), (1386911888,), (1386911911,), (1386911915,), (1386912114,), (1386912117,), (1386912119,), (1386912122,), (1386912243,), (1386912306,), (1386912310,), (1386912346,), (1386912354,), (1386920013,), (1386886587,), (1386886592,), (1386886594,), (1386886596,), (1386886613,), (1386886616,), (1386886620,), (1386886626,), (1386886631,), (1386886635,), (1386886646,), (1386886650,), (1386886653,), (1386886657,), (1386886678,), (1386886682,), (1386886686,), (1386886690,), (1386886694,), (1386886696,), (1386886703,), (1386886705,), (1386886707,), (1386886710,), (1386886713,), (1386886734,), (1386886735,), (1386886738,), (1386886764,), (1386886769,), (1386886772,), (1386886775,), (1386886780,), (1386886793,), (1386886796,), (1386886798,), (1386886804,), (1386886815,), (1386886817,), (1386886819,), (1386886822,), (1386886838,), (1386886845,), (1386886848,), (1386886852,), (1386886855,), (1386886864,), (1386886867,), (1386886870,), (1386886872,), (1386886875,), (1386886877,), (1386886895,), (1386886899,), (1386886900,), (1386886901,), (1386886924,), (1386886927,), (1386886930,), (1386886933,), (1386886935,), (1386886938,), (1386886947,), (1386886950,), (1386886953,), (1386886957,), (1386886979,), (1386886982,), (1386886985,), (1386886986,), (1386886988,), (1386887024,), (1386887009,), (1386887013,), (1386887015,), (1386887018,), (1386887021,), (1386887037,), (1386887040,), (1386887042,), (1386887044,), (1386887047,), (1386887065,), (1386887070,), (1386887074,), (1386887076,), (1386887094,), (1386887095,), (1386887096,), (1386887098,), (1386887101,), (1386887104,), (1386887121,), (1386887124,), (1386887129,), (1386887134,), (1386887137,), (1386887140,), (1386887145,), (1386887147,), (1386887148,), (1386887150,), (1386887153,), (1386887158,), (1386887167,), (1386887170,), (1386887174,), (1386887175,), (1386887183,), (1386887187,), (1386887190,), (1386887192,), (1386887194,), (1386887197,), (1386887211,), (1386887213,), (1386887217,), (1386887220,), (1386887237,), (1386887241,), (1386887244,), (1386887248,), (1386887252,), (1386887256,), (1386887280,), (1386887284,), (1386887286,), (1386887287,), (1386887289,), (1386887305,), (1386887308,), (1386887310,), (1386887315,), (1386887319,), (1386887336,), (1386887338,), (1386887340,), (1386887342,), (1386887345,), (1386887348,), (1386887362,), (1386887371,), (1386887374,), (1386887377,), (1386887380,), (1386887397,), (1386887398,), (1386887400,), (1386887403,), (1386887406,), (1386887407,), (1386887423,), (1386887426,), (1386887429,), (1386887431,), (1386887433,), (1386887434,), (1386887456,), (1386887453,), (1386887455,), (1386887477,), (1386887481,), (1386887484,), (1386887488,), (1386887492,), (1386887495,), (1386887509,), (1386887514,), (1386887518,), (1386887522,), (1386887527,), (1386887531,), (1386887541,), (1386887543,), (1386887545,), (1386887548,), (1386887552,), (1386887564,), (1386887571,), (1386887573,), (1386887575,), (1386887578,), (1386887579,), (1386887592,), (1386887596,), (1386887598,), (1386887618,), (1386887623,), (1386887627,), (1386887629,), (1386887631,), (1386887633,), (1386887644,), (1386887648,), (1386887651,), (1386887654,), (1386887658,), (1386887662,), (1386887686,), (1386887687,), (1386887688,), (1386887713,), (1386887717,), (1386887721,), (1386887726,), (1386887749,), (1386887752,), (1386887755,), (1386887759,), (1386887775,), (1386887776,), (1386887871,), (1386888668,), (1386888671,), (1386888675,), (1386888695,), (1386888697,), (1386888698,), (1386888700,), (1386888703,), (1386888718,), (1386888723,), (1386888727,), (1386888761,), (1386888765,), (1386888767,), (1386888768,), (1386888772,), (1386888776,), (1386888789,), (1386888790,), (1386888793,), (1386888797,), (1386888800,), (1386888803,), (1386888808,), (1386888809,), (1386888810,), (1386888811,), (1386888815,), (1386888823,), (1386888828,), (1386888832,), (1386888834,), (1386888844,), (1386888846,), (1386888847,), (1386888849,), (1386888852,), (1386888869,), (1386888872,), (1386888875,), (1386888877,), (1386888889,), (1386888892,), (1386888895,), (1386888899,), (1386888903,), (1386888932,), (1386888936,), (1386888939,), (1386888944,), (1386888967,), (1386889014,), (1386889047,), (1386889051,), (1386889053,), (1386889056,), (1386889060,), (1386889076,), (1386889078,), (1386889081,), (1386889084,), (1386889087,), (1386889088,), (1386889109,), (1386889102,), (1386889105,), (1386889107,), (1386889134,), (1386889137,), (1386889141,), (1386889165,), (1386889168,), (1386889170,), (1386889172,), (1386889175,), (1386889177,), (1386889193,), (1386889196,), (1386889199,), (1386889203,), (1386889224,), (1386889228,), (1386889230,), (1386889233,), (1386889238,), (1386889266,), (1386889270,), (1386889273,), (1386889276,), (1386889280,), (1386889284,), (1386889307,), (1386889312,), (1386889315,), (1386889317,), (1386889320,), (1386889347,), (1386889352,), (1386889357,), (1386889362,), (1386889366,), (1386889449,), (1386889454,), (1386889484,), (1386889488,), (1386889491,), (1386889493,), (1386889497,), (1386889501,), (1386889528,), (1386889532,), (1386889535,), (1386889537,), (1386889539,), (1386889566,), (1386889569,), (1386889572,), (1386889600,), (1386889604,), (1386889606,), (1386889636,), (1386934434,), (1386934714,), (1386934768,), (1386934771,), (1386934773,), (1386934774,), (1386934777,), (1386934942,), (1386934972,), (1386934996,), (1386935001,), (1386935076,), (1386935080,), (1386935295,), (1386935299,), (1386935334,), (1386935337,), (1386935341,), (1386935344,), (1386935357,), (1386935361,), (1386935365,), (1386935369,), (1386935373,), (1386935420,), (1386935426,), (1386935429,), (1386935431,), (1386935434,), (1386935437,), (1386935461,), (1386935464,), (1386935646,), (1386935856,), (1386935871,), (1386935873,), (1386935876,), (1386935880,), (1386935890,), (1386935929,), (1386935933,), (1386935935,), (1386935937,), (1386935939,), (1386935940,), (1386937204,), (1386937530,), (1386937581,), (1386937830,), (1386937834,), (1386937842,), (1386937844,), (1386937814,), (1386937817,), (1386937819,), (1386937823,), (1386937868,), (1386937872,), (1386937875,), (1386937879,), (1386937896,), (1386937899,), (1386937901,), (1386937903,), (1386937906,), (1386937913,), (1386937947,), (1386937951,), (1386937953,), (1386937963,), (1386937970,), (1386938005,), (1386938008,), (1386938011,), (1386938373,), (1386938405,), (1386938427,), (1386938433,), (1386938437,), (1386938747,), (1386939573,), (1386939578,), (1386939590,), (1386939591,), (1386939593,), (1386939596,), (1386939974,), (1386939983,), (1386940099,), (1386940241,), (1386940364,), (1386940368,), (1386940373,), (1386940441,), (1386940444,), (1386940446,), (1386940478,), (1386940481,), (1386940482,), (1386940483,), (1386940504,), (1386940547,), (1386940550,), (1386940553,), (1386940556,), (1386940961,), (1386940992,), (1386941007,), (1386941010,), (1386941012,), (1386941197,), (1386941200,), (1386941203,), (1386941207,), (1386941215,), (1386941217,), (1386941235,), (1386941238,), (1386941239,), (1386941241,), (1386941245,), (1386941248,), (1386941260,), (1386941264,), (1386941614,), (1386941873,), (1386941847,), (1386941866,), (1386941870,), (1386941937,), (1386941950,), (1386941951,), (1386941952,), (1386941954,), (1386942276,), (1386942279,), (1386942282,), (1386942370,), (1386942477,), (1386942480,), (1386942483,), (1386942487,), (1386942511,), (1386942825,), (1386942827,), (1386942829,), (1386942831,), (1386942933,), (1386943012,), (1386943054,), (1386943441,), (1386943445,), (1386943447,), (1386943482,), (1386943484,), (1386943486,), (1386943489,), (1386943512,), (1386943516,), (1386943517,), (1386943519,), (1386943521,), (1386943523,), (1386943909,), (1386943919,), (1386943921,), (1386943923,), (1386943925,), (1386943939,), (1386943943,), (1386943946,), (1386943949,), (1386943951,), (1386943953,), (1386943964,), (1386943965,), (1386943966,), (1386944327,), (1386944330,), (1386944380,), (1386944408,), (1386944411,), (1386944900,), (1386944904,), (1386944921,), (1386945254,), (1386945291,), (1386945293,), (1386945295,), (1386945297,), (1386945347,), (1386945351,), (1386945353,), (1386945356,), (1386945359,), (1386945368,), (1386945404,), (1386945412,), (1386945415,), (1386945418,), (1386945422,), (1386945780,), (1386945782,), (1386945783,), (1386945784,), (1386945807,), (1386945810,), (1386945812,), (1386945814,), (1386945829,), (1386945831,), (1386945832,), (1386945834,), (1386945838,), (1386945841,), (1386945877,), (1386945880,), (1386945882,), (1386945904,), (1386945907,), (1386945910,), (1386946010,), (1386946588,), (1386946621,), (1386946625,), (1386946627,), (1386946771,), (1386946864,), (1386946953,), (1386946954,), (1386946977,), (1386946979,), (1386947350,), (1386947708,), (1386947636,), (1386947678,), (1386947681,), (1386947748,), (1386947754,), (1386947755,), (1386947756,), (1386947758,), (1386948084,), (1386948087,), (1386948089,), (1386948180,), (1386948212,), (1386948291,), (1386948329,), (1386948330,), (1386948355,), (1386948360,), (1386948362,), (1386948364,), (1386948366,), (1386948692,), (1386948695,), (1386948698,), (1386948826,), (1386948902,), (1386948913,), (1386948934,), (1386948937,), (1386948939,), (1386948941,), (1386948951,), (1386948954,), (1386948958,), (1386948968,), (1386948972,), (1386949023,), (1386949026,), (1386949330,), (1386949332,), (1386949497,), (1386949502,), (1386949504,), (1386949525,), (1386949527,), (1386949539,), (1386949586,), (1386949597,), (1386949608,), (1386949653,), (1386949669,), (1386949671,), (1386949673,), (1386950288,), (1386950292,), (1386950295,), (1386950577,), (1386950584,), (1386950586,), (1386950700,), (1386950702,), (1386950704,), (1386951421,), (1386952364,), (1386952409,), (1386952411,), (1386950694,), (1386950697,), (1386950699,), (1386952421,), (1386952423,), (1386953378,), (1386953396,), (1386953407,), (1386953413,), (1386953418,), (1386953479,), (1386953483,), (1386953485,), (1386953487,), (1386953489,), (1386953513,), (1386953518,), (1386953521,), (1386953522,), (1386953602,), (1386953608,), (1386953611,), (1386953614,), (1386953617,), (1386953650,), (1386953655,), (1386953670,), (1386953673,), (1386953676,), (1386953710,), (1386953714,), (1386953718,), (1386953720,), (1386953744,), (1386953747,), (1386953750,), (1386953824,), (1386953828,), (1386953830,), (1386954463,), (1386954647,), (1386954648,), (1386954769,), (1386955025,), (1386955039,), (1386955100,), (1386955104,), (1386955106,), (1386955133,), (1386955136,), (1386955571,), (1386955769,), (1386955759,), (1386955762,), (1386955765,), (1386955791,), (1386955802,), (1386955813,), (1386955822,), (1386955825,), (1386955835,), (1386955839,), (1386955843,), (1386955845,), (1386955872,), (1386955876,), (1386955880,), (1386955900,), (1386955904,), (1386955908,), (1386955926,), (1386955930,), (1386955933,), (1386956050,), (1386956059,), (1386956122,), (1386956674,), (1386956678,), (1386956820,), (1386956826,), (1386956829,), (1386956832,), (1386957209,), (1386957230,), (1386957232,), (1386957297,), (1386957477,), (1386957950,), (1386958259,), (1386958390,), (1386958393,), (1386958394,), (1386958396,), (1386958399,), (1386958913,), (1386958916,), (1386958919,), (1386958922,), (1386959242,), (1386959246,), (1386959248,), (1386959251,), (1386959253,), (1386959255,), (1386959261,), (1386959281,), (1386959282,), (1386959307,), (1386959297,), (1386959301,), (1386959303,), (1386959476,), (1386959493,), (1386959496,), (1386959560,), (1386959596,), (1386959638,), (1386959641,), (1386959644,), (1386959655,), (1386959694,), (1386959697,), (1386959700,), (1386959703,), (1386959706,), (1386960601,), (1386960605,), (1386960645,), (1386960664,), (1386961011,), (1386961015,), (1386961201,), (1386961205,), (1386961207,), (1386961441,), (1386961445,), (1386961448,), (1386961451,), (1386961885,), (1386961899,), (1386961902,), (1386961904,), (1386962002,), (1386962075,), (1386962078,), (1386962080,), (1386962110,), (1386962113,), (1386962115,), (1386962773,), (1386962802,), (1386962808,), (1386962810,), (1386962912,), (1386962903,), (1386962906,), (1386962908,), (1386962967,), (1386962982,), (1386963142,), (1386963146,), (1386963196,), (1386963323,), (1386963328,), (1386963377,), (1386963461,), (1386963468,), (1386963479,), (1386963520,), (1386963521,), (1386963522,), (1386963524,), (1386963881,), (1386963886,), (1386963889,), (1386963893,), (1386963896,), (1386964068,), (1386964071,), (1386964073,), (1386964075,), (1386964094,), (1386964097,), (1386964099,), (1386964103,), (1386964130,), (1386964134,), (1386964137,), (1386964140,), (1386964144,), (1386964659,), (1386964682,), (1386964701,), (1386964703,), (1386964874,), (1386964925,), (1386964941,), (1386964950,), (1386964990,), (1386965002,), (1386965058,), (1386965061,), (1386965785,), (1386965791,), (1386965797,), (1386965802,), (1386965883,), (1386965888,), (1386965891,), (1386965902,), (1386965920,), (1386965926,), (1386965931,), (1386965964,), (1386965973,), (1386966900,), (1386965867,), (1386965873,), (1386965877,), (1386966845,), (1386966894,), (1386966897,), (1386967080,), (1386967268,), (1386967270,), (1386967273,), (1386967548,), (1386967933,), (1386967937,), (1386967941,), (1386968009,), (1386968014,), (1386968017,), (1386968018,), (1386968021,), (1386968045,), (1386968049,), (1386968647,), (1386968656,), (1386968804,), (1386968812,), (1386968844,), (1386968874,), (1386968904,), (1386968908,), (1386968911,), (1386968913,), (1386968917,), (1386968935,), (1386968937,), (1386968939,), (1386968942,), (1386969529,), (1386969532,), (1386969534,), (1386969759,), (1386969812,), (1386969844,), (1386969849,), (1386970340,), (1386970352,), (1386970354,), (1386970358,), (1386970362,), (1386970379,), (1386970451,), (1386970459,), (1386970470,), (1386970489,), (1386970491,), (1386970492,), (1386970494,), (1386970496,), (1386970512,), (1386970517,), (1386970519,), (1386970522,), (1386970526,), (1386971320,), (1386971192,), (1386971316,), (1386971709,), (1386971712,), (1386971829,), (1386971832,), (1386971923,), (1386971926,), (1386972462,), (1386972621,), (1386972645,), (1386972672,), (1386972677,), (1386972856,), (1386972857,), (1386972866,), (1386972935,), (1386972957,), (1386972960,), (1386972966,), (1386972967,), (1386972968,), (1386972996,), (1386973094,), (1386973107,), (1386973113,), (1386973132,), (1386973149,), (1386973157,), (1386973158,), (1386973160,), (1386973161,), (1386973163,), (1386973165,), (1386973167,), (1386973168,), (1386973172,), (1386973173,), (1386973185,), (1386973189,), (1386973191,), (1386973193,), (1386973543,), (1386973546,), (1386973648,), (1386973704,), (1386973709,), (1386973724,), (1386973728,), (1386973735,), (1386973755,), (1386973900,), (1386973903,), (1386973906,), (1386973966,), (1386973983,), (1386974016,), (1386974037,), (1386974077,), (1386974081,), (1386974084,), (1386974086,), (1386974089,), (1386974091,), (1386974203,), (1386974206,), (1386974209,), (1386976025,), (1386976009,), (1386976019,), (1386976339,), (1386976343,), (1386976386,), (1386976388,), (1386976432,), (1386976435,), (1386976479,), (1386976481,), (1386976502,), (1386976506,), (1386976509,), (1386977428,), (1386977344,), (1386977370,), (1386977410,), (1386977412,), (1386977424,), (1386977590,), (1386977593,), (1386977604,), (1386977868,), (1386977966,), (1386978090,), (1386978095,), (1386978104,), (1386978125,), (1386978128,), (1386978150,), (1386978152,), (1386978154,), (1386978525,), (1386978528,), (1386978532,), (1386978646,), (1386978711,), (1386978743,), (1386978754,), (1386978758,), (1386978923,), (1386978953,), (1386978957,), (1386978959,), (1386979087,), (1386979225,), (1386979226,), (1386979227,), (1386979229,), (1386979280,), (1386979289,), (1386979293,), (1386979297,), (1386979300,), (1386979302,), (1386979367,), (1386979369,), (1386979371,), (1386979373,), (1386979375,), (1386979580,), (1386979592,), (1386979598,), (1386979794,), (1386979798,), (1386979800,), (1386979803,), (1386979806,), (1386979845,), (1386980044,), (1386980607,), (1386980723,), (1386980728,), (1386980755,), (1386982809,), (1386982878,), (1386982917,), (1386982918,), (1386982919,), (1386982939,), (1386982963,), (1386983256,), (1386983257,), (1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,), (1386985122,), (1386985126,), (1386985130,), (1386985135,), (1386985140,), (1386985155,), (1386985158,), (1386985162,), (1386985367,), (1386985229,), (1386985297,), (1386985310,), (1386985328,), (1386985353,), (1386985609,), (1386985613,), (1386985645,), (1386985960,), (1386985964,), (1386985983,), (1386986102,), (1386986110,), (1386986301,), (1386986306,), (1386986348,), (1386986353,), (1386986472,), (1386986489,), (1386986518,), (1386986533,), (1386986631,), (1386986678,), (1386986689,), (1386986743,), (1386986745,), (1386986762,), (1386987384,), (1386987389,), (1386987412,), (1386987428,), (1386987437,), (1386987526,), (1386987530,), (1386987559,), (1386987634,), (1386987636,), (1386987637,), (1386987836,), (1386987851,), (1386987854,), (1386988036,), (1386988045,), (1386988050,), (1386988121,), (1386988124,), (1386996060,), (1386995771,), (1386996039,), (1386996059,), (1386996310,), (1386996325,), (1386997088,), (1386997091,), (1386997215,), (1386997233,), (1386997238,), (1386997242,), (1386997248,), (1386997253,), (1386997264,), (1386997268,), (1386997272,), (1386997276,), (1386997451,), (1386997463,), (1386997491,), (1386997497,), (1386997502,), (1386997554,), (1386997559,), (1386997560,), (1386997562,), (1386997565,), (1386997606,), (1386997610,), (1386997614,), (1386997619,), (1386997653,), (1386997663,), (1386997672,), (1386997678,), (1386997689,), (1386997696,), (1386997721,), (1386997736,), (1386997743,), (1386997757,), (1386997851,), (1386997862,), (1386997866,), (1386997892,), (1386997895,), (1386997933,), (1386997970,), (1386997982,), (1386997996,), (1386998141,), (1386998246,), (1386998270,), (1386998273,), (1386998274,), (1386998277,), (1386998383,), (1386998396,), (1386998401,), (1386998405,), (1386998409,), (1386998415,), (1386998619,), (1386998670,), (1386998661,), (1386998665,), (1386998669,), (1386998734,), (1386998765,), (1386998769,), (1386998771,), (1386998773,), (1386999138,), (1386999142,), (1386999144,), (1386999146,), (1386999148,), (1386999150,), (1386999171,), (1386999180,), (1386999182,), (1386999184,), (1386999260,), (1386999263,), (1386999265,), (1386999268,), (1386999272,), (1386999275,), (1386999305,), (1386999308,), (1386999320,), (1386999324,), (1386999398,), (1386999696,), (1386999702,), (1386999706,), (1386999709,), (1386999712,), (1386999722,), (1386999725,), (1386999728,), (1386999731,), (1386999734,), (1386999760,), (1386999763,), (1386999764,), (1386999767,), (1386999788,), (1386999791,), (1386999797,), (1386999801,), (1386999823,), (1386999826,), (1386999851,), (1386999855,), (1386999858,), (1386999861,), (1386999863,), (1386999865,), (1386999927,), (1386999929,), (1386999930,), (1386999985,), (1386999990,), (1387000001,), (1387000005,), (1387000009,), (1387000013,), (1387000036,), (1387000073,), (1387000083,), (1387000085,), (1387000133,), (1387000138,), (1387000140,), (1387000142,), (1387000147,), (1387000149,), (1387000311,), (1387000263,), (1387000273,), (1387000282,), (1387000347,), (1387000348,), (1387000350,), (1387000352,), (1387000355,), (1387000358,), (1387000367,), (1387000370,), (1387000372,), (1387000669,), (1387000705,), (1387000741,), (1387000745,), (1387000759,), (1387000763,), (1387000832,), (1387000835,), (1387000838,), (1387000841,), (1387000867,), (1387000869,), (1387000871,), (1387000875,), (1387000878,), (1387000882,), (1387000977,), (1387001031,), (1387001039,), (1387001067,), (1387001115,), (1387001119,), (1387001120,), (1387001121,), (1387001158,), (1387001160,), (1387001162,), (1387001192,), (1387001196,), (1387001198,), (1387001201,), (1387001205,), (1387001217,), (1387001220,), (1387001222,), (1387001242,), (1387001263,), (1387001364,), (1387001378,), (1387001381,), (1387001437,), (1387001456,), (1387001464,), (1387001469,), (1387001473,), (1387001476,), (1387001480,), (1387001525,), (1387001513,), (1387001516,), (1387001518,), (1387001521,), (1387001545,), (1387001559,), (1387001562,), (1387001564,), (1387001592,), (1387001597,), (1387001600,), (1387001603,), (1387001645,), (1387001651,), (1387001667,), (1387001670,), (1387001674,), (1387001681,), (1387001698,), (1387001703,), (1387001707,), (1387001711,), (1387001751,), (1387002225,), (1387002278,), (1387002288,), (1387002290,), (1387002300,), (1387002323,), (1387002375,), (1387002527,), (1387002599,), (1387002604,), (1387002631,), (1387002633,), (1387002636,), (1387002694,), (1387002707,), (1387002737,), (1387002740,), (1387002743,), (1387003117,), (1387003121,), (1387003146,), (1387003148,), (1387003151,), (1387003499,), (1387003502,), (1387003505,), (1387003509,), (1387003512,), (1387003613,), (1387003712,), (1387003715,), (1387004246,), (1387004565,), (1387004567,), (1387004569,), (1387004572,), (1387003696,), (1387003699,), (1387003703,), (1387004590,), (1387004729,), (1387004796,), (1387004850,), (1387004858,), (1387004922,), (1387004925,), (1387004928,), (1387004931,), (1387004934,), (1387004955,), (1387004976,), (1387004983,), (1387004987,), (1387004995,), (1387005020,), (1387005430,), (1387005834,), (1387005836,), (1387005838,), (1387006180,), (1387006281,), (1387006331,), (1387006559,), (1387006578,), (1387006584,), (1387006586,), (1387006589,), (1387006592,), (1387006619,), (1387006621,), (1387006630,), (1387006660,), (1387006673,), (1387006749,), (1387006796,), (1387006799,), (1387006827,), (1387006836,), (1387006837,), (1387006911,), (1387006912,), (1387006914,), (1387006916,), (1387006919,), (1387006922,), (1387006980,), (1387006986,), (1387006987,), (1387006989,), (1387006991,), (1387007051,), (1387007059,), (1387007072,), (1387007086,), (1387007095,), (1387007113,), (1387007175,), (1387007178,), (1387007219,), (1387007221,), (1387007225,), (1387007242,), (1387007257,), (1387007268,), (1387007278,), (1387007298,), (1387007300,), (1387007303,), (1387007313,), (1387007325,), (1387007329,), (1387007332,), (1387007337,), (1387007341,), (1387007343,), (1387007346,), (1387007350,), (1387007355,), (1387007363,), (1387007465,), (1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,), (1387009409,), (1387009412,), (1387009414,), (1387009418,), (1387009422,), (1387009448,), (1387009451,), (1387009470,), (1387009477,), (1387009547,), (1387009550,), (1387009552,), (1387009555,), (1387009560,), (1387009565,), (1387009597,), (1387009611,), (1387009615,), (1387009618,), (1387009680,), (1387009684,), (1387009687,), (1387009689,), (1387009692,), (1387009694,), (1387009704,), (1387009706,), (1387009708,), (1387009714,), (1387009718,), (1387009749,), (1387009753,), (1387009757,), (1387009760,), (1387009787,), (1387010110,), (1387010131,), (1387010139,), (1387010153,), (1387010160,), (1387010188,), (1387010190,), (1387010192,), (1387010195,), (1387010252,), (1387010318,), (1387010339,), (1387010342,), (1387010344,), (1387010346,), (1387010347,), (1387010349,), (1387010371,), (1387010374,), (1387010377,), (1387010380,), (1387010381,), (1387010472,), (1387010496,), (1387010510,), (1387010529,), (1387010533,), (1387010568,), (1387010581,), (1387010602,), (1387010907,), (1387010909,), (1387010943,), (1387010947,), (1387010976,), (1387010981,), (1387011082,), (1387011104,), (1387011110,), (1387011114,), (1387011117,), (1387011152,), (1387011134,), (1387011137,), (1387011140,), (1387011143,), (1387011147,), (1387011225,), (1387011228,), (1387011230,), (1387011233,), (1387011236,), (1387011237,), (1387011458,), (1387011461,), (1387011471,), (1387011474,), (1387011600,), (1387011606,), (1387011610,), (1387011614,), (1387011679,), (1387011683,), (1387011721,), (1387011724,), (1387011732,), (1387011735,), (1387011736,), (1387011738,), (1387011744,), (1387011746,), (1387011748,), (1387011788,), (1387011960,), (1387011963,), (1387011964,), (1387012002,), (1387012005,), (1387012008,), (1387012030,), (1387012031,), (1387012034,), (1387012035,), (1387012037,), (1387012039,), (1387012041,), (1387012043,), (1387012045,), (1387012050,), (1387012056,), (1387012058,), (1387012072,), (1387012073,), (1387012076,), (1387012078,), (1387012088,), (1387012095,), (1387012100,), (1387012103,), (1387012108,), (1387012111,), (1387012114,), (1387012117,), (1387012150,), (1387012154,), (1387012158,), (1387012178,), (1387012181,), (1387012184,), (1387012199,), (1387012202,), (1387012203,), (1387012205,), (1387012208,), (1387012237,), (1387012305,), (1387012309,), (1387012314,), (1387012323,), (1387012371,), (1387012375,), (1387012378,), (1387012397,), (1387012399,), (1387012420,), (1387013739,), (1387013748,), (1387013825,), (1387013848,), (1387013984,), (1387013995,), (1387014001,), (1387014004,), (1387014023,), (1387014032,), (1387014038,), (1387014042,), (1387014080,), (1387014088,), (1387013933,), (1387013940,), (1387013944,), (1387013962,), (1387014050,), (1387014052,), (1387014055,), (1387014056,), (1387014057,), (1387014058,), (1387014065,), (1387014068,), (1387014071,), (1387014074,), (1387014102,), (1387014105,), (1387014110,), (1387014112,), (1387014115,), (1387014136,), (1387014163,), (1387014167,), (1387014169,), (1387014171,), (1387014186,), (1387014233,), (1387014261,), (1387014263,), (1387014266,), (1387014306,), (1387014310,), (1387014419,), (1387014430,), (1387014574,), (1387014582,), (1387014640,), (1387014644,), (1387014647,), (1387014649,), (1387014652,), (1387014655,), (1387014688,), (1387014691,), (1387014692,), (1387014781,), (1387014784,), (1387014787,), (1387014791,), (1387014795,), (1387014798,), (1387014820,), (1387014824,), (1387014839,), (1387014854,), (1387014969,), (1387014972,), (1387014974,), (1387014977,), (1387014996,), (1387015008,), (1387015026,), (1387015030,), (1387015046,), (1387015068,), (1387015075,), (1387015146,), (1387015151,), (1387015153,), (1387015154,), (1387015175,), (1387015177,), (1387015178,), (1387015181,), (1387015185,), (1387015387,), (1387015413,), (1387015460,), (1387015505,), (1387015694,), (1387015703,), (1387015362,), (1387015375,), (1387015379,), (1387015382,), (1387015385,), (1387015747,), (1387015748,), (1387015753,), (1387015754,), (1387015796,), (1387015797,), (1387015801,), (1387015802,), (1387015805,), (1387015806,), (1387015815,), (1387015818,), (1387015820,), (1387015937,), (1387015942,), (1387015945,), (1387015966,), (1387015970,), (1387015973,), (1387015976,), (1387016001,), (1387016004,), (1387016007,), (1387016009,), (1387016014,), (1387016016,), (1387016039,), (1387016041,), (1387016043,), (1387016047,), (1387016049,), (1387016052,), (1387016092,), (1387016106,), (1387016114,), (1387016122,), (1387016125,), (1387016144,), (1387016147,), (1387016149,), (1387016151,), (1387016188,), (1387016319,), (1387016321,), (1387016322,), (1387016324,), (1387016432,), (1387016439,), (1387016441,), (1387016444,), (1387016448,), (1387016480,), (1387016484,), (1387016485,), (1387016488,), (1387016491,), (1387016494,), (1387016514,), (1387016517,), (1387016521,), (1387016524,), (1387016583,), (1387016586,), (1387016611,), (1387016616,), (1387016633,), (1387016647,), (1387016703,), (1387016707,), (1387016711,), (1387016715,), (1387016718,), (1387016729,), (1387016731,), (1387016734,), (1387016737,), (1387016746,), (1387016752,), (1387016957,), (1387016930,), (1387016953,), (1387016954,), (1387017023,), (1387017033,), (1387017038,), (1387017041,), (1387017046,), (1387017049,), (1387017061,), (1387017070,), (1387017075,), (1387017087,), (1387017094,), (1387017182,), (1387017187,), (1387017191,), (1387017195,), (1387017198,), (1387017200,), (1387017214,), (1387017220,), (1387017224,), (1387017227,), (1387017230,), (1387017264,), (1387017267,), (1387017295,), (1387017305,), (1387017312,), (1387017316,), (1387017320,), (1387017323,), (1387017353,), (1387017376,), (1387017379,), (1387017382,), (1387017387,), (1387017391,), (1387017428,), (1387017432,), (1387017435,), (1387017437,), (1387017482,), (1387017524,), (1387017584,), (1387017587,), (1387017590,), (1387017724,), (1387017734,), (1387017738,), (1387017741,), (1387017997,), (1387022909,), (1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30092025': {'nb_upload': 6, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27367917]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387023629, 1387023612, 1387023562] map_info['map_portfolio_photo'] : {27367917: [1387023629, 1387023612, 1387023562, 1387022994, 1387022933, 1387022931]} final : True mtd_id 4302 list_pids : [1387023629, 1387023612, 1387023562] Looping around the photos to save general results len do output : 1 /27367917Didn'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, '3796773') ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773') ('4302', None, None, None, None, None, None, None, '3796773') ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '27367917', 'None', None, None, None, None, '3796773'), ('4302', '27367917', '1387023629', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023612', None, None, None, None, None, '3796773'), ('4302', '27367917', '1387023562', None, None, None, None, None, '3796773')] time used for this insertion : 0.039426326751708984 save_final save missing photos in datou_result : time spend for datou_step_exec : 11.431668043136597 time spend to save output : 0.03961586952209473 total time spend for step 5 : 11.471283912658691 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 (3796773) 2.03user 2.45system 0:22.43elapsed 19%CPU (0avgtext+0avgdata 157956maxresident)k 1040inputs+2808outputs (10major+63768minor)pagefaults 0swaps