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 : 2473090 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 (3532451) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3532451) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976961 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3532451'] with mtr_portfolio_ids : ['25976961'] and first list_photo_ids : [] new path : /proc/2473090/ Name: python3 Umask: 0002 State: R (running) Tgid: 2473090 Ngid: 0 Pid: 2473090 PPid: 2473088 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2473090 NSpid: 2473090 NSpgid: 2472699 NSsid: 2472699 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99188 kB VmRSS: 99188 kB RssAnon: 60156 kB RssFile: 39032 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 51 nonvoluntary_ctxt_switches: 121 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2473090', 'Ngid': '0', 'Pid': '2473090', 'PPid': '2473088', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2473090', 'NSpid': '2473090', 'NSpgid': '2472699', 'NSsid': '2472699', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99188 kB', 'VmRSS': '99188 kB', 'RssAnon': '60156 kB', 'RssFile': '39032 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '51', 'nonvoluntary_ctxt_switches': '121'} ('datou_batch_current', '2473090', '1107248', '0', '1107248', '866000', '99188', b'', 'marlene', '3532451') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25976961) 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 (3532451 ) ) 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 (25976961) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376980695, 'portfolio_id': 25976961}, {'photo_id': 1376980693, 'portfolio_id': 25976961}, {'photo_id': 1376980692, 'portfolio_id': 25976961}, {'photo_id': 1376980690, 'portfolio_id': 25976961}, {'photo_id': 1376980653, 'portfolio_id': 25976961}, {'photo_id': 1376980651, 'portfolio_id': 25976961}, {'photo_id': 1376980642, 'portfolio_id': 25976961}, {'photo_id': 1376980641, 'portfolio_id': 25976961}, {'photo_id': 1376980638, 'portfolio_id': 25976961}, {'photo_id': 1376980565, 'portfolio_id': 25976961}, {'photo_id': 1376980561, 'portfolio_id': 25976961}, {'photo_id': 1376980555, 'portfolio_id': 25976961}, {'photo_id': 1376980552, 'portfolio_id': 25976961}, {'photo_id': 1376980538, 'portfolio_id': 25976961}, {'photo_id': 1376980503, 'portfolio_id': 25976961}, {'photo_id': 1376980490, 'portfolio_id': 25976961}, {'photo_id': 1376980487, 'portfolio_id': 25976961}, {'photo_id': 1376980482, 'portfolio_id': 25976961}, {'photo_id': 1376980436, 'portfolio_id': 25976961}, {'photo_id': 1376980432, 'portfolio_id': 25976961}, {'photo_id': 1376980398, 'portfolio_id': 25976961}, {'photo_id': 1376980393, 'portfolio_id': 25976961}, {'photo_id': 1376980382, 'portfolio_id': 25976961}, {'photo_id': 1376980294, 'portfolio_id': 25976961}, {'photo_id': 1376980207, 'portfolio_id': 25976961}, {'photo_id': 1376980188, 'portfolio_id': 25976961}, {'photo_id': 1376980135, 'portfolio_id': 25976961}, {'photo_id': 1376980106, 'portfolio_id': 25976961}, {'photo_id': 1376980101, 'portfolio_id': 25976961}, {'photo_id': 1376980096, 'portfolio_id': 25976961}, {'photo_id': 1376980086, 'portfolio_id': 25976961}, {'photo_id': 1376980083, 'portfolio_id': 25976961}, {'photo_id': 1376980020, 'portfolio_id': 25976961}, {'photo_id': 1376980012, 'portfolio_id': 25976961}, {'photo_id': 1376980001, 'portfolio_id': 25976961}, {'photo_id': 1376979984, 'portfolio_id': 25976961}, {'photo_id': 1376979927, 'portfolio_id': 25976961}, {'photo_id': 1376979904, 'portfolio_id': 25976961}, {'photo_id': 1376979900, 'portfolio_id': 25976961}, {'photo_id': 1376979896, 'portfolio_id': 25976961}, {'photo_id': 1376979886, 'portfolio_id': 25976961}, {'photo_id': 1376979880, 'portfolio_id': 25976961}] map_portfolio_id_photo_id: {25976961: [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552, 1376980538, 1376980503, 1376980490, 1376980487, 1376980482, 1376980436, 1376980432, 1376980398, 1376980393, 1376980382, 1376980294, 1376980207, 1376980188, 1376980135, 1376980106, 1376980101, 1376980096, 1376980086, 1376980083, 1376980020, 1376980012, 1376980001, 1376979984, 1376979927, 1376979904, 1376979900, 1376979896, 1376979886, 1376979880]} ##### 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.015349626541137695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Aug 14 11:28:29 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 (25976961) 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 : 25976961 get user id for portfolio 25976961 get sub ptf for main ptf 25976961, type 3726 and hashtags ['mal_croppe', 'environnement', 'plastique', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'Carton_gris', 'papier', 'metal', 'autre_refus', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25976961 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','flou','Teint_Dans_La_Masse','Carton_brun','cartonnette','Carton_gris','papier','metal','autre_refus','kraft')) 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`=25976961 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','flou','Teint_Dans_La_Masse','Carton_brun','cartonnette','Carton_gris','papier','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25976961, 'sub_port_id': 25976983, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499537, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25976961, 'sub_port_id': 25976984, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499538, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'environnement': {'main_port_id': 25976961, 'sub_port_id': 25976985, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499539, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'autre_refus': {'main_port_id': 25976961, 'sub_port_id': 25976986, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499540, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'Carton_gris': {'main_port_id': 25976961, 'sub_port_id': 25976987, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499541, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'Carton_brun': {'main_port_id': 25976961, 'sub_port_id': 25976988, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499542, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'plastique': {'main_port_id': 25976961, 'sub_port_id': 25976989, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499543, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'mal_croppe': {'main_port_id': 25976961, 'sub_port_id': 25976990, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499544, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'metal': {'main_port_id': 25976961, 'sub_port_id': 25976991, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499545, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'papier': {'main_port_id': 25976961, 'sub_port_id': 25976992, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499546, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'cartonnette': {'main_port_id': 25976961, 'sub_port_id': 25976993, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499547, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}, 'kraft': {'main_port_id': 25976961, 'sub_port_id': 25976994, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499548, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976983 , 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=25976961 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 (25976983) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976984 , 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=25976961 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 (25976984) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976985 , 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=25976961 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 (25976985) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976986 , 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=25976961 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 (25976986) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976987 , 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=25976961 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 (25976987) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976988 , 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=25976961 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 (25976988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976989 , 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=25976961 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 (25976989) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976990 , 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=25976961 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 (25976990) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976991 , 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=25976961 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 (25976991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976992 , 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=25976961 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 (25976992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976993 , 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=25976961 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 (25976993) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25976994 , 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=25976961 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 (25976994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25976961) result : ((1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) 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 (1376979900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25976961 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','flou','Teint_Dans_La_Masse','Carton_brun','cartonnette','Carton_gris','papier','metal','autre_refus','kraft')) 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`=25976961 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','plastique','flou','Teint_Dans_La_Masse','Carton_brun','cartonnette','Carton_gris','papier','metal','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25976961, 'sub_port_id': 25976995, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499549, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25976961, 'sub_port_id': 25976996, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499550, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'environnement': {'main_port_id': 25976961, 'sub_port_id': 25976997, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499551, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'autre_refus': {'main_port_id': 25976961, 'sub_port_id': 25976998, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499552, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'Carton_gris': {'main_port_id': 25976961, 'sub_port_id': 25976999, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499553, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'Carton_brun': {'main_port_id': 25976961, 'sub_port_id': 25977000, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499554, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'plastique': {'main_port_id': 25976961, 'sub_port_id': 25977001, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499555, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'mal_croppe': {'main_port_id': 25976961, 'sub_port_id': 25977002, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499556, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'metal': {'main_port_id': 25976961, 'sub_port_id': 25977003, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499557, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'papier': {'main_port_id': 25976961, 'sub_port_id': 25977004, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499558, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'cartonnette': {'main_port_id': 25976961, 'sub_port_id': 25977005, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499559, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}, 'kraft': {'main_port_id': 25976961, 'sub_port_id': 25977006, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17499560, 'last_updated_at': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 14, 11, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 14, 11, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25976995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25976996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25976997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25976998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25976999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25977006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25976994 lien utilise dans velours : https://www.fotonower.com/velours/25976995,25976996,25976997,25976998,25976999,25977000,25977001,25977002,25977003,25977004,25977005,25977006?tags=flou,Teint_Dans_La_Masse,environnement,autre_refus,Carton_gris,Carton_brun,plastique,mal_croppe,metal,papier,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25976961]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] map_info['map_portfolio_photo'] : {25976961: [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552, 1376980538, 1376980503, 1376980490, 1376980487, 1376980482, 1376980436, 1376980432, 1376980398, 1376980393, 1376980382, 1376980294, 1376980207, 1376980188, 1376980135, 1376980106, 1376980101, 1376980096, 1376980086, 1376980083, 1376980020, 1376980012, 1376980001, 1376979984, 1376979927, 1376979904, 1376979900, 1376979896, 1376979886, 1376979880]} final : False mtd_id 4302 list_pids : [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] Looping around the photos to save general results len do output : 1 /25976961. 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, '3532451') ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25976961', "{'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994}", None, None, None, None, '3532451'), ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451')] time used for this insertion : 0.01752018928527832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41256117820739746 time spend to save output : 0.0178377628326416 total time spend for step 1 : 0.43039894104003906 step2:final Thu Aug 14 11:28:30 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 (25976961) 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 25976961 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376979904,1376979900,1376979896,1376979886,1376979880,1376980020,1376980012,1376980001,1376979927,1376979984,1376980106,1376980101,1376980096,1376980086,1376980083,1376980135,1376980207,1376980188,1376980294,1376980398,1376980393,1376980382,1376980436,1376980432,1376980503,1376980490,1376980487,1376980482,1376980565,1376980561,1376980555,1376980552,1376980538,1376980653,1376980651,1376980642,1376980641,1376980638,1376980695,1376980693,1376980692,1376980690); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25976961]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} new output for save of step final : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] map_info['map_portfolio_photo'] : {25976961: [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552, 1376980538, 1376980503, 1376980490, 1376980487, 1376980482, 1376980436, 1376980432, 1376980398, 1376980393, 1376980382, 1376980294, 1376980207, 1376980188, 1376980135, 1376980106, 1376980101, 1376980096, 1376980086, 1376980083, 1376980020, 1376980012, 1376980001, 1376979984, 1376979927, 1376979904, 1376979900, 1376979896, 1376979886, 1376979880]} final : False mtd_id 4302 list_pids : [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] Looping around the photos to save general results len do output : 13 /1376980695.Didn't retrieve data . /1376980693.Didn't retrieve data . /1376980692.Didn't retrieve data . /1376980690.Didn't retrieve data . /1376980653.Didn't retrieve data . /1376980651.Didn't retrieve data . /1376980642.Didn't retrieve data . /1376980641.Didn't retrieve data . /1376980638.Didn't retrieve data . /1376980565.Didn't retrieve data . /1376980561.Didn't retrieve data . /1376980555.Didn't retrieve data . /1376980552.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, '3532451') ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '25976961', '1376980695', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980693', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980692', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980690', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980653', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980651', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980642', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980641', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980638', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980565', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980561', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980555', '0.0', None, None, None, None, '3532451'), ('4302', '25976961', '1376980552', '0.0', None, None, None, None, '3532451')] time used for this insertion : 0.01727914810180664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05117917060852051 time spend to save output : 0.01799297332763672 total time spend for step 2 : 0.06917214393615723 step3:velours_tree Thu Aug 14 11:28:30 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 : {25976961: [{'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994}]} input_args_next_step : {25976961: ()} output_args : {25976961: [{'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994}]} args : 25976961 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25976961) 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([25976961]) 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.32887935638427734 time spend to save output : 6.866455078125e-05 total time spend for step 3 : 0.3289480209350586 step4:send_mail_cod Thu Aug 14 11:28:30 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 : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} input_args_next_step : {1376980695: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980695 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980693 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980692 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980690 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980653 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980651 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980642 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980641 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980638 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980565 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980561 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980555 depend.output_id : 0 input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ()} output_args : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',)} args : 1376980552 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 : {25976961: [{'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994}]} input_args_next_step : {1376980695: ('0.0',), 1376980693: ('0.0',), 1376980692: ('0.0',), 1376980690: ('0.0',), 1376980653: ('0.0',), 1376980651: ('0.0',), 1376980642: ('0.0',), 1376980641: ('0.0',), 1376980638: ('0.0',), 1376980565: ('0.0',), 1376980561: ('0.0',), 1376980555: ('0.0',), 1376980552: ('0.0',), 25976961: ()} output_args : {25976961: [{'flou': 25976983, 'Teint_Dans_La_Masse': 25976984, 'environnement': 25976985, 'autre_refus': 25976986, 'Carton_gris': 25976987, 'Carton_brun': 25976988, 'plastique': 25976989, 'mal_croppe': 25976990, 'metal': 25976991, 'papier': 25976992, 'cartonnette': 25976993, 'kraft': 25976994}]} args : 25976961 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 :14, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25976961) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1376980695,1376980693,1376980692,1376980690,1376980653,1376980651,1376980642,1376980641,1376980638,1376980565,1376980561,1376980555,1376980552) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376980552 begin to download photo : 1376980565 begin to download photo : 1376980642 begin to download photo : 1376980690 begin to download photo : 1376980695 download finish for photo 1376980690 begin to download photo : 1376980692 download finish for photo 1376980695 download finish for photo 1376980565 begin to download photo : 1376980638 download finish for photo 1376980642 begin to download photo : 1376980651 download finish for photo 1376980552 begin to download photo : 1376980555 download finish for photo 1376980692 begin to download photo : 1376980693 download finish for photo 1376980555 begin to download photo : 1376980561 download finish for photo 1376980638 begin to download photo : 1376980641 download finish for photo 1376980651 begin to download photo : 1376980653 download finish for photo 1376980693 download finish for photo 1376980641 download finish for photo 1376980561 download finish for photo 1376980653 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette259769831755163711/ imagette259769861755163711/ imagette259769891755163711/ imagette259769901755163711/ imagette259769911755163711/ imagette259769931755163711/ imagette259769941755163711/ imagette259769841755163711/ imagette259769871755163711/ imagette259769881755163711/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P25976961_14-08-2025_11_28_31.pdf 25976983 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976983 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769831755163711 25976986 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769861755163711 25976989 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769891755163711 25976990 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769901755163711 25976991 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769911755163711 25976993 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769931755163711 25976994 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769941755163711 25976984 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769841755163711 25976987 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769871755163711 25976988 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259769881755163711 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25976961 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25976995,25976996,25976997,25976998,25976999,25977000,25977001,25977002,25977003,25977004,25977005,25977006?tags=flou,Teint_Dans_La_Masse,environnement,autre_refus,Carton_gris,Carton_brun,plastique,mal_croppe,metal,papier,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1376980695] : ('0.0',) no score found for photo 1376980695 We are sending mail with results at report@fotonower.com args[1376980693] : ('0.0',) no score found for photo 1376980693 We are sending mail with results at report@fotonower.com args[1376980692] : ('0.0',) no score found for photo 1376980692 We are sending mail with results at report@fotonower.com args[1376980690] : ('0.0',) no score found for photo 1376980690 We are sending mail with results at report@fotonower.com args[1376980653] : ('0.0',) no score found for photo 1376980653 We are sending mail with results at report@fotonower.com args[1376980651] : ('0.0',) no score found for photo 1376980651 We are sending mail with results at report@fotonower.com args[1376980642] : ('0.0',) no score found for photo 1376980642 We are sending mail with results at report@fotonower.com args[1376980641] : ('0.0',) no score found for photo 1376980641 We are sending mail with results at report@fotonower.com args[1376980638] : ('0.0',) no score found for photo 1376980638 We are sending mail with results at report@fotonower.com args[1376980565] : ('0.0',) no score found for photo 1376980565 We are sending mail with results at report@fotonower.com args[1376980561] : ('0.0',) no score found for photo 1376980561 We are sending mail with results at report@fotonower.com args[1376980555] : ('0.0',) no score found for photo 1376980555 We are sending mail with results at report@fotonower.com args[1376980552] : ('0.0',) no score found for photo 1376980552 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976961 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_P25976961_14-08-2025_11_28_31.pdf results_Auto_P25976961_14-08-2025_11_28_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976961_14-08-2025_11_28_31.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','25976961','results_Auto_P25976961_14-08-2025_11_28_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976961_14-08-2025_11_28_31.pdf','pdf','','0.12','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25976961]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] map_info['map_portfolio_photo'] : {25976961: [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552, 1376980538, 1376980503, 1376980490, 1376980487, 1376980482, 1376980436, 1376980432, 1376980398, 1376980393, 1376980382, 1376980294, 1376980207, 1376980188, 1376980135, 1376980106, 1376980101, 1376980096, 1376980086, 1376980083, 1376980020, 1376980012, 1376980001, 1376979984, 1376979927, 1376979904, 1376979900, 1376979896, 1376979886, 1376979880]} final : False mtd_id 4302 list_pids : [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] 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, '3532451') ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '25976961', '1376980695', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451')] time used for this insertion : 0.013863563537597656 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6208386421203613 time spend to save output : 0.014109611511230469 total time spend for step 4 : 1.6349482536315918 step5:split_time_score Thu Aug 14 11:28:32 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 : ['25976961'] 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 : [('25976961',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25976961) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376980695: {'path': 'temp/1755163710_2473090_1376980695_e757b9845f1a2b33aa48b70bdf69b952.jpg', 'extension': 'jpg'}, 1376980690: {'path': 'temp/1755163710_2473090_1376980690_82a00c4e3d4fce8758b96f95eef1b266.jpg', 'extension': 'jpg'}, 1376980692: {'path': 'temp/1755163710_2473090_1376980692_5db5e0175feaa026f81a2fe7613f8477.jpg', 'extension': 'jpg'}, 1376980693: {'path': 'temp/1755163710_2473090_1376980693_ec814da93b26007041726a342437baeb.jpg', 'extension': 'jpg'}, 1376980565: {'path': 'temp/1755163710_2473090_1376980565_efffa80e67b0452e51c92b7737b0ef57.jpg', 'extension': 'jpg'}, 1376980638: {'path': 'temp/1755163710_2473090_1376980638_1cce39ede636aebf64b9dfadcf8a6c33.jpg', 'extension': 'jpg'}, 1376980641: {'path': 'temp/1755163710_2473090_1376980641_2e04029a6a5666a89c4b2e1a11f3cd5c.jpg', 'extension': 'jpg'}, 1376980552: {'path': 'temp/1755163710_2473090_1376980552_4c13548697dbd4480c723a3a752c986b.jpg', 'extension': 'jpg'}, 1376980555: {'path': 'temp/1755163710_2473090_1376980555_9b2299fbeca78d4e78b053b503251b2e.jpg', 'extension': 'jpg'}, 1376980561: {'path': 'temp/1755163710_2473090_1376980561_e2cdcc54abb80af0ee6553a3a19fd4b3.jpg', 'extension': 'jpg'}, 1376980642: {'path': 'temp/1755163710_2473090_1376980642_eac57803ba7a48223d9000d3352fc5a8.jpg', 'extension': 'jpg'}, 1376980651: {'path': 'temp/1755163710_2473090_1376980651_36474a35bc58b5c9fe6f71e9074dc94a.jpg', 'extension': 'jpg'}, 1376980653: {'path': 'temp/1755163710_2473090_1376980653_6149f64f2089a39b236be2de8ed8abf1.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 = 25976961; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25976961 group by h (('11', 42),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25976961 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 (25976961) 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 (25976961) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14082025 25976961 Nombre de photos uploadées : 42 / 23040 (0%) 14082025 25976961 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 14082025 25976961 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1376979904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/2710f0f9efce3da42742380c6ccf0ccb.jpg', 'username': None, 'uploaded_at': 1755162968, 'text': 'image_14082025_11_15_03_9127.jpg'}, {'photo_id': 1376979900, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/5254bc17886ce25b9f933d1178480b77.jpg', 'username': None, 'uploaded_at': 1755162968, 'text': 'image_14082025_11_15_13_10136.jpg'}, {'photo_id': 1376979896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/4991e855d8ae7be8cfeea0a20e1990a4.jpg', 'username': None, 'uploaded_at': 1755162968, 'text': 'image_14082025_11_15_23_10135.jpg'}, {'photo_id': 1376979886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/14/31247f1e6395e86279e6f8e44d814789.jpg', 'username': None, 'uploaded_at': 1755162968, 'text': 'image_14082025_11_15_33_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001983642578125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25976961, '2025-08-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-14' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2114655,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2142789363861084 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= 2114655 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25957846, 'dashboard_result_id': 13987051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_06_22_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25958208, 'dashboard_result_id': 13987052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25958481, 'dashboard_result_id': 13987053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_06_22_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25958896, 'dashboard_result_id': 13987054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25960055, 'dashboard_result_id': 13987055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_06_02_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25960403, 'dashboard_result_id': 13987056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_06_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25960559, 'dashboard_result_id': 13987057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_06_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25961140, 'dashboard_result_id': 13987058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961140_14-08-2025_06_01_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961197, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25961631, 'dashboard_result_id': 13987059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961631_14-08-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961659, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25962142, 'dashboard_result_id': 13987060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962142_14-08-2025_06_06_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25962163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962169, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25962665, 'dashboard_result_id': 13987061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962665_14-08-2025_06_14_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25962682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962694, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25963363, 'dashboard_result_id': 13987062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963363_14-08-2025_06_13_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963407, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25963828, 'dashboard_result_id': 13987063, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963828_14-08-2025_06_23_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963872, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25964375, 'dashboard_result_id': 13987064, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964375_14-08-2025_06_24_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964395, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25964780, 'dashboard_result_id': 13987065, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964780_14-08-2025_06_24_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964804, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25965323, 'dashboard_result_id': 13987066, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965323_14-08-2025_06_25_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965368, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25965736, 'dashboard_result_id': 13987067, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965736_14-08-2025_06_26_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965781, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25966441, 'dashboard_result_id': 13987068, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25966441_14-08-2025_06_26_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25966445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25966446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25966447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25966448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25966449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25966450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25966451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25966452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25966453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25966454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25966455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25966456, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25967036, 'dashboard_result_id': 13987069, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967036_14-08-2025_05_49_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967049, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25967240, 'dashboard_result_id': 13987070, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967240_14-08-2025_06_03_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967256, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25967455, 'dashboard_result_id': 13987071, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967455_14-08-2025_06_19_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967471, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25968017, 'dashboard_result_id': 13987072, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968017_14-08-2025_06_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25968034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968045, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25968402, 'dashboard_result_id': 13987073, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968402_14-08-2025_06_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968428, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25968826, 'dashboard_result_id': 13987074, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968826_14-08-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968846, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25969226, 'dashboard_result_id': 13987075, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969226_14-08-2025_07_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25969235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969246, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25969892, 'dashboard_result_id': 13987076, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969892_14-08-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25969909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969913, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25970482, 'dashboard_result_id': 13987077, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970482_14-08-2025_07_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25970504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25970514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970515, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25970923, 'dashboard_result_id': 13987078, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970923_14-08-2025_08_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25970940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25970942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970951, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25971275, 'dashboard_result_id': 13987079, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971275_14-08-2025_08_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971296, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25971884, 'dashboard_result_id': 13987080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971884_14-08-2025_08_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971913, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25972260, 'dashboard_result_id': 13987081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972260_14-08-2025_08_49_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972281, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25972719, 'dashboard_result_id': 13987082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972719_14-08-2025_08_58_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972742, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25975774, 'dashboard_result_id': 13987083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25975774_14-08-2025_10_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25975783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25975784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25975785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25975786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25975787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25975788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25975789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25975790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25975791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25975792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25975793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25975794, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25976001, 'dashboard_result_id': 13987084, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976001_14-08-2025_11_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25976027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976030, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976031, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25976449, 'dashboard_result_id': 13987085, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976449_14-08-2025_11_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25976484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976486, 'pht': 3726}}"}, {'dashboat_entry_day': 2114655, 'dashboard_run_id': 2125255, 'mtr_portfolio_id': 25976961, 'dashboard_result_id': 13987086, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976961_14-08-2025_11_26_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25976983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976994, '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 = 25957846 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528313, 'mtr_portfolio_id': 25957846, 'created_at': datetime.datetime(2025, 8, 14, 6, 21, 58), 'result': '0.05899785751415774', 'result_long': None, 'result_double': None}] Qualite : 0.05899785751415774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25957846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25957846 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_06_22_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, 'pht': 3726}}" where mtr_portfolio_id = 25957846 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25957846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987051, 0.05899785751415774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25957846_14-08-2025_06_22_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25957848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25957849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25957850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25957851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25957852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25957853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25957854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25957855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25957856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25957857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25957858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25957859, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25958208 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528314, 'mtr_portfolio_id': 25958208, 'created_at': datetime.datetime(2025, 8, 14, 5, 51, 59), 'result': '0.06954581677072803', 'result_long': None, 'result_double': None}] Qualite : 0.06954581677072803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958208 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, 'pht': 3726}}" where mtr_portfolio_id = 25958208 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25958208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987052, 0.06954581677072803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958208_14-08-2025_05_52_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25958216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958227, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25958481 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528315, 'mtr_portfolio_id': 25958481, 'created_at': datetime.datetime(2025, 8, 14, 6, 22, 56), 'result': '0.0519868189659249', 'result_long': None, 'result_double': None}] Qualite : 0.0519868189659249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_06_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958481 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_06_22_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, 'pht': 3726}}" where mtr_portfolio_id = 25958481 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25958481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987053, 0.0519868189659249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958481_14-08-2025_06_22_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958517, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25958896 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528316, 'mtr_portfolio_id': 25958896, 'created_at': datetime.datetime(2025, 8, 14, 6, 6, 29), 'result': '0.05694973610862853', 'result_long': None, 'result_double': None}] Qualite : 0.05694973610862853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25958896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25958896 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, 'pht': 3726}}" where mtr_portfolio_id = 25958896 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25958896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987054, 0.05694973610862853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25958896_14-08-2025_06_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25958930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25958931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25958932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25958933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25958934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25958935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25958936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25958937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25958938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25958939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25958940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25958941, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25960055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528317, 'mtr_portfolio_id': 25960055, 'created_at': datetime.datetime(2025, 8, 14, 6, 2, 29), 'result': '0.04747243606978841', 'result_long': None, 'result_double': None}] Qualite : 0.04747243606978841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_06_02_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_06_02_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, 'pht': 3726}}" where mtr_portfolio_id = 25960055 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25960055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987055, 0.04747243606978841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960055_14-08-2025_06_02_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25960064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960075, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25960403 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528318, 'mtr_portfolio_id': 25960403, 'created_at': datetime.datetime(2025, 8, 14, 6, 1, 30), 'result': '0.06823633895401231', 'result_long': None, 'result_double': None}] Qualite : 0.06823633895401231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960403 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_06_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, 'pht': 3726}}" where mtr_portfolio_id = 25960403 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25960403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987056, 0.06823633895401231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960403_14-08-2025_06_01_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960418, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25960559 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528319, 'mtr_portfolio_id': 25960559, 'created_at': datetime.datetime(2025, 8, 14, 6, 0, 30), 'result': '0.049829573767651854', 'result_long': None, 'result_double': None}] Qualite : 0.049829573767651854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25960559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25960559 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_06_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, 'pht': 3726}}" where mtr_portfolio_id = 25960559 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25960559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987057, 0.049829573767651854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25960559_14-08-2025_06_00_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25960569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25960570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25960571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25960572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25960573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25960574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25960575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25960576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25960577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25960578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25960579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25960580, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25961140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528320, 'mtr_portfolio_id': 25961140, 'created_at': datetime.datetime(2025, 8, 14, 6, 1, 1), 'result': '0.047097403387423395', 'result_long': None, 'result_double': None}] Qualite : 0.047097403387423395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25961140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961140_14-08-2025_06_01_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25961140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961140_14-08-2025_06_01_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961197, 'pht': 3726}}" where mtr_portfolio_id = 25961140 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25961140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987058, 0.047097403387423395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961140_14-08-2025_06_01_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961190, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961197, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25961631 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528321, 'mtr_portfolio_id': 25961631, 'created_at': datetime.datetime(2025, 8, 14, 6, 1, 59), 'result': '0.03726646207680607', 'result_long': None, 'result_double': None}] Qualite : 0.03726646207680607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25961631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961631_14-08-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25961631 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961631_14-08-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961659, 'pht': 3726}}" where mtr_portfolio_id = 25961631 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25961631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987059, 0.03726646207680607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25961631_14-08-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25961648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25961649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25961650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25961651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25961652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25961653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25961654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25961655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25961656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25961657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25961658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25961659, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25962142 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528322, 'mtr_portfolio_id': 25962142, 'created_at': datetime.datetime(2025, 8, 14, 6, 5, 59), 'result': '0.03881141729232841', 'result_long': None, 'result_double': None}] Qualite : 0.03881141729232841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25962142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962142_14-08-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25962142 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962142_14-08-2025_06_06_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25962163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962169, 'pht': 3726}}" where mtr_portfolio_id = 25962142 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25962142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987060, 0.03881141729232841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962142_14-08-2025_06_06_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25962163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962169, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25962665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528323, 'mtr_portfolio_id': 25962665, 'created_at': datetime.datetime(2025, 8, 14, 6, 14, 28), 'result': '0.04073056350512067', 'result_long': None, 'result_double': None}] Qualite : 0.04073056350512067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25962665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962665_14-08-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25962665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962665_14-08-2025_06_14_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25962682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962694, 'pht': 3726}}" where mtr_portfolio_id = 25962665 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25962665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987061, 0.04073056350512067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25962665_14-08-2025_06_14_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25962682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25962683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25962685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25962686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25962687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25962688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25962689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25962690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25962691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25962692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25962693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25962694, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25963363 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528324, 'mtr_portfolio_id': 25963363, 'created_at': datetime.datetime(2025, 8, 14, 6, 13, 57), 'result': '0.030406088233890047', 'result_long': None, 'result_double': None}] Qualite : 0.030406088233890047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25963363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963363_14-08-2025_06_13_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25963363 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963363_14-08-2025_06_13_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963407, 'pht': 3726}}" where mtr_portfolio_id = 25963363 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25963363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987062, 0.030406088233890047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963363_14-08-2025_06_13_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963407, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25963828 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528325, 'mtr_portfolio_id': 25963828, 'created_at': datetime.datetime(2025, 8, 14, 6, 23, 30), 'result': '0.047518525491537476', 'result_long': None, 'result_double': None}] Qualite : 0.047518525491537476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25963828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963828_14-08-2025_06_23_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25963828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963828_14-08-2025_06_23_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963872, 'pht': 3726}}" where mtr_portfolio_id = 25963828 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25963828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987063, 0.047518525491537476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25963828_14-08-2025_06_23_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25963861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25963862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25963863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25963864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25963865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25963866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25963867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25963868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25963869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25963870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25963871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25963872, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25964375 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528326, 'mtr_portfolio_id': 25964375, 'created_at': datetime.datetime(2025, 8, 14, 6, 24, 1), 'result': '0.08058939002094953', 'result_long': None, 'result_double': None}] Qualite : 0.08058939002094953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25964375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964375_14-08-2025_06_24_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25964375 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964375_14-08-2025_06_24_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964395, 'pht': 3726}}" where mtr_portfolio_id = 25964375 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25964375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987064, 0.08058939002094953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964375_14-08-2025_06_24_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964395, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25964780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528327, 'mtr_portfolio_id': 25964780, 'created_at': datetime.datetime(2025, 8, 14, 6, 24, 28), 'result': '0.044287097897939505', 'result_long': None, 'result_double': None}] Qualite : 0.044287097897939505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25964780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964780_14-08-2025_06_24_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25964780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964780_14-08-2025_06_24_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964804, 'pht': 3726}}" where mtr_portfolio_id = 25964780 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25964780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987065, 0.044287097897939505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25964780_14-08-2025_06_24_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25964793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25964794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25964795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25964796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25964797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25964798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25964799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25964800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25964801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25964802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25964803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25964804, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25965323 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528328, 'mtr_portfolio_id': 25965323, 'created_at': datetime.datetime(2025, 8, 14, 6, 25, 29), 'result': '0.04526484693516153', 'result_long': None, 'result_double': None}] Qualite : 0.04526484693516153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25965323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965323_14-08-2025_06_25_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25965323 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965323_14-08-2025_06_25_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965368, 'pht': 3726}}" where mtr_portfolio_id = 25965323 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25965323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987066, 0.04526484693516153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965323_14-08-2025_06_25_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965368, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25965736 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528329, 'mtr_portfolio_id': 25965736, 'created_at': datetime.datetime(2025, 8, 14, 6, 26, 1), 'result': '0.06209488623417022', 'result_long': None, 'result_double': None}] Qualite : 0.06209488623417022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25965736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965736_14-08-2025_06_26_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25965736 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965736_14-08-2025_06_26_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965781, 'pht': 3726}}" where mtr_portfolio_id = 25965736 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25965736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987067, 0.06209488623417022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25965736_14-08-2025_06_26_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25965769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25965770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25965771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25965772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25965773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25965774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25965775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25965776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25965777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25965778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25965780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25965781, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25966441 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528330, 'mtr_portfolio_id': 25966441, 'created_at': datetime.datetime(2025, 8, 14, 6, 26, 29), 'result': '0.04481093728186757', 'result_long': None, 'result_double': None}] Qualite : 0.04481093728186757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25966441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25966441_14-08-2025_06_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25966441 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25966441_14-08-2025_06_26_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25966445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25966446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25966447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25966448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25966449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25966450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25966451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25966452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25966453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25966454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25966455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25966456, 'pht': 3726}}" where mtr_portfolio_id = 25966441 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25966441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987068, 0.04481093728186757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25966441_14-08-2025_06_26_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25966445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25966446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25966447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25966448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25966449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25966450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25966451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25966452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25966453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25966454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25966455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25966456, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25967036 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528384, 'mtr_portfolio_id': 25967036, 'created_at': datetime.datetime(2025, 8, 14, 5, 49, 26), 'result': '0.040807393951929595', 'result_long': None, 'result_double': None}] Qualite : 0.040807393951929595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25967036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967036_14-08-2025_05_49_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25967036 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967036_14-08-2025_05_49_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967049, 'pht': 3726}}" where mtr_portfolio_id = 25967036 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25967036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987069, 0.040807393951929595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967036_14-08-2025_05_49_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967049, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25967240 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528431, 'mtr_portfolio_id': 25967240, 'created_at': datetime.datetime(2025, 8, 14, 6, 3, 32), 'result': '0.027758950857426367', 'result_long': None, 'result_double': None}] Qualite : 0.027758950857426367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25967240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967240_14-08-2025_06_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25967240 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967240_14-08-2025_06_03_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967256, 'pht': 3726}}" where mtr_portfolio_id = 25967240 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25967240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987070, 0.027758950857426367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967240_14-08-2025_06_03_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967256, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25967455 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528525, 'mtr_portfolio_id': 25967455, 'created_at': datetime.datetime(2025, 8, 14, 6, 19, 29), 'result': '0.10257954779647989', 'result_long': None, 'result_double': None}] Qualite : 0.10257954779647989 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25967455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967455_14-08-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25967455 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967455_14-08-2025_06_19_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967471, 'pht': 3726}}" where mtr_portfolio_id = 25967455 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25967455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987071, 0.10257954779647989, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25967455_14-08-2025_06_19_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25967460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25967461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25967462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25967463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25967464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25967465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25967466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25967467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25967468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25967469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25967470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25967471, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25968017 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528658, 'mtr_portfolio_id': 25968017, 'created_at': datetime.datetime(2025, 8, 14, 6, 32, 59), 'result': '0.05699381072106923', 'result_long': None, 'result_double': None}] Qualite : 0.05699381072106923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25968017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968017_14-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25968017 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968017_14-08-2025_06_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25968034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968045, 'pht': 3726}}" where mtr_portfolio_id = 25968017 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25968017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987072, 0.05699381072106923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968017_14-08-2025_06_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25968034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968035, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968045, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25968402 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3528804, 'mtr_portfolio_id': 25968402, 'created_at': datetime.datetime(2025, 8, 14, 6, 46, 29), 'result': '0.038271453290983776', 'result_long': None, 'result_double': None}] Qualite : 0.038271453290983776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25968402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968402_14-08-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25968402 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968402_14-08-2025_06_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968428, 'pht': 3726}}" where mtr_portfolio_id = 25968402 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25968402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987073, 0.038271453290983776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968402_14-08-2025_06_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25968826 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3529002, 'mtr_portfolio_id': 25968826, 'created_at': datetime.datetime(2025, 8, 14, 7, 2, 56), 'result': '0.04958936934779201', 'result_long': None, 'result_double': None}] Qualite : 0.04958936934779201 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25968826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968826_14-08-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25968826 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968826_14-08-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968846, 'pht': 3726}}" where mtr_portfolio_id = 25968826 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25968826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987074, 0.04958936934779201, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25968826_14-08-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25968835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25968836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25968837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25968838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25968839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25968840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25968841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25968842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25968843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25968844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25968845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25968846, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25969226 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3529225, 'mtr_portfolio_id': 25969226, 'created_at': datetime.datetime(2025, 8, 14, 7, 16, 57), 'result': '0.0667374516909602', 'result_long': None, 'result_double': None}] Qualite : 0.0667374516909602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25969226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969226_14-08-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25969226 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969226_14-08-2025_07_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25969235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969246, 'pht': 3726}}" where mtr_portfolio_id = 25969226 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25969226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987075, 0.0667374516909602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969226_14-08-2025_07_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25969235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969246, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25969892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3529442, 'mtr_portfolio_id': 25969892, 'created_at': datetime.datetime(2025, 8, 14, 7, 32, 59), 'result': '0.029120444107645842', 'result_long': None, 'result_double': None}] Qualite : 0.029120444107645842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25969892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969892_14-08-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25969892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969892_14-08-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25969909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969913, 'pht': 3726}}" where mtr_portfolio_id = 25969892 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25969892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987076, 0.029120444107645842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25969892_14-08-2025_07_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25969902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25969903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25969904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25969905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25969906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25969907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25969908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25969909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25969910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25969911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25969912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25969913, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25970482 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3529608, 'mtr_portfolio_id': 25970482, 'created_at': datetime.datetime(2025, 8, 14, 7, 47), 'result': '0.02279051812694669', 'result_long': None, 'result_double': None}] Qualite : 0.02279051812694669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25970482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970482_14-08-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25970482 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970482_14-08-2025_07_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25970504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25970514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970515, 'pht': 3726}}" where mtr_portfolio_id = 25970482 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25970482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987077, 0.02279051812694669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970482_14-08-2025_07_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25970504, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25970514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25970923 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3529801, 'mtr_portfolio_id': 25970923, 'created_at': datetime.datetime(2025, 8, 14, 8, 5), 'result': '0.0956282658872845', 'result_long': None, 'result_double': None}] Qualite : 0.0956282658872845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25970923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970923_14-08-2025_08_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25970923 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970923_14-08-2025_08_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25970940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25970942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970951, 'pht': 3726}}" where mtr_portfolio_id = 25970923 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25970923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987078, 0.0956282658872845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25970923_14-08-2025_08_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25970940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25970941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25970942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25970943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25970944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25970945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25970946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25970947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25970948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25970949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25970950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25970951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25971275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3530005, 'mtr_portfolio_id': 25971275, 'created_at': datetime.datetime(2025, 8, 14, 8, 18, 57), 'result': '0.03641473954934696', 'result_long': None, 'result_double': None}] Qualite : 0.03641473954934696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25971275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971275_14-08-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25971275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971275_14-08-2025_08_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971296, 'pht': 3726}}" where mtr_portfolio_id = 25971275 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25971275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987079, 0.03641473954934696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971275_14-08-2025_08_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971296, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25971884 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3530228, 'mtr_portfolio_id': 25971884, 'created_at': datetime.datetime(2025, 8, 14, 8, 32, 57), 'result': '0.0676838929923877', 'result_long': None, 'result_double': None}] Qualite : 0.0676838929923877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25971884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971884_14-08-2025_08_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25971884 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971884_14-08-2025_08_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971913, 'pht': 3726}}" where mtr_portfolio_id = 25971884 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25971884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987080, 0.0676838929923877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25971884_14-08-2025_08_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25971901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25971902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25971903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25971904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25971905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25971906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25971907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25971908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25971909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25971911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25971912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25971913, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25972260 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3530403, 'mtr_portfolio_id': 25972260, 'created_at': datetime.datetime(2025, 8, 14, 8, 49, 31), 'result': '0.05180192920106684', 'result_long': None, 'result_double': None}] Qualite : 0.05180192920106684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25972260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972260_14-08-2025_08_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25972260 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972260_14-08-2025_08_49_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972281, 'pht': 3726}}" where mtr_portfolio_id = 25972260 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25972260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987081, 0.05180192920106684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972260_14-08-2025_08_49_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972281, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25972719 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3530584, 'mtr_portfolio_id': 25972719, 'created_at': datetime.datetime(2025, 8, 14, 9, 30, 58), 'result': '0.053493544141860576', 'result_long': None, 'result_double': None}] Qualite : 0.053493544141860576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25972719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972719_14-08-2025_09_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25972719 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972719_14-08-2025_09_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972742, 'pht': 3726}}" where mtr_portfolio_id = 25972719 and dashboard_run_id = 2125255 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25972719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13987082, 0.053493544141860576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25972719_14-08-2025_09_30_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25972731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25972732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25972733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25972734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25972735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25972736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25972737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25972738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25972739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25972740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25972741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25972742, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25975774 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 = 25975774 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 = 25975774 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25975774 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 = 25975774 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 = 25975774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25975774_14-08-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25975774 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25975774_14-08-2025_10_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25975783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25975784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25975785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25975786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25975787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25975788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25975789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25975790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25975791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25975792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25975793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25975794, 'pht': 3726}}" where mtr_portfolio_id = 25975774 and dashboard_run_id = 2125255 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976001 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 = 25976001 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 = 25976001 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976001 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 = 25976001 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 = 25976001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976001_14-08-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25976001 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976001_14-08-2025_11_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25976027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976030, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976031, 'pht': 3726}}" where mtr_portfolio_id = 25976001 and dashboard_run_id = 2125255 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976449 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 = 25976449 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 = 25976449 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976449 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 = 25976449 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 = 25976449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976449_14-08-2025_11_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25976449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976449_14-08-2025_11_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25976484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976486, 'pht': 3726}}" where mtr_portfolio_id = 25976449 and dashboard_run_id = 2125255 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976961 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 = 25976961 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 = 25976961 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25976961 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 = 25976961 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 = 25976961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976961_14-08-2025_11_28_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25976961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25976961_14-08-2025_11_28_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25976983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25976984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25976985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25976986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25976987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25976988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25976989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25976990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25976991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25976992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25976993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25976994, 'pht': 3726}}" where mtr_portfolio_id = 25976961 and dashboard_run_id = 2125255 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25957846,25958208,25958481,25958896,25960055,25960403,25960559,25961140,25961631,25962142,25962665,25963363,25963828,25964375,25964780,25965323,25965736,25966441,25967036,25967240,25967455,25968017,25968402,25968826,25969226,25969892,25970482,25970923,25971275,25971884,25972260,25972719,25975774,25976001,25976449,25976961) result : ((1376905300,), (1376905334,), (1376905363,), (1376905889,), (1376905892,), (1376905895,), (1376906072,), (1376906125,), (1376906188,), (1376906745,), (1376906785,), (1376906817,), (1376906856,), (1376907193,), (1376907222,), (1376907262,), (1376907290,), (1376907583,), (1376907638,), (1376907671,), (1376907713,), (1376907742,), (1376907999,), (1376908029,), (1376908060,), (1376908102,), (1376908158,), (1376908661,), (1376908692,), (1376908721,), (1376909206,), (1376909222,), (1376909225,), (1376909228,), (1376909230,), (1376909238,), (1376909336,), (1376909368,), (1376909400,), (1376909435,), (1376909456,), (1376909458,), (1376909512,), (1376909531,), (1376909533,), (1376909540,), (1376909541,), (1376909542,), (1376909543,), (1376909544,), (1376909545,), (1376909550,), (1376909552,), (1376909554,), (1376909557,), (1376909558,), (1376909563,), (1376909566,), (1376909575,), (1376909578,), (1376909588,), (1376909591,), (1376909592,), (1376909614,), (1376909602,), (1376909605,), (1376909607,), (1376909611,), (1376909638,), (1376909651,), (1376909661,), (1376909662,), (1376909663,), (1376909676,), (1376909679,), (1376909682,), (1376909685,), (1376909697,), (1376909699,), (1376909701,), (1376909727,), (1376909728,), (1376909729,), (1376909730,), (1376909732,), (1376909739,), (1376909741,), (1376909743,), (1376909745,), (1376909751,), (1376909752,), (1376909753,), (1376909755,), (1376909758,), (1376909761,), (1376909767,), (1376909769,), (1376909771,), (1376909774,), (1376909777,), (1376909790,), (1376909793,), (1376909796,), (1376909799,), (1376909800,), (1376909802,), (1376909817,), (1376909823,), (1376909841,), (1376909843,), (1376909853,), (1376909854,), (1376909855,), (1376909857,), (1376909859,), (1376909869,), (1376909870,), (1376909872,), (1376909875,), (1376909892,), (1376909894,), (1376909916,), (1376909910,), (1376909912,), (1376909914,), (1376909942,), (1376909948,), (1376909949,), (1376909951,), (1376909969,), (1376909971,), (1376909973,), (1376909975,), (1376909977,), (1376909979,), (1376909984,), (1376909985,), (1376909986,), (1376909997,), (1376909999,), (1376910001,), (1376910003,), (1376910024,), (1376910029,), (1376910030,), (1376910032,), (1376910036,), (1376910038,), (1376910056,), (1376910058,), (1376910060,), (1376910077,), (1376910079,), (1376910081,), (1376910083,), (1376910085,), (1376910091,), (1376910093,), (1376910095,), (1376910097,), (1376910112,), (1376910116,), (1376910118,), (1376910121,), (1376910124,), (1376910131,), (1376910133,), (1376910160,), (1376910169,), (1376910178,), (1376910180,), (1376910183,), (1376910191,), (1376910194,), (1376910196,), (1376910198,), (1376910200,), (1376910205,), (1376910206,), (1376910207,), (1376910209,), (1376910211,), (1376910221,), (1376910223,), (1376910224,), (1376910252,), (1376910239,), (1376910241,), (1376910243,), (1376910246,), (1376910249,), (1376910287,), (1376910289,), (1376910292,), (1376910294,), (1376910313,), (1376910315,), (1376910317,), (1376910318,), (1376910320,), (1376910332,), (1376910333,), (1376910334,), (1376910338,), (1376910339,), (1376910341,), (1376910348,), (1376910350,), (1376910352,), (1376910363,), (1376910364,), (1376910365,), (1376910367,), (1376910370,), (1376910387,), (1376910389,), (1376910391,), (1376910393,), (1376910395,), (1376910397,), (1376910409,), (1376910412,), (1376910414,), (1376910428,), (1376910430,), (1376910432,), (1376910434,), (1376910436,), (1376910438,), (1376910449,), (1376910450,), (1376910451,), (1376910454,), (1376910457,), (1376910467,), (1376910469,), (1376910472,), (1376910475,), (1376910483,), (1376910485,), (1376910487,), (1376910488,), (1376910489,), (1376910490,), (1376910497,), (1376910498,), (1376910499,), (1376910501,), (1376910512,), (1376910514,), (1376910516,), (1376910518,), (1376915097,), (1376915416,), (1376915421,), (1376915423,), (1376915425,), (1376915444,), (1376915445,), (1376915447,), (1376915448,), (1376915449,), (1376915455,), (1376915456,), (1376915471,), (1376915473,), (1376915475,), (1376915477,), (1376915479,), (1376915481,), (1376915490,), (1376915492,), (1376915495,), (1376915496,), (1376915497,), (1376915512,), (1376915514,), (1376915515,), (1376915517,), (1376915520,), (1376915530,), (1376915532,), (1376915534,), (1376915542,), (1376915543,), (1376915550,), (1376915561,), (1376915562,), (1376915563,), (1376915565,), (1376915574,), (1376915585,), (1376915588,), (1376915589,), (1376915591,), (1376915616,), (1376915617,), (1376915618,), (1376915619,), (1376915633,), (1376915635,), (1376915637,), (1376915639,), (1376915641,), (1376915642,), (1376915645,), (1376915646,), (1376915647,), (1376915649,), (1376915651,), (1376915653,), (1376915662,), (1376915663,), (1376915665,), (1376915667,), (1376915669,), (1376915670,), (1376915676,), (1376915679,), (1376915682,), (1376915684,), (1376915687,), (1376915688,), (1376915692,), (1376915694,), (1376915696,), (1376915698,), (1376915700,), (1376915702,), (1376915703,), (1376915704,), (1376915707,), (1376915711,), (1376915714,), (1376915740,), (1376915739,), (1376915751,), (1376915752,), (1376915753,), (1376915756,), (1376915759,), (1376915762,), (1376915769,), (1376915770,), (1376915771,), (1376915772,), (1376915775,), (1376915805,), (1376915807,), (1376915809,), (1376915836,), (1376915838,), (1376915839,), (1376915842,), (1376915844,), (1376915846,), (1376915853,), (1376915855,), (1376915857,), (1376915859,), (1376915879,), (1376915881,), (1376915883,), (1376915885,), (1376915894,), (1376915895,), (1376915896,), (1376915899,), (1376915903,), (1376915908,), (1376915909,), (1376915910,), (1376915912,), (1376915923,), (1376915925,), (1376915928,), (1376915933,), (1376915934,), (1376915935,), (1376915937,), (1376915940,), (1376916186,), (1376916219,), (1376916245,), (1376916276,), (1376916915,), (1376916778,), (1376916806,), (1376916850,), (1376916882,), (1376917182,), (1376917238,), (1376917816,), (1376917885,), (1376918569,), (1376918625,), (1376918689,), (1376918752,), (1376919381,), (1376919470,), (1376919555,), (1376919660,), (1376920592,), (1376920680,), (1376920762,), (1376921470,), (1376921525,), (1376921553,), (1376921894,), (1376922643,), (1376923786,), (1376923986,), (1376924000,), (1376924014,), (1376924032,), (1376924043,), (1376924046,), (1376924048,), (1376924051,), (1376924052,), (1376924053,), (1376924061,), (1376924063,), (1376924065,), (1376924067,), (1376924077,), (1376924079,), (1376924098,), (1376924094,), (1376924096,), (1376924113,), (1376924114,), (1376924115,), (1376924118,), (1376924121,), (1376924130,), (1376924132,), (1376924134,), (1376924137,), (1376924140,), (1376924143,), (1376924148,), (1376924162,), (1376924163,), (1376924165,), (1376924167,), (1376924169,), (1376924183,), (1376924186,), (1376924189,), (1376924194,), (1376924205,), (1376924212,), (1376924213,), (1376924215,), (1376924218,), (1376924226,), (1376924228,), (1376924230,), (1376924232,), (1376924234,), (1376924244,), (1376924245,), (1376924246,), (1376924248,), (1376924259,), (1376924260,), (1376924261,), (1376924278,), (1376924280,), (1376924282,), (1376924297,), (1376924298,), (1376924307,), (1376924309,), (1376924312,), (1376924315,), (1376924318,), (1376924325,), (1376924327,), (1376924329,), (1376924332,), (1376924334,), (1376924337,), (1376924338,), (1376924341,), (1376924344,), (1376924347,), (1376924350,), (1376924373,), (1376924374,), (1376924375,), (1376924377,), (1376924379,), (1376924397,), (1376924388,), (1376924394,), (1376924396,), (1376924402,), (1376924403,), (1376924404,), (1376924406,), (1376924409,), (1376924412,), (1376924420,), (1376924422,), (1376924424,), (1376924426,), (1376924428,), (1376924433,), (1376924434,), (1376924437,), (1376924440,), (1376924443,), (1376924446,), (1376924453,), (1376924456,), (1376924459,), (1376924462,), (1376924463,), (1376924464,), (1376924468,), (1376924470,), (1376924472,), (1376924479,), (1376924482,), (1376924484,), (1376924486,), (1376924487,), (1376924495,), (1376924498,), (1376924501,), (1376924505,), (1376924508,), (1376924519,), (1376924521,), (1376924523,), (1376924525,), (1376924527,), (1376924529,), (1376924530,), (1376924532,), (1376924535,), (1376924538,), (1376924540,), (1376924544,), (1376924545,), (1376924556,), (1376924558,), (1376924561,), (1376924586,), (1376924589,), (1376924592,), (1376924593,), (1376924595,), (1376924605,), (1376924606,), (1376924607,), (1376924610,), (1376924613,), (1376924625,), (1376924627,), (1376924640,), (1376924642,), (1376924644,), (1376924646,), (1376924648,), (1376924650,), (1376924662,), (1376924664,), (1376924665,), (1376924667,), (1376924700,), (1376924681,), (1376924688,), (1376924694,), (1376924707,), (1376924709,), (1376924711,), (1376924729,), (1376924742,), (1376924744,), (1376924745,), (1376924747,), (1376924750,), (1376924768,), (1376924770,), (1376924773,), (1376924775,), (1376924790,), (1376924791,), (1376924792,), (1376924796,), (1376924812,), (1376924814,), (1376924816,), (1376924818,), (1376924820,), (1376924826,), (1376924827,), (1376924828,), (1376924830,), (1376924850,), (1376924852,), (1376924854,), (1376924856,), (1376924858,), (1376924862,), (1376924863,), (1376924865,), (1376924868,), (1376924871,), (1376924874,), (1376924880,), (1376924881,), (1376924882,), (1376924883,), (1376924884,), (1376924891,), (1376924895,), (1376924897,), (1376924898,), (1376924900,), (1376924902,), (1376924904,), (1376924907,), (1376924910,), (1376924919,), (1376924921,), (1376924924,), (1376924926,), (1376924941,), (1376924951,), (1376924952,), (1376924971,), (1376925001,), (1376925049,), (1376925172,), (1376925361,), (1376925303,), (1376925332,), (1376925867,), (1376925950,), (1376926045,), (1376926766,), (1376926822,), (1376926883,), (1376926941,), (1376926997,), (1376927055,), (1376927498,), (1376927527,), (1376927557,), (1376927560,), (1376927562,), (1376927563,), (1376927628,), (1376927658,), (1376927686,), (1376927714,), (1376927753,), (1376927800,), (1376927938,), (1376927987,), (1376928022,), (1376928052,), (1376928097,), (1376928115,), (1376928117,), (1376928149,), (1376928159,), (1376928166,), (1376928168,), (1376928169,), (1376928171,), (1376928180,), (1376928268,), (1376928270,), (1376928271,), (1376928274,), (1376928290,), (1376928292,), (1376928294,), (1376928309,), (1376928311,), (1376928313,), (1376928315,), (1376928317,), (1376928331,), (1376928332,), (1376928334,), (1376928337,), (1376928340,), (1376928342,), (1376928343,), (1376928344,), (1376928345,), (1376928353,), (1376928357,), (1376928360,), (1376928362,), (1376928379,), (1376928370,), (1376928372,), (1376928377,), (1376928388,), (1376928389,), (1376928390,), (1376928392,), (1376928395,), (1376928398,), (1376928406,), (1376928408,), (1376928410,), (1376928414,), (1376928417,), (1376928428,), (1376928430,), (1376928432,), (1376928434,), (1376928436,), (1376928439,), (1376928447,), (1376928448,), (1376928449,), (1376928451,), (1376928491,), (1376928495,), (1376928501,), (1376928503,), (1376928517,), (1376928518,), (1376928519,), (1376928521,), (1376928524,), (1376928534,), (1376928536,), (1376928538,), (1376928540,), (1376928542,), (1376928550,), (1376928551,), (1376928552,), (1376928555,), (1376928563,), (1376928564,), (1376928565,), (1376928567,), (1376928569,), (1376928582,), (1376928584,), (1376928586,), (1376928597,), (1376928598,), (1376928599,), (1376928609,), (1376928611,), (1376928619,), (1376928620,), (1376928622,), (1376928636,), (1376928637,), (1376928638,), (1376928640,), (1376928642,), (1376928665,), (1376928653,), (1376928654,), (1376928657,), (1376928659,), (1376928662,), (1376928672,), (1376928674,), (1376928675,), (1376928687,), (1376928689,), (1376928691,), (1376928701,), (1376928703,), (1376928704,), (1376928712,), (1376928713,), (1376928715,), (1376928717,), (1376928720,), (1376928730,), (1376928735,), (1376928737,), (1376928752,), (1376928753,), (1376928754,), (1376928765,), (1376928767,), (1376928769,), (1376928771,), (1376928781,), (1376928782,), (1376928783,), (1376928785,), (1376928788,), (1376928795,), (1376928797,), (1376928799,), (1376928801,), (1376928809,), (1376928810,), (1376928813,), (1376928815,), (1376928833,), (1376928835,), (1376928838,), (1376928844,), (1376928845,), (1376928846,), (1376928850,), (1376928853,), (1376928855,), (1376928865,), (1376928867,), (1376928870,), (1376928871,), (1376928885,), (1376928887,), (1376928889,), (1376928892,), (1376928896,), (1376928920,), (1376928911,), (1376928913,), (1376928916,), (1376928918,), (1376928936,), (1376928937,), (1376928938,), (1376928941,), (1376928943,), (1376928958,), (1376928960,), (1376928962,), (1376928965,), (1376928971,), (1376928972,), (1376928973,), (1376928975,), (1376928988,), (1376928990,), (1376928992,), (1376928995,), (1376928997,), (1376928999,), (1376929007,), (1376929008,), (1376929009,), (1376929011,), (1376929018,), (1376929032,), (1376929034,), (1376929038,), (1376929040,), (1376929041,), (1376929045,), (1376929046,), (1376929047,), (1376929067,), (1376929069,), (1376929072,), (1376929074,), (1376929076,), (1376929078,), (1376929082,), (1376929083,), (1376929085,), (1376929086,), (1376929101,), (1376929103,), (1376929105,), (1376929107,), (1376929124,), (1376929125,), (1376929126,), (1376929141,), (1376929143,), (1376929145,), (1376929148,), (1376929162,), (1376929164,), (1376929167,), (1376929169,), (1376929175,), (1376929176,), (1376929177,), (1376929178,), (1376929180,), (1376929182,), (1376929214,), (1376929196,), (1376929203,), (1376929204,), (1376929212,), (1376929363,), (1376929396,), (1376929423,), (1376929450,), (1376929700,), (1376929740,), (1376929781,), (1376929836,), (1376930332,), (1376930392,), (1376930448,), (1376930501,), (1376931000,), (1376931033,), (1376931061,), (1376931384,), (1376931447,), (1376931505,), (1376931562,), (1376931618,), (1376931979,), (1376932045,), (1376932114,), (1376932172,), (1376932247,), (1376932345,), (1376932563,), (1376932599,), (1376932633,), (1376932680,), (1376932793,), (1376932794,), (1376932842,), (1376932851,), (1376932890,), (1376932891,), (1376932894,), (1376932895,), (1376932897,), (1376932898,), (1376932909,), (1376932912,), (1376932913,), (1376932915,), (1376933079,), (1376933113,), (1376933142,), (1376933170,), (1376933189,), (1376933263,), (1376933270,), (1376933271,), (1376933273,), (1376933276,), (1376933291,), (1376933305,), (1376933307,), (1376933310,), (1376933313,), (1376933325,), (1376933333,), (1376933335,), (1376933337,), (1376933339,), (1376933347,), (1376933355,), (1376933356,), (1376933358,), (1376933360,), (1376933362,), (1376933367,), (1376933374,), (1376933376,), (1376933378,), (1376933381,), (1376933383,), (1376933412,), (1376933414,), (1376933416,), (1376933420,), (1376933422,), (1376933423,), (1376933424,), (1376933398,), (1376933403,), (1376933410,), (1376933432,), (1376933436,), (1376933439,), (1376933441,), (1376933442,), (1376933447,), (1376933455,), (1376933457,), (1376933460,), (1376933463,), (1376933466,), (1376933479,), (1376933488,), (1376933490,), (1376933492,), (1376933501,), (1376933503,), (1376933505,), (1376933508,), (1376933510,), (1376933512,), (1376933530,), (1376933531,), (1376933532,), (1376933540,), (1376933543,), (1376933546,), (1376933549,), (1376933551,), (1376933561,), (1376933568,), (1376933569,), (1376933571,), (1376933574,), (1376933577,), (1376933588,), (1376933596,), (1376933598,), (1376933601,), (1376933603,), (1376933605,), (1376933613,), (1376933620,), (1376933621,), (1376933623,), (1376933643,), (1376933651,), (1376933653,), (1376933655,), (1376933668,), (1376933675,), (1376933676,), (1376933678,), (1376933681,), (1376933684,), (1376933699,), (1376933725,), (1376933727,), (1376933729,), (1376933737,), (1376933744,), (1376933745,), (1376933777,), (1376933785,), (1376933787,), (1376933789,), (1376933791,), (1376933793,), (1376933810,), (1376933821,), (1376933825,), (1376933846,), (1376933836,), (1376933844,), (1376933867,), (1376933883,), (1376933884,), (1376933886,), (1376933895,), (1376933903,), (1376933905,), (1376933907,), (1376933909,), (1376933916,), (1376933923,), (1376933924,), (1376933926,), (1376933931,), (1376933939,), (1376933953,), (1376933960,), (1376933983,), (1376933990,), (1376933991,), (1376933994,), (1376933998,), (1376934014,), (1376934032,), (1376934039,), (1376934043,), (1376934049,), (1376934056,), (1376934057,), (1376934059,), (1376934075,), (1376934083,), (1376934085,), (1376934839,), (1376934804,), (1376935359,), (1376937473,), (1376937782,), (1376937845,), (1376937897,), (1376938254,), (1376938324,), (1376938341,), (1376938349,), (1376938351,), (1376938366,), (1376938375,), (1376938376,), (1376938379,), (1376938392,), (1376938400,), (1376938419,), (1376938444,), (1376938452,), (1376938524,), (1376938937,), (1376938938,), (1376938950,), (1376938953,), (1376938956,), (1376938957,), (1376938959,), (1376938963,), (1376938966,), (1376938984,), (1376938987,), (1376938989,), (1376938992,), (1376938993,), (1376939017,), (1376939018,), (1376939020,), (1376939022,), (1376939023,), (1376939024,), (1376939034,), (1376939037,), (1376939039,), (1376939043,), (1376939045,), (1376939046,), (1376939052,), (1376939053,), (1376939054,), (1376939057,), (1376939059,), (1376939062,), (1376939076,), (1376939079,), (1376939081,), (1376939083,), (1376939092,), (1376939093,), (1376939094,), (1376939096,), (1376939100,), (1376939103,), (1376939126,), (1376939147,), (1376939149,), (1376939151,), (1376939153,), (1376939159,), (1376939161,), (1376939162,), (1376939164,), (1376939167,), (1376939187,), (1376939189,), (1376939191,), (1376939193,), (1376939195,), (1376939198,), (1376939202,), (1376939203,), (1376939204,), (1376939206,), (1376939210,), (1376939213,), (1376939230,), (1376939224,), (1376939226,), (1376939228,), (1376939245,), (1376939254,), (1376939259,), (1376939275,), (1376939279,), (1376939283,), (1376939289,), (1376939292,), (1376939303,), (1376939314,), (1376939322,), (1376939324,), (1376939326,), (1376939328,), (1376939331,), (1376939334,), (1376939344,), (1376939345,), (1376939347,), (1376939350,), (1376939352,), (1376939354,), (1376939356,), (1376939358,), (1376939360,), (1376939361,), (1376939363,), (1376939371,), (1376939374,), (1376939382,), (1376939384,), (1376939385,), (1376939387,), (1376939391,), (1376939397,), (1376939401,), (1376939404,), (1376939407,), (1376939409,), (1376939424,), (1376939427,), (1376939429,), (1376939430,), (1376939431,), (1376939444,), (1376939447,), (1376939449,), (1376939452,), (1376939459,), (1376939462,), (1376939464,), (1376939466,), (1376939468,), (1376939472,), (1376939475,), (1376939476,), (1376939480,), (1376939482,), (1376939484,), (1376939490,), (1376939493,), (1376939495,), (1376939505,), (1376939509,), (1376939513,), (1376939515,), (1376939525,), (1376939980,), (1376939816,), (1376939846,), (1376939877,), (1376939921,), (1376940491,), (1376940551,), (1376940613,), (1376940696,), (1376940765,), (1376940841,), (1376941243,), (1376941303,), (1376941359,), (1376941416,), (1376942050,), (1376942126,), (1376942163,), (1376942198,), (1376942230,), (1376942262,), (1376942472,), (1376942476,), (1376942479,), (1376942523,), (1376942554,), (1376942591,), (1376942623,), (1376942658,), (1376942687,), (1376942840,), (1376942849,), (1376942880,), (1376942904,), (1376942919,), (1376942921,), (1376942936,), (1376942939,), (1376942940,), (1376942942,), (1376942966,), (1376942968,), (1376942970,), (1376942971,), (1376942972,), (1376942973,), (1376942978,), (1376942979,), (1376942985,), (1376942988,), (1376942992,), (1376942996,), (1376942999,), (1376943014,), (1376943017,), (1376943019,), (1376943021,), (1376943023,), (1376943026,), (1376943040,), (1376943048,), (1376943053,), (1376943057,), (1376943059,), (1376943061,), (1376943062,), (1376943063,), (1376943068,), (1376943070,), (1376943072,), (1376943075,), (1376943078,), (1376943090,), (1376943094,), (1376943097,), (1376943116,), (1376943119,), (1376943120,), (1376943122,), (1376943126,), (1376943128,), (1376943154,), (1376943141,), (1376943144,), (1376943145,), (1376943147,), (1376943151,), (1376943172,), (1376943185,), (1376943193,), (1376943209,), (1376943217,), (1376943220,), (1376943221,), (1376943223,), (1376943226,), (1376943229,), (1376943234,), (1376943236,), (1376943238,), (1376943241,), (1376943244,), (1376943247,), (1376943265,), (1376943269,), (1376943271,), (1376943273,), (1376943291,), (1376943293,), (1376943294,), (1376943296,), (1376943299,), (1376943308,), (1376943312,), (1376943314,), (1376943320,), (1376943327,), (1376943329,), (1376943335,), (1376943337,), (1376943356,), (1376943360,), (1376943363,), (1376943365,), (1376943366,), (1376943367,), (1376943371,), (1376943372,), (1376943373,), (1376943376,), (1376943379,), (1376943397,), (1376943401,), (1376943406,), (1376943409,), (1376943411,), (1376943427,), (1376943429,), (1376943430,), (1376943432,), (1376943435,), (1376943438,), (1376943459,), (1376943464,), (1376943466,), (1376943467,), (1376943468,), (1376943472,), (1376943474,), (1376943475,), (1376943477,), (1376943493,), (1376943497,), (1376943499,), (1376943518,), (1376943510,), (1376943511,), (1376943512,), (1376943516,), (1376943531,), (1376943548,), (1376943551,), (1376943553,), (1376943572,), (1376943574,), (1376943576,), (1376943580,), (1376943631,), (1376943635,), (1376943662,), (1376943663,), (1376943664,), (1376943666,), (1376943670,), (1376943674,), (1376943678,), (1376943682,), (1376943685,), (1376943689,), (1376943691,), (1376943693,), (1376943696,), (1376943715,), (1376943721,), (1376943723,), (1376943726,), (1376943729,), (1376943735,), (1376943736,), (1376943737,), (1376943739,), (1376943743,), (1376943763,), (1376943767,), (1376943769,), (1376943771,), (1376943778,), (1376943779,), (1376943780,), (1376943792,), (1376943796,), (1376943798,), (1376943801,), (1376943807,), (1376943811,), (1376943823,), (1376943826,), (1376943830,), (1376943832,), (1376943863,), (1376943867,), (1376943868,), (1376943870,), (1376943873,), (1376943876,), (1376943892,), (1376943894,), (1376943895,), (1376943896,), (1376943897,), (1376943899,), (1376943912,), (1376943915,), (1376943916,), (1376943918,), (1376943926,), (1376943929,), (1376943952,), (1376943947,), (1376943958,), (1376943964,), (1376943976,), (1376943981,), (1376944000,), (1376944013,), (1376944015,), (1376944018,), (1376944021,), (1376944023,), (1376944024,), (1376944029,), (1376944032,), (1376944065,), (1376944070,), (1376944072,), (1376944088,), (1376944096,), (1376944114,), (1376944116,), (1376944119,), (1376944122,), (1376944140,), (1376944141,), (1376944143,), (1376944147,), (1376944151,), (1376944163,), (1376944167,), (1376944169,), (1376944172,), (1376944174,), (1376944183,), (1376944185,), (1376944189,), (1376944193,), (1376944202,), (1376944206,), (1376944208,), (1376944210,), (1376944220,), (1376944221,), (1376944222,), (1376944224,), (1376944227,), (1376944233,), (1376944237,), (1376944239,), (1376944242,), (1376944261,), (1376944270,), (1376944274,), (1376944276,), (1376944327,), (1376944358,), (1376944393,), (1376944425,), (1376944459,), (1376944706,), (1376944584,), (1376944615,), (1376944646,), (1376944676,), (1376944966,), (1376945029,), (1376945067,), (1376945099,), (1376945411,), (1376945461,), (1376945516,), (1376946168,), (1376946229,), (1376946312,), (1376946385,), (1376946444,), (1376947000,), (1376947113,), (1376947164,), (1376947218,), (1376947250,), (1376947297,), (1376947499,), (1376947530,), (1376947560,), (1376948091,), (1376948106,), (1376948141,), (1376948150,), (1376948317,), (1376948367,), (1376948401,), (1376948458,), (1376948513,), (1376948544,), (1376948696,), (1376948699,), (1376948719,), (1376948738,), (1376948740,), (1376948742,), (1376948753,), (1376948789,), (1376948792,), (1376948860,), (1376949113,), (1376949164,), (1376949203,), (1376949570,), (1376949573,), (1376949575,), (1376949693,), (1376949627,), (1376949661,), (1376949867,), (1376949890,), (1376949955,), (1376949990,), (1376950274,), (1376950287,), (1376950313,), (1376950346,), (1376950378,), (1376950432,), (1376950626,), (1376950632,), (1376950634,), (1376950643,), (1376950695,), (1376950699,), (1376950702,), (1376950706,), (1376950733,), (1376950855,), (1376950887,), (1376950916,), (1376950922,), (1376950940,), (1376951022,), (1376951026,), (1376951028,), (1376951058,), (1376951061,), (1376951062,), (1376951064,), (1376951066,), (1376951143,), (1376951147,), (1376951170,), (1376951188,), (1376951192,), (1376951233,), (1376951237,), (1376951239,), (1376951241,), (1376951243,), (1376951261,), (1376951264,), (1376951265,), (1376951266,), (1376951347,), (1376951352,), (1376951379,), (1376951388,), (1376951409,), (1376951427,), (1376951456,), (1376951473,), (1376951476,), (1376951478,), (1376951480,), (1376951499,), (1376951506,), (1376951508,), (1376951511,), (1376951514,), (1376951517,), (1376951524,), (1376951526,), (1376951528,), (1376951531,), (1376951534,), (1376951538,), (1376951558,), (1376951562,), (1376951591,), (1376951583,), (1376951585,), (1376951588,), (1376951601,), (1376951605,), (1376951618,), (1376951620,), (1376951622,), (1376951640,), (1376951646,), (1376951648,), (1376951694,), (1376951695,), (1376951697,), (1376951721,), (1376951739,), (1376951742,), (1376951744,), (1376951746,), (1376951749,), (1376951763,), (1376951764,), (1376951772,), (1376951784,), (1376951824,), (1376951829,), (1376951831,), (1376951856,), (1376951859,), (1376951861,), (1376951876,), (1376951880,), (1376951903,), (1376951909,), (1376951912,), (1376951914,), (1376951916,), (1376951928,), (1376951932,), (1376951935,), (1376951937,), (1376951939,), (1376951941,), (1376951949,), (1376951954,), (1376951960,), (1376951963,), (1376951974,), (1376951978,), (1376951979,), (1376951982,), (1376951986,), (1376951998,), (1376952003,), (1376952048,), (1376952034,), (1376952043,), (1376952044,), (1376952061,), (1376952065,), (1376952068,), (1376952085,), (1376952089,), (1376952092,), (1376952095,), (1376952112,), (1376952115,), (1376952117,), (1376952120,), (1376952124,), (1376952127,), (1376952141,), (1376952144,), (1376952146,), (1376952149,), (1376952156,), (1376952159,), (1376952175,), (1376952177,), (1376952179,), (1376952196,), (1376952207,), (1376952210,), (1376952233,), (1376952235,), (1376952238,), (1376952246,), (1376952247,), (1376952248,), (1376952250,), (1376952281,), (1376952282,), (1376952286,), (1376952308,), (1376952311,), (1376952315,), (1376952320,), (1376952323,), (1376952335,), (1376952338,), (1376952341,), (1376952343,), (1376952345,), (1376952347,), (1376952361,), (1376952363,), (1376952365,), (1376952367,), (1376952371,), (1376952375,), (1376952385,), (1376952391,), (1376952394,), (1376952438,), (1376952441,), (1376952442,), (1376952443,), (1376952670,), (1376952765,), (1376952836,), (1376953960,), (1376954008,), (1376954037,), (1376954068,), (1376954101,), (1376952516,), (1376952551,), (1376952611,), (1376953295,), (1376953363,), (1376953447,), (1376953535,), (1376953619,), (1376953703,), (1376954266,), (1376954321,), (1376954396,), (1376954459,), (1376954500,), (1376954532,), (1376954815,), (1376954870,), (1376954930,), (1376954987,), (1376955058,), (1376955210,), (1376955275,), (1376955303,), (1376955332,), (1376955596,), (1376955600,), (1376955602,), (1376955606,), (1376955653,), (1376955684,), (1376955714,), (1376955746,), (1376955779,), (1376955963,), (1376955975,), (1376956077,), (1376956079,), (1376956082,), (1376956086,), (1376956090,), (1376956095,), (1376956107,), (1376956111,), (1376956113,), (1376956116,), (1376956117,), (1376956120,), (1376956146,), (1376956149,), (1376956151,), (1376956154,), (1376956168,), (1376956172,), (1376956174,), (1376956262,), (1376956265,), (1376956267,), (1376956293,), (1376956297,), (1376956298,), (1376956300,), (1376956302,), (1376956327,), (1376956330,), (1376956332,), (1376956335,), (1376956339,), (1376956365,), (1376956350,), (1376956354,), (1376956357,), (1376956361,), (1376956382,), (1376956385,), (1376956387,), (1376956391,), (1376956393,), (1376956396,), (1376956409,), (1376956411,), (1376956414,), (1376956417,), (1376956421,), (1376956425,), (1376956430,), (1376956431,), (1376956432,), (1376956438,), (1376956442,), (1376956444,), (1376956449,), (1376956452,), (1376956455,), (1376956462,), (1376956466,), (1376956468,), (1376956470,), (1376956473,), (1376956476,), (1376956498,), (1376956499,), (1376956500,), (1376956542,), (1376956545,), (1376956547,), (1376956550,), (1376956552,), (1376956568,), (1376956570,), (1376956571,), (1376956573,), (1376956576,), (1376956601,), (1376956608,), (1376956611,), (1376956614,), (1376956633,), (1376956636,), (1376956641,), (1376956644,), (1376956646,), (1376956662,), (1376956664,), (1376956666,), (1376956668,), (1376956670,), (1376956672,), (1376956687,), (1376956695,), (1376956704,), (1376956722,), (1376956740,), (1376956757,), (1376956764,), (1376956767,), (1376956771,), (1376956773,), (1376956789,), (1376956791,), (1376956793,), (1376956822,), (1376956828,), (1376956830,), (1376956834,), (1376956838,), (1376956840,), (1376956876,), (1376956864,), (1376956866,), (1376956867,), (1376956869,), (1376956873,), (1376956894,), (1376956898,), (1376956916,), (1376956930,), (1376956931,), (1376956933,), (1376956934,), (1376956938,), (1376956941,), (1376956952,), (1376956956,), (1376956957,), (1376956960,), (1376956978,), (1376956980,), (1376956983,), (1376956986,), (1376956989,), (1376956998,), (1376957003,), (1376957005,), (1376957007,), (1376957025,), (1376957034,), (1376957048,), (1376957052,), (1376957074,), (1376957077,), (1376957085,), (1376957088,), (1376957089,), (1376957091,), (1376957095,), (1376957292,), (1376957299,), (1376957329,), (1376957452,), (1376957455,), (1376957456,), (1376957458,), (1376957461,), (1376957482,), (1376957486,), (1376957487,), (1376957489,), (1376957493,), (1376957499,), (1376957526,), (1376957528,), (1376957530,), (1376957532,), (1376957548,), (1376957549,), (1376957551,), (1376957554,), (1376957557,), (1376957560,), (1376957568,), (1376957569,), (1376957571,), (1376957589,), (1376957592,), (1376957595,), (1376957598,), (1376957601,), (1376957603,), (1376957611,), (1376957615,), (1376957618,), (1376957622,), (1376957665,), (1376957732,), (1376957649,), (1376957654,), (1376957656,), (1376957659,), (1376957662,), (1376957677,), (1376957687,), (1376957700,), (1376957712,), (1376957717,), (1376957720,), (1376957728,), (1376957730,), (1376957736,), (1376957740,), (1376957747,), (1376957749,), (1376957758,), (1376957761,), (1376957763,), (1376957766,), (1376957770,), (1376957785,), (1376957789,), (1376957791,), (1376957793,), (1376957833,), (1376957835,), (1376957836,), (1376957845,), (1376957858,), (1376957861,), (1376957885,), (1376957886,), (1376957887,), (1376957889,), (1376957932,), (1376957937,), (1376957939,), (1376957941,), (1376957957,), (1376957959,), (1376957967,), (1376957973,), (1376958239,), (1376958405,), (1376958423,), (1376958535,), (1376958575,), (1376958607,), (1376958638,), (1376958790,), (1376958803,), (1376968602,), (1376976771,), (1376976774,), (1376976779,), (1376976810,), (1376976812,), (1376976815,), (1376976861,), (1376976867,), (1376976879,), (1376976886,), (1376976888,), (1376976891,), (1376976950,), (1376976954,), (1376976959,), (1376976964,), (1376976970,), (1376976973,), (1376976978,), (1376976982,), (1376976997,), (1376977000,), (1376977002,), (1376977005,), (1376977008,), (1376977035,), (1376977039,), (1376977041,), (1376977044,), (1376977048,), (1376977107,), (1376977111,), (1376977116,), (1376977121,), (1376977358,), (1376977493,), (1376977527,), (1376977636,), (1376977641,), (1376977645,), (1376977650,), (1376977669,), (1376977673,), (1376977675,), (1376977743,), (1376977839,), (1376977895,), (1376977899,), (1376977966,), (1376977948,), (1376977954,), (1376977957,), (1376977998,), (1376978003,), (1376978005,), (1376978014,), (1376978044,), (1376978048,), (1376978052,), (1376978061,), (1376978212,), (1376978218,), (1376978221,), (1376978224,), (1376978316,), (1376978326,), (1376978329,), (1376978332,), (1376978335,), (1376978401,), (1376978425,), (1376978437,), (1376978440,), (1376978494,), (1376978503,), (1376978506,), (1376978508,), (1376978602,), (1376978606,), (1376978608,), (1376978612,), (1376978663,), (1376978691,), (1376978706,), (1376978709,), (1376978713,), (1376978723,), (1376978728,), (1376978753,), (1376978759,), (1376978762,), (1376978766,), (1376978797,), (1376978801,), (1376978809,), (1376978813,), (1376978829,), (1376978830,), (1376978846,), (1376978847,), (1376978849,), (1376978850,), (1376978859,), (1376978860,), (1376978933,), (1376978907,), (1376978928,), (1376978931,), (1376978970,), (1376978980,), (1376978984,), (1376979019,), (1376979021,), (1376979061,), (1376979066,), (1376979070,), (1376979080,), (1376979085,), (1376979089,), (1376979118,), (1376979123,), (1376979164,), (1376979169,), (1376979212,), (1376979218,), (1376979250,), (1376979259,), (1376979350,), (1376979354,), (1376979356,), (1376979365,), (1376979370,), (1376979403,), (1376979408,), (1376979412,), (1376979455,), (1376979460,), (1376979464,), (1376979474,), (1376979508,), (1376979556,), (1376979562,), (1376979565,), (1376979574,), (1376979658,), (1376979662,), (1376979665,), (1376979674,), (1376979679,), (1376979778,), (1376979784,), (1376979787,), (1376979794,), (1376979825,), (1376979831,), (1376979834,), (1376979844,), (1376979850,), (1376979907,), (1376979880,), (1376979886,), (1376979896,), (1376979900,), (1376979904,), (1376979927,), (1376979984,), (1376980001,), (1376980012,), (1376980020,), (1376980083,), (1376980086,), (1376980096,), (1376980101,), (1376980106,), (1376980135,), (1376980188,), (1376980207,), (1376980294,), (1376980382,), (1376980393,), (1376980398,), (1376980432,), (1376980436,), (1376980482,), (1376980487,), (1376980490,), (1376980503,), (1376980538,), (1376980552,), (1376980555,), (1376980561,), (1376980565,), (1376980638,), (1376980641,), (1376980642,), (1376980651,), (1376980653,), (1376980690,), (1376980692,), (1376980693,), (1376980695,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14082025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25976961]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] map_info['map_portfolio_photo'] : {25976961: [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552, 1376980538, 1376980503, 1376980490, 1376980487, 1376980482, 1376980436, 1376980432, 1376980398, 1376980393, 1376980382, 1376980294, 1376980207, 1376980188, 1376980135, 1376980106, 1376980101, 1376980096, 1376980086, 1376980083, 1376980020, 1376980012, 1376980001, 1376979984, 1376979927, 1376979904, 1376979900, 1376979896, 1376979886, 1376979880]} final : True mtd_id 4302 list_pids : [1376980695, 1376980693, 1376980692, 1376980690, 1376980653, 1376980651, 1376980642, 1376980641, 1376980638, 1376980565, 1376980561, 1376980555, 1376980552] Looping around the photos to save general results len do output : 1 /25976961Didn'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, '3532451') ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451') ('4302', None, None, None, None, None, None, None, '3532451') ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '25976961', 'None', None, None, None, None, '3532451'), ('4302', '25976961', '1376980695', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980693', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980692', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980690', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980653', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980651', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980642', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980641', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980638', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980565', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980561', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980555', None, None, None, None, None, '3532451'), ('4302', '25976961', '1376980552', None, None, None, None, None, '3532451')] time used for this insertion : 0.014908790588378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2249083518981934 time spend to save output : 0.015218019485473633 total time spend for step 5 : 2.240126371383667 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 (3532451) 2.39user 2.10system 0:08.69elapsed 51%CPU (0avgtext+0avgdata 161292maxresident)k 920inputs+8080outputs (21major+77642minor)pagefaults 0swaps