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 : 857360 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 (3439242) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3439242) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652913 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3439242'] with mtr_portfolio_ids : ['25652913'] and first list_photo_ids : [] new path : /proc/857360/ Name: python3 Umask: 0002 State: R (running) Tgid: 857360 Ngid: 0 Pid: 857360 PPid: 857359 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 857360 NSpid: 857360 NSpgid: 855724 NSsid: 855724 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98400 kB VmRSS: 98400 kB RssAnon: 59820 kB RssFile: 38580 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 58 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '857360', 'Ngid': '0', 'Pid': '857360', 'PPid': '857359', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '857360', 'NSpid': '857360', 'NSpgid': '855724', 'NSsid': '855724', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98400 kB', 'VmRSS': '98400 kB', 'RssAnon': '59820 kB', 'RssFile': '38580 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '58', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '857360', '1106964', '0', '1106964', '865716', '98400', b'', 'marlene', '3439242') 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 (25652913) 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 (3439242 ) ) 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 (25652913) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375170753, 'portfolio_id': 25652913}, {'photo_id': 1375170751, 'portfolio_id': 25652913}, {'photo_id': 1375170750, 'portfolio_id': 25652913}, {'photo_id': 1375170749, 'portfolio_id': 25652913}, {'photo_id': 1375170729, 'portfolio_id': 25652913}, {'photo_id': 1375170727, 'portfolio_id': 25652913}, {'photo_id': 1375170726, 'portfolio_id': 25652913}, {'photo_id': 1375170710, 'portfolio_id': 25652913}, {'photo_id': 1375170616, 'portfolio_id': 25652913}, {'photo_id': 1375170603, 'portfolio_id': 25652913}, {'photo_id': 1375170600, 'portfolio_id': 25652913}, {'photo_id': 1375170591, 'portfolio_id': 25652913}, {'photo_id': 1375170571, 'portfolio_id': 25652913}, {'photo_id': 1375170396, 'portfolio_id': 25652913}, {'photo_id': 1375170369, 'portfolio_id': 25652913}, {'photo_id': 1375170338, 'portfolio_id': 25652913}] map_portfolio_id_photo_id: {25652913: [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571, 1375170396, 1375170369, 1375170338]} ##### 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.014796018600463867 #### 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 Mon Aug 4 22:34:57 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 (25652913) 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 : 25652913 get user id for portfolio 25652913 get sub ptf for main ptf 25652913, type 3726 and hashtags ['flou', 'Carton_brun', 'metal', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'mal_croppe', 'autre_refus', 'environnement', 'Carton_gris', 'kraft', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25652913 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','metal','Teint_Dans_La_Masse','cartonnette','plastique','mal_croppe','autre_refus','environnement','Carton_gris','kraft','papier')) 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`=25652913 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','metal','Teint_Dans_La_Masse','cartonnette','plastique','mal_croppe','autre_refus','environnement','Carton_gris','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25652913, 'sub_port_id': 25652932, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295629, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'Carton_gris': {'main_port_id': 25652913, 'sub_port_id': 25652933, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295630, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'environnement': {'main_port_id': 25652913, 'sub_port_id': 25652934, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295631, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'mal_croppe': {'main_port_id': 25652913, 'sub_port_id': 25652935, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295632, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'metal': {'main_port_id': 25652913, 'sub_port_id': 25652936, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295633, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'Carton_brun': {'main_port_id': 25652913, 'sub_port_id': 25652937, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295634, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25652913, 'sub_port_id': 25652938, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295635, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'flou': {'main_port_id': 25652913, 'sub_port_id': 25652939, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295636, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'kraft': {'main_port_id': 25652913, 'sub_port_id': 25652940, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295637, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'autre_refus': {'main_port_id': 25652913, 'sub_port_id': 25652941, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295638, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'cartonnette': {'main_port_id': 25652913, 'sub_port_id': 25652942, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295639, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}, 'plastique': {'main_port_id': 25652913, 'sub_port_id': 25652943, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295640, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25652932 , 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=25652913 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 (25652932) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652933 , 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=25652913 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 (25652933) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652934 , 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=25652913 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 (25652934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652935 , 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=25652913 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 (25652935) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652936 , 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=25652913 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 (25652936) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652937 , 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=25652913 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 (25652937) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652938 , 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=25652913 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 (25652938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652939 , 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=25652913 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 (25652939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652940 , 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=25652913 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 (25652940) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652941 , 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=25652913 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 (25652941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652942 , 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=25652913 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 (25652942) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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 25652943 , 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=25652913 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 (25652943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25652913) result : ((1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) 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 (1375170600) 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`=25652913 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','metal','Teint_Dans_La_Masse','cartonnette','plastique','mal_croppe','autre_refus','environnement','Carton_gris','kraft','papier')) 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`=25652913 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','metal','Teint_Dans_La_Masse','cartonnette','plastique','mal_croppe','autre_refus','environnement','Carton_gris','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25652913, 'sub_port_id': 25652946, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295641, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'Carton_gris': {'main_port_id': 25652913, 'sub_port_id': 25652947, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295642, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'environnement': {'main_port_id': 25652913, 'sub_port_id': 25652948, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295643, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'mal_croppe': {'main_port_id': 25652913, 'sub_port_id': 25652949, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295644, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'metal': {'main_port_id': 25652913, 'sub_port_id': 25652950, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295645, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'Carton_brun': {'main_port_id': 25652913, 'sub_port_id': 25652951, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295646, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 25652913, 'sub_port_id': 25652952, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295647, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'flou': {'main_port_id': 25652913, 'sub_port_id': 25652953, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295648, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'kraft': {'main_port_id': 25652913, 'sub_port_id': 25652954, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295649, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'autre_refus': {'main_port_id': 25652913, 'sub_port_id': 25652955, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295650, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'cartonnette': {'main_port_id': 25652913, 'sub_port_id': 25652956, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295651, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}, 'plastique': {'main_port_id': 25652913, 'sub_port_id': 25652957, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17295652, 'last_updated_at': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 22, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 22, 33, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25652957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25652943 lien utilise dans velours : https://www.fotonower.com/velours/25652946,25652947,25652948,25652949,25652950,25652951,25652952,25652953,25652954,25652955,25652956,25652957?tags=papier,Carton_gris,environnement,mal_croppe,metal,Carton_brun,Teint_Dans_La_Masse,flou,kraft,autre_refus,cartonnette,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25652913]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] map_info['map_portfolio_photo'] : {25652913: [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571, 1375170396, 1375170369, 1375170338]} final : False mtd_id 4302 list_pids : [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] Looping around the photos to save general results len do output : 1 /25652913. 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, '3439242') ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242') 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, '25652913', "{'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943}", None, None, None, None, '3439242'), ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242')] time used for this insertion : 0.014723539352416992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3936018943786621 time spend to save output : 0.01508474349975586 total time spend for step 1 : 0.40868663787841797 step2:final Mon Aug 4 22:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25652913) 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 25652913 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375170396,1375170369,1375170338,1375170616,1375170603,1375170600,1375170591,1375170571,1375170729,1375170727,1375170726,1375170710,1375170753,1375170751,1375170750,1375170749); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25652913]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} new output for save of step final : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] map_info['map_portfolio_photo'] : {25652913: [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571, 1375170396, 1375170369, 1375170338]} final : False mtd_id 4302 list_pids : [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] Looping around the photos to save general results len do output : 13 /1375170753.Didn't retrieve data . /1375170751.Didn't retrieve data . /1375170750.Didn't retrieve data . /1375170749.Didn't retrieve data . /1375170729.Didn't retrieve data . /1375170727.Didn't retrieve data . /1375170726.Didn't retrieve data . /1375170710.Didn't retrieve data . /1375170616.Didn't retrieve data . /1375170603.Didn't retrieve data . /1375170600.Didn't retrieve data . /1375170591.Didn't retrieve data . /1375170571.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, '3439242') ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242') 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', '25652913', '1375170753', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170751', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170750', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170749', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170729', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170727', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170726', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170710', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170616', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170603', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170600', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170591', '0.0', None, None, None, None, '3439242'), ('4302', '25652913', '1375170571', '0.0', None, None, None, None, '3439242')] time used for this insertion : 0.013770341873168945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04949307441711426 time spend to save output : 0.014464855194091797 total time spend for step 2 : 0.06395792961120605 step3:velours_tree Mon Aug 4 22:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25652913: [{'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943}]} input_args_next_step : {25652913: ()} output_args : {25652913: [{'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943}]} args : 25652913 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 : ({'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25652913) 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([25652913]) 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.3109116554260254 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.3109862804412842 step4:send_mail_cod Mon Aug 4 22:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} input_args_next_step : {1375170753: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170753 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170751 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170750 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170749 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170729 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170727 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170726 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170710 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170616 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170603 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170600 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170591 depend.output_id : 0 input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ()} output_args : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',)} args : 1375170571 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 : {25652913: [{'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943}]} input_args_next_step : {1375170753: ('0.0',), 1375170751: ('0.0',), 1375170750: ('0.0',), 1375170749: ('0.0',), 1375170729: ('0.0',), 1375170727: ('0.0',), 1375170726: ('0.0',), 1375170710: ('0.0',), 1375170616: ('0.0',), 1375170603: ('0.0',), 1375170600: ('0.0',), 1375170591: ('0.0',), 1375170571: ('0.0',), 25652913: ()} output_args : {25652913: [{'papier': 25652932, 'Carton_gris': 25652933, 'environnement': 25652934, 'mal_croppe': 25652935, 'metal': 25652936, 'Carton_brun': 25652937, 'Teint_Dans_La_Masse': 25652938, 'flou': 25652939, 'kraft': 25652940, 'autre_refus': 25652941, 'cartonnette': 25652942, 'plastique': 25652943}]} args : 25652913 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 (25652913) 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 (1375170753,1375170751,1375170750,1375170749,1375170729,1375170727,1375170726,1375170710,1375170616,1375170603,1375170600,1375170591,1375170571) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375170571 begin to download photo : 1375170603 begin to download photo : 1375170726 begin to download photo : 1375170749 begin to download photo : 1375170753 download finish for photo 1375170571 begin to download photo : 1375170591 download finish for photo 1375170603 begin to download photo : 1375170616 download finish for photo 1375170753 download finish for photo 1375170749 begin to download photo : 1375170750 download finish for photo 1375170726 begin to download photo : 1375170727 download finish for photo 1375170616 begin to download photo : 1375170710 download finish for photo 1375170750 begin to download photo : 1375170751 download finish for photo 1375170727 begin to download photo : 1375170729 download finish for photo 1375170591 begin to download photo : 1375170600 download finish for photo 1375170710 download finish for photo 1375170729 download finish for photo 1375170751 download finish for photo 1375170600 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette256529351754339699/ imagette256529361754339699/ imagette256529391754339699/ imagette256529401754339699/ imagette256529411754339699/ imagette256529421754339699/ imagette256529431754339699/ imagette256529331754339699/ imagette256529371754339699/ imagette256529381754339699/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P25652913_04-08-2025_22_34_59.pdf 25652935 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=25652935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529351754339699 25652936 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=25652936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529361754339699 25652939 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=25652939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529391754339699 25652940 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=25652940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529401754339699 25652941 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=25652941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529411754339699 25652942 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=25652942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529421754339699 25652943 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=25652943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529431754339699 25652933 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=25652933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529331754339699 25652937 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=25652937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529371754339699 25652938 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=25652938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256529381754339699 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25652913 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25652946,25652947,25652948,25652949,25652950,25652951,25652952,25652953,25652954,25652955,25652956,25652957?tags=papier,Carton_gris,environnement,mal_croppe,metal,Carton_brun,Teint_Dans_La_Masse,flou,kraft,autre_refus,cartonnette,plastique your option no_mail is active, we will not send the real mail to your client args[1375170753] : ('0.0',) no score found for photo 1375170753 We are sending mail with results at report@fotonower.com args[1375170751] : ('0.0',) no score found for photo 1375170751 We are sending mail with results at report@fotonower.com args[1375170750] : ('0.0',) no score found for photo 1375170750 We are sending mail with results at report@fotonower.com args[1375170749] : ('0.0',) no score found for photo 1375170749 We are sending mail with results at report@fotonower.com args[1375170729] : ('0.0',) no score found for photo 1375170729 We are sending mail with results at report@fotonower.com args[1375170727] : ('0.0',) no score found for photo 1375170727 We are sending mail with results at report@fotonower.com args[1375170726] : ('0.0',) no score found for photo 1375170726 We are sending mail with results at report@fotonower.com args[1375170710] : ('0.0',) no score found for photo 1375170710 We are sending mail with results at report@fotonower.com args[1375170616] : ('0.0',) no score found for photo 1375170616 We are sending mail with results at report@fotonower.com args[1375170603] : ('0.0',) no score found for photo 1375170603 We are sending mail with results at report@fotonower.com args[1375170600] : ('0.0',) no score found for photo 1375170600 We are sending mail with results at report@fotonower.com args[1375170591] : ('0.0',) no score found for photo 1375170591 We are sending mail with results at report@fotonower.com args[1375170571] : ('0.0',) no score found for photo 1375170571 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=25652913 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_P25652913_04-08-2025_22_34_59.pdf results_Auto_P25652913_04-08-2025_22_34_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652913_04-08-2025_22_34_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25652913','results_Auto_P25652913_04-08-2025_22_34_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652913_04-08-2025_22_34_59.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25652913]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] map_info['map_portfolio_photo'] : {25652913: [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571, 1375170396, 1375170369, 1375170338]} final : False mtd_id 4302 list_pids : [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] 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, '3439242') ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242') 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', '25652913', '1375170753', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242')] time used for this insertion : 0.016938209533691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6216840744018555 time spend to save output : 0.017162084579467773 total time spend for step 4 : 1.6388461589813232 step5:split_time_score Mon Aug 4 22:35:00 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 : ['25652913'] 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 : [('25652913',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25652913) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375170753: {'path': 'temp/1754339698_857360_1375170753_7ed2fe3486a5de94ce497c23b1d8767e.jpg', 'extension': 'jpg'}, 1375170603: {'path': 'temp/1754339698_857360_1375170603_63ddbf4017b95a80325ab143a23955ca.jpg', 'extension': 'jpg'}, 1375170616: {'path': 'temp/1754339698_857360_1375170616_a6de60ebb873a090127b8b80f77ad09d.jpg', 'extension': 'jpg'}, 1375170710: {'path': 'temp/1754339698_857360_1375170710_ca4052dbc954a87ddef54f5f544ddebc.jpg', 'extension': 'jpg'}, 1375170726: {'path': 'temp/1754339698_857360_1375170726_b2ffe3995b2b80531b983b656136f49b.jpg', 'extension': 'jpg'}, 1375170727: {'path': 'temp/1754339698_857360_1375170727_ce5c63b2b0d2fc3ee72d54dd43e4ee4e.jpg', 'extension': 'jpg'}, 1375170729: {'path': 'temp/1754339698_857360_1375170729_12eea16728f9879a08e7adfece41d1b0.jpg', 'extension': 'jpg'}, 1375170749: {'path': 'temp/1754339698_857360_1375170749_b916994ba21224ae61f0eb1fe42c9f85.jpg', 'extension': 'jpg'}, 1375170750: {'path': 'temp/1754339698_857360_1375170750_1d58ad2775a4fffeefa263744c07182c.jpg', 'extension': 'jpg'}, 1375170751: {'path': 'temp/1754339698_857360_1375170751_14f00a0e2a70812480aaef7239acad6d.jpg', 'extension': 'jpg'}, 1375170571: {'path': 'temp/1754339698_857360_1375170571_7abf18baa0eb9416f798c0dfcd4ca511.jpg', 'extension': 'jpg'}, 1375170591: {'path': 'temp/1754339698_857360_1375170591_c653e2195b558a06dd4273f75f1dc465.jpg', 'extension': 'jpg'}, 1375170600: {'path': 'temp/1754339698_857360_1375170600_91365cf1d995e2566ab61a10873b716a.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 = 25652913; (('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 = 25652913 group by h (('22', 16),) 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=25652913 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 (25652913) 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 (25652913) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04082025 25652913 Nombre de photos uploadées : 16 / 23040 (0%) 04082025 25652913 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 04082025 25652913 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1375170396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/8f5274c9c6ea91da03bf6ae30033b34f.jpg', 'username': None, 'uploaded_at': 1754339472, 'text': 'image_04082025_22_30_05_10138.jpg'}, {'photo_id': 1375170369, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/f41d643154dd591e5f01be99bbc90fea.jpg', 'username': None, 'uploaded_at': 1754339472, 'text': 'image_04082025_22_30_14_9125.jpg'}, {'photo_id': 1375170338, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/cb96dcda94408fbd3e4107829b9a41d4.jpg', 'username': None, 'uploaded_at': 1754339472, 'text': 'image_04082025_22_30_24_10136.jpg'}, {'photo_id': 1375170616, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/a6de60ebb873a090127b8b80f77ad09d.jpg', 'username': None, 'uploaded_at': 1754339532, 'text': 'image_04082025_22_30_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008943080902099609 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25652913, '2025-08-04' ) 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-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2055199,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21337270736694336 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= 2055199 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25626685, 'dashboard_result_id': 13561127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25626882, 'dashboard_result_id': 13561128, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25627175, 'dashboard_result_id': 13561129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25627892, 'dashboard_result_id': 13561131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25628013, 'dashboard_result_id': 13561132, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25628303, 'dashboard_result_id': 13561133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25629056, 'dashboard_result_id': 13561134, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25629211, 'dashboard_result_id': 13561135, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25629456, 'dashboard_result_id': 13561136, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25629837, 'dashboard_result_id': 13561137, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25630398, 'dashboard_result_id': 13561138, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25630863, 'dashboard_result_id': 13561139, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25631422, 'dashboard_result_id': 13561140, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25632607, 'dashboard_result_id': 13561141, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25633178, 'dashboard_result_id': 13561142, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25633267, 'dashboard_result_id': 13561143, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25633910, 'dashboard_result_id': 13561144, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25634253, 'dashboard_result_id': 13561145, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25634599, 'dashboard_result_id': 13561146, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25635026, 'dashboard_result_id': 13561147, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25635624, 'dashboard_result_id': 13561148, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25636062, 'dashboard_result_id': 13561149, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25636503, 'dashboard_result_id': 13561150, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25636886, 'dashboard_result_id': 13561151, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25638616, 'dashboard_result_id': 13561152, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25638768, 'dashboard_result_id': 13561153, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25639033, 'dashboard_result_id': 13561154, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25639429, 'dashboard_result_id': 13561155, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25639623, 'dashboard_result_id': 13561156, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25639888, 'dashboard_result_id': 13561157, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_16_25_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639915, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25640848, 'dashboard_result_id': 13561158, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25641106, 'dashboard_result_id': 13561159, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25641532, 'dashboard_result_id': 13561160, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25641959, 'dashboard_result_id': 13561161, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25642597, 'dashboard_result_id': 13561162, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642597_04-08-2025_17_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642612, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25642797, 'dashboard_result_id': 13561163, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25643206, 'dashboard_result_id': 13561164, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25644407, 'dashboard_result_id': 13561165, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25644820, 'dashboard_result_id': 13561166, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25645214, 'dashboard_result_id': 13561167, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25645634, 'dashboard_result_id': 13561168, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25646118, 'dashboard_result_id': 13561169, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25646740, 'dashboard_result_id': 13561170, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646787, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25647184, 'dashboard_result_id': 13561171, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647184_04-08-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647227, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25647742, 'dashboard_result_id': 13561172, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647742_04-08-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647786, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25648223, 'dashboard_result_id': 13561173, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648223_04-08-2025_20_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25648287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648298, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25648831, 'dashboard_result_id': 13561174, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648831_04-08-2025_20_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25648852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648862, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25649228, 'dashboard_result_id': 13561175, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25649228_04-08-2025_20_44_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25649262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25649264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25649265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25649266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25649267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25649268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25649269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25649270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25649271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25649272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25649273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25649274, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25651110, 'dashboard_result_id': 13561176, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651110_04-08-2025_22_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25651118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651128, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25651569, 'dashboard_result_id': 13561177, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651569_04-08-2025_22_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25651611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651622, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25652328, 'dashboard_result_id': 13561178, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652328_04-08-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25652347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25652348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25652349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25652350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25652351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25652352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25652353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25652354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25652355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25652356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25652357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25652358, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2068971, 'mtr_portfolio_id': 25652913, 'dashboard_result_id': 13561179, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652913_04-08-2025_22_33_36.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25626685 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429655, 'mtr_portfolio_id': 25626685, 'created_at': datetime.datetime(2025, 8, 4, 5, 17), 'result': '0.05648562522524135', 'result_long': None, 'result_double': None}] Qualite : 0.05648562522524135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25626685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25626685 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, 'pht': 3726}}" where mtr_portfolio_id = 25626685 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25626685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561127, 0.05648562522524135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, '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 = 25626882 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429694, 'mtr_portfolio_id': 25626882, 'created_at': datetime.datetime(2025, 8, 4, 5, 36, 31), 'result': '0.029916060513912043', 'result_long': None, 'result_double': None}] Qualite : 0.029916060513912043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25626882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25626882 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, 'pht': 3726}}" where mtr_portfolio_id = 25626882 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25626882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561128, 0.029916060513912043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, '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 = 25627175 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429790, 'mtr_portfolio_id': 25627175, 'created_at': datetime.datetime(2025, 8, 4, 6, 20, 58), 'result': '0.03489243569320978', 'result_long': None, 'result_double': None}] Qualite : 0.03489243569320978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25627175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25627175 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, 'pht': 3726}}" where mtr_portfolio_id = 25627175 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25627175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561129, 0.03489243569320978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, '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 = 25627892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429979, 'mtr_portfolio_id': 25627892, 'created_at': datetime.datetime(2025, 8, 4, 6, 34, 59), 'result': '0.043597261028997226', 'result_long': None, 'result_double': None}] Qualite : 0.043597261028997226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25627892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25627892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, 'pht': 3726}}" where mtr_portfolio_id = 25627892 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25627892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561131, 0.043597261028997226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, '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 = 25628013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430010, 'mtr_portfolio_id': 25628013, 'created_at': datetime.datetime(2025, 8, 4, 6, 47, 1), 'result': '0.07528744149381071', 'result_long': None, 'result_double': None}] Qualite : 0.07528744149381071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25628013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25628013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, 'pht': 3726}}" where mtr_portfolio_id = 25628013 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25628013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561132, 0.07528744149381071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, '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 = 25628303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430097, 'mtr_portfolio_id': 25628303, 'created_at': datetime.datetime(2025, 8, 4, 7, 21, 28), 'result': '0.031837840229790776', 'result_long': None, 'result_double': None}] Qualite : 0.031837840229790776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25628303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25628303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, 'pht': 3726}}" where mtr_portfolio_id = 25628303 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25628303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561133, 0.031837840229790776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, '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 = 25629056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430339, 'mtr_portfolio_id': 25629056, 'created_at': datetime.datetime(2025, 8, 4, 7, 32, 59), 'result': '0.031762630395397166', 'result_long': None, 'result_double': None}] Qualite : 0.031762630395397166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, 'pht': 3726}}" where mtr_portfolio_id = 25629056 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561134, 0.031762630395397166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, '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 = 25629211 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430405, 'mtr_portfolio_id': 25629211, 'created_at': datetime.datetime(2025, 8, 4, 7, 47), 'result': '0.054070794273323806', 'result_long': None, 'result_double': None}] Qualite : 0.054070794273323806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629211 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, 'pht': 3726}}" where mtr_portfolio_id = 25629211 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561135, 0.054070794273323806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, '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 = 25629456 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430493, 'mtr_portfolio_id': 25629456, 'created_at': datetime.datetime(2025, 8, 4, 8, 3), 'result': '0.0425232015476235', 'result_long': None, 'result_double': None}] Qualite : 0.0425232015476235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629456 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, 'pht': 3726}}" where mtr_portfolio_id = 25629456 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561136, 0.0425232015476235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, '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 = 25629837 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430672, 'mtr_portfolio_id': 25629837, 'created_at': datetime.datetime(2025, 8, 4, 8, 16, 59), 'result': '0.07792245153552262', 'result_long': None, 'result_double': None}] Qualite : 0.07792245153552262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629837 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, 'pht': 3726}}" where mtr_portfolio_id = 25629837 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561137, 0.07792245153552262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, '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 = 25630398 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430905, 'mtr_portfolio_id': 25630398, 'created_at': datetime.datetime(2025, 8, 4, 8, 32, 57), 'result': '0.08088320189388051', 'result_long': None, 'result_double': None}] Qualite : 0.08088320189388051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25630398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25630398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, 'pht': 3726}}" where mtr_portfolio_id = 25630398 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25630398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561138, 0.08088320189388051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, '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 = 25630863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431125, 'mtr_portfolio_id': 25630863, 'created_at': datetime.datetime(2025, 8, 4, 8, 46, 57), 'result': '0.04889978098275844', 'result_long': None, 'result_double': None}] Qualite : 0.04889978098275844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25630863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25630863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, 'pht': 3726}}" where mtr_portfolio_id = 25630863 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25630863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561139, 0.04889978098275844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, '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 = 25631422 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431362, 'mtr_portfolio_id': 25631422, 'created_at': datetime.datetime(2025, 8, 4, 9, 34, 59), 'result': '0.0493744862914315', 'result_long': None, 'result_double': None}] Qualite : 0.0493744862914315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25631422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25631422 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, 'pht': 3726}}" where mtr_portfolio_id = 25631422 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25631422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561140, 0.0493744862914315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, '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 = 25632607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431849, 'mtr_portfolio_id': 25632607, 'created_at': datetime.datetime(2025, 8, 4, 9, 56, 59), 'result': '0.043566782272666464', 'result_long': None, 'result_double': None}] Qualite : 0.043566782272666464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25632607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25632607 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, 'pht': 3726}}" where mtr_portfolio_id = 25632607 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25632607 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561141, 0.043566782272666464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, '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 = 25633178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431971, 'mtr_portfolio_id': 25633178, 'created_at': datetime.datetime(2025, 8, 4, 10, 3), 'result': '0.03506150318190517', 'result_long': None, 'result_double': None}] Qualite : 0.03506150318190517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, 'pht': 3726}}" where mtr_portfolio_id = 25633178 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561142, 0.03506150318190517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, '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 = 25633267 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431998, 'mtr_portfolio_id': 25633267, 'created_at': datetime.datetime(2025, 8, 4, 10, 17), 'result': '0.024798719441786084', 'result_long': None, 'result_double': None}] Qualite : 0.024798719441786084 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633267 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, 'pht': 3726}}" where mtr_portfolio_id = 25633267 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561143, 0.024798719441786084, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, '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 = 25633910 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432109, 'mtr_portfolio_id': 25633910, 'created_at': datetime.datetime(2025, 8, 4, 10, 33, 31), 'result': '0.08209164754837169', 'result_long': None, 'result_double': None}] Qualite : 0.08209164754837169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633910 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, 'pht': 3726}}" where mtr_portfolio_id = 25633910 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561144, 0.08209164754837169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, '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 = 25634253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432203, 'mtr_portfolio_id': 25634253, 'created_at': datetime.datetime(2025, 8, 4, 10, 47), 'result': '0.0692149309258792', 'result_long': None, 'result_double': None}] Qualite : 0.0692149309258792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25634253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25634253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, 'pht': 3726}}" where mtr_portfolio_id = 25634253 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25634253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561145, 0.0692149309258792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, '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 = 25634599 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432340, 'mtr_portfolio_id': 25634599, 'created_at': datetime.datetime(2025, 8, 4, 11, 3, 29), 'result': '0.036726822047875356', 'result_long': None, 'result_double': None}] Qualite : 0.036726822047875356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25634599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25634599 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, 'pht': 3726}}" where mtr_portfolio_id = 25634599 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25634599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561146, 0.036726822047875356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, '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 = 25635026 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432547, 'mtr_portfolio_id': 25635026, 'created_at': datetime.datetime(2025, 8, 4, 11, 18, 59), 'result': '0.030708449498992468', 'result_long': None, 'result_double': None}] Qualite : 0.030708449498992468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25635026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25635026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, 'pht': 3726}}" where mtr_portfolio_id = 25635026 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25635026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561147, 0.030708449498992468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, '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 = 25635624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432765, 'mtr_portfolio_id': 25635624, 'created_at': datetime.datetime(2025, 8, 4, 11, 34, 59), 'result': '0.058176054194406863', 'result_long': None, 'result_double': None}] Qualite : 0.058176054194406863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25635624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25635624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, 'pht': 3726}}" where mtr_portfolio_id = 25635624 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25635624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561148, 0.058176054194406863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, '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 = 25636062 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432985, 'mtr_portfolio_id': 25636062, 'created_at': datetime.datetime(2025, 8, 4, 11, 49, 29), 'result': '0.06652880728973268', 'result_long': None, 'result_double': None}] Qualite : 0.06652880728973268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636062 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, 'pht': 3726}}" where mtr_portfolio_id = 25636062 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561149, 0.06652880728973268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, '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 = 25636503 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433179, 'mtr_portfolio_id': 25636503, 'created_at': datetime.datetime(2025, 8, 4, 12, 2, 58), 'result': '0.04148410780394579', 'result_long': None, 'result_double': None}] Qualite : 0.04148410780394579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, 'pht': 3726}}" where mtr_portfolio_id = 25636503 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561150, 0.04148410780394579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, '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 = 25636886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433380, 'mtr_portfolio_id': 25636886, 'created_at': datetime.datetime(2025, 8, 4, 13, 59, 58), 'result': '0.04813636538281493', 'result_long': None, 'result_double': None}] Qualite : 0.04813636538281493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, 'pht': 3726}}" where mtr_portfolio_id = 25636886 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561151, 0.04813636538281493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, '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 = 25638616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433980, 'mtr_portfolio_id': 25638616, 'created_at': datetime.datetime(2025, 8, 4, 13, 46, 58), 'result': '0.13976115487838234', 'result_long': None, 'result_double': None}] Qualite : 0.13976115487838234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25638616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25638616 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, 'pht': 3726}}" where mtr_portfolio_id = 25638616 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25638616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561152, 0.13976115487838234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, '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 = 25638768 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433999, 'mtr_portfolio_id': 25638768, 'created_at': datetime.datetime(2025, 8, 4, 14, 3), 'result': '0.03345273200558115', 'result_long': None, 'result_double': None}] Qualite : 0.03345273200558115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25638768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25638768 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, 'pht': 3726}}" where mtr_portfolio_id = 25638768 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25638768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561153, 0.03345273200558115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, '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 = 25639033 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434077, 'mtr_portfolio_id': 25639033, 'created_at': datetime.datetime(2025, 8, 4, 14, 21, 32), 'result': '0.03070413069196656', 'result_long': None, 'result_double': None}] Qualite : 0.03070413069196656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639033 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, 'pht': 3726}}" where mtr_portfolio_id = 25639033 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561154, 0.03070413069196656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, '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 = 25639429 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434152, 'mtr_portfolio_id': 25639429, 'created_at': datetime.datetime(2025, 8, 4, 14, 33), 'result': '0.030554129115213123', 'result_long': None, 'result_double': None}] Qualite : 0.030554129115213123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639429 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, 'pht': 3726}}" where mtr_portfolio_id = 25639429 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561155, 0.030554129115213123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, '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 = 25639623 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434194, 'mtr_portfolio_id': 25639623, 'created_at': datetime.datetime(2025, 8, 4, 14, 47), 'result': '0.08073807902156382', 'result_long': None, 'result_double': None}] Qualite : 0.08073807902156382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, 'pht': 3726}}" where mtr_portfolio_id = 25639623 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561156, 0.08073807902156382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, '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 = 25639888 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434287, 'mtr_portfolio_id': 25639888, 'created_at': datetime.datetime(2025, 8, 4, 16, 25, 58), 'result': '0.08677193086211935', 'result_long': None, 'result_double': None}] Qualite : 0.08677193086211935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_16_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639888 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_16_25_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639915, 'pht': 3726}}" where mtr_portfolio_id = 25639888 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561157, 0.08677193086211935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_16_25_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639915, '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 = 25640848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434578, 'mtr_portfolio_id': 25640848, 'created_at': datetime.datetime(2025, 8, 4, 16, 3), 'result': '0.04104678386786433', 'result_long': None, 'result_double': None}] Qualite : 0.04104678386786433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25640848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25640848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, 'pht': 3726}}" where mtr_portfolio_id = 25640848 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25640848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561158, 0.04104678386786433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, '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 = 25641106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434656, 'mtr_portfolio_id': 25641106, 'created_at': datetime.datetime(2025, 8, 4, 16, 18, 58), 'result': '0.039771584218669796', 'result_long': None, 'result_double': None}] Qualite : 0.039771584218669796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, 'pht': 3726}}" where mtr_portfolio_id = 25641106 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561159, 0.039771584218669796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, '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 = 25641532 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434776, 'mtr_portfolio_id': 25641532, 'created_at': datetime.datetime(2025, 8, 4, 17, 46, 1), 'result': '0.04311517764378336', 'result_long': None, 'result_double': None}] Qualite : 0.04311517764378336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641532 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, 'pht': 3726}}" where mtr_portfolio_id = 25641532 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561160, 0.04311517764378336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, '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 = 25641959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434914, 'mtr_portfolio_id': 25641959, 'created_at': datetime.datetime(2025, 8, 4, 16, 50, 30), 'result': '0.028608476345594318', 'result_long': None, 'result_double': None}] Qualite : 0.028608476345594318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, 'pht': 3726}}" where mtr_portfolio_id = 25641959 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561161, 0.028608476345594318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, '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 = 25642597 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 = 25642597 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 = 25642597 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25642597 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 = 25642597 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 = 25642597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642597_04-08-2025_17_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25642597 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642597_04-08-2025_17_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642612, 'pht': 3726}}" where mtr_portfolio_id = 25642597 and dashboard_run_id = 2068971 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25642797 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3435183, 'mtr_portfolio_id': 25642797, 'created_at': datetime.datetime(2025, 8, 4, 17, 16, 59), 'result': '0.0555831347668337', 'result_long': None, 'result_double': None}] Qualite : 0.0555831347668337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25642797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25642797 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, 'pht': 3726}}" where mtr_portfolio_id = 25642797 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25642797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561163, 0.0555831347668337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, '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 = 25643206 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3435291, 'mtr_portfolio_id': 25643206, 'created_at': datetime.datetime(2025, 8, 4, 18, 2, 59), 'result': '0.048897836367251965', 'result_long': None, 'result_double': None}] Qualite : 0.048897836367251965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25643206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25643206 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, 'pht': 3726}}" where mtr_portfolio_id = 25643206 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25643206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561164, 0.048897836367251965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, '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 = 25644407 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3435749, 'mtr_portfolio_id': 25644407, 'created_at': datetime.datetime(2025, 8, 4, 18, 17), 'result': '0.05938662517163282', 'result_long': None, 'result_double': None}] Qualite : 0.05938662517163282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25644407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25644407 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, 'pht': 3726}}" where mtr_portfolio_id = 25644407 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25644407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561165, 0.05938662517163282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, '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 = 25644820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3435853, 'mtr_portfolio_id': 25644820, 'created_at': datetime.datetime(2025, 8, 4, 18, 32, 59), 'result': '0.03394024305837034', 'result_long': None, 'result_double': None}] Qualite : 0.03394024305837034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25644820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25644820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, 'pht': 3726}}" where mtr_portfolio_id = 25644820 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25644820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561166, 0.03394024305837034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, '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 = 25645214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3435949, 'mtr_portfolio_id': 25645214, 'created_at': datetime.datetime(2025, 8, 4, 18, 46, 58), 'result': '0.10474727337663416', 'result_long': None, 'result_double': None}] Qualite : 0.10474727337663416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25645214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25645214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, 'pht': 3726}}" where mtr_portfolio_id = 25645214 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25645214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561167, 0.10474727337663416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, '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 = 25645634 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3436105, 'mtr_portfolio_id': 25645634, 'created_at': datetime.datetime(2025, 8, 4, 19, 2, 58), 'result': '0.01161932050816592', 'result_long': None, 'result_double': None}] Qualite : 0.01161932050816592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25645634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25645634 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, 'pht': 3726}}" where mtr_portfolio_id = 25645634 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25645634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561168, 0.01161932050816592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, '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 = 25646118 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3436373, 'mtr_portfolio_id': 25646118, 'created_at': datetime.datetime(2025, 8, 4, 19, 18, 58), 'result': '0.05051556666714217', 'result_long': None, 'result_double': None}] Qualite : 0.05051556666714217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25646118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25646118 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, 'pht': 3726}}" where mtr_portfolio_id = 25646118 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25646118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561169, 0.05051556666714217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, '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 = 25646740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3436608, 'mtr_portfolio_id': 25646740, 'created_at': datetime.datetime(2025, 8, 4, 19, 32, 58), 'result': '0.021234893144795566', 'result_long': None, 'result_double': None}] Qualite : 0.021234893144795566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25646740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25646740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646787, 'pht': 3726}}" where mtr_portfolio_id = 25646740 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25646740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561170, 0.021234893144795566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646787, '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 = 25647184 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3436820, 'mtr_portfolio_id': 25647184, 'created_at': datetime.datetime(2025, 8, 4, 19, 49), 'result': '0.03258184563123621', 'result_long': None, 'result_double': None}] Qualite : 0.03258184563123621 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25647184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647184_04-08-2025_19_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25647184 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647184_04-08-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647227, 'pht': 3726}}" where mtr_portfolio_id = 25647184 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25647184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561171, 0.03258184563123621, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647184_04-08-2025_19_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647227, '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 = 25647742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3437100, 'mtr_portfolio_id': 25647742, 'created_at': datetime.datetime(2025, 8, 4, 20, 4, 58), 'result': '0.0658279851977908', 'result_long': None, 'result_double': None}] Qualite : 0.0658279851977908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25647742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647742_04-08-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25647742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647742_04-08-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647786, 'pht': 3726}}" where mtr_portfolio_id = 25647742 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25647742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561172, 0.0658279851977908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25647742_04-08-2025_20_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25647775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25647776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25647777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25647778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25647779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25647780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25647781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25647782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25647783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25647784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25647785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25647786, '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 = 25648223 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3437308, 'mtr_portfolio_id': 25648223, 'created_at': datetime.datetime(2025, 8, 4, 20, 18, 56), 'result': '0.023566259202298916', 'result_long': None, 'result_double': None}] Qualite : 0.023566259202298916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25648223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648223_04-08-2025_20_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25648223 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648223_04-08-2025_20_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25648287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648298, 'pht': 3726}}" where mtr_portfolio_id = 25648223 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25648223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561173, 0.023566259202298916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648223_04-08-2025_20_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25648287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648298, '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 = 25648831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3437542, 'mtr_portfolio_id': 25648831, 'created_at': datetime.datetime(2025, 8, 4, 20, 32, 59), 'result': '0.04329845948454555', 'result_long': None, 'result_double': None}] Qualite : 0.04329845948454555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25648831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648831_04-08-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25648831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648831_04-08-2025_20_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25648852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648862, 'pht': 3726}}" where mtr_portfolio_id = 25648831 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25648831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561174, 0.04329845948454555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25648831_04-08-2025_20_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25648851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25648852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25648853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25648854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25648855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25648856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25648857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25648858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25648859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25648860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25648861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25648862, '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 = 25649228 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3437727, 'mtr_portfolio_id': 25649228, 'created_at': datetime.datetime(2025, 8, 4, 21, 2, 56), 'result': '0.05201793414420284', 'result_long': None, 'result_double': None}] Qualite : 0.05201793414420284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25649228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25649228_04-08-2025_21_02_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25649228 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25649228_04-08-2025_21_02_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25649262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25649264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25649265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25649266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25649267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25649268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25649269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25649270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25649271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25649272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25649273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25649274, 'pht': 3726}}" where mtr_portfolio_id = 25649228 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25649228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561175, 0.05201793414420284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25649228_04-08-2025_21_02_56.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25649262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25649264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25649265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25649266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25649267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25649268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25649269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25649270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25649271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25649272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25649273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25649274, '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 = 25651110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3438508, 'mtr_portfolio_id': 25651110, 'created_at': datetime.datetime(2025, 8, 4, 22, 3, 1), 'result': '0.11130202671725391', 'result_long': None, 'result_double': None}] Qualite : 0.11130202671725391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25651110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651110_04-08-2025_22_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25651110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651110_04-08-2025_22_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25651118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651128, 'pht': 3726}}" where mtr_portfolio_id = 25651110 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25651110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561176, 0.11130202671725391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651110_04-08-2025_22_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25651118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651128, '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 = 25651569 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3438778, 'mtr_portfolio_id': 25651569, 'created_at': datetime.datetime(2025, 8, 4, 22, 18, 57), 'result': '0.038721357892211136', 'result_long': None, 'result_double': None}] Qualite : 0.038721357892211136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25651569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651569_04-08-2025_22_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25651569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651569_04-08-2025_22_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25651611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651622, 'pht': 3726}}" where mtr_portfolio_id = 25651569 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25651569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561177, 0.038721357892211136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25651569_04-08-2025_22_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25651611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25651612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25651613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25651614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25651615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25651616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25651617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25651618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25651619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25651620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25651621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25651622, '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 = 25652328 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3438985, 'mtr_portfolio_id': 25652328, 'created_at': datetime.datetime(2025, 8, 4, 22, 32, 58), 'result': '0.07097094219039476', 'result_long': None, 'result_double': None}] Qualite : 0.07097094219039476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25652328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652328_04-08-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25652328 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652328_04-08-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25652347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25652348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25652349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25652350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25652351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25652352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25652353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25652354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25652355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25652356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25652357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25652358, 'pht': 3726}}" where mtr_portfolio_id = 25652328 and dashboard_run_id = 2068971 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25652328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13561178, 0.07097094219039476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652328_04-08-2025_22_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25652347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25652348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25652349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25652350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25652351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25652352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25652353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25652354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25652355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25652356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25652357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25652358, '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 = 25652913 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 = 25652913 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 = 25652913 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25652913 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 = 25652913 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 = 25652913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652913_04-08-2025_22_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25652913 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25652913_04-08-2025_22_34_59.pdf'}" where mtr_portfolio_id = 25652913 and dashboard_run_id = 2068971 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25626685,25626882,25627175,25627892,25628013,25628303,25629056,25629211,25629456,25629837,25630398,25630863,25631422,25632607,25633178,25633267,25633910,25634253,25634599,25635026,25635624,25636062,25636503,25636886,25638616,25638768,25639033,25639429,25639623,25639888,25640848,25641106,25641532,25641959,25642597,25642797,25643206,25644407,25644820,25645214,25645634,25646118,25646740,25647184,25647742,25648223,25648831,25649228,25651110,25651569,25652328,25652913) result : ((1375079294,), (1375079309,), (1375079310,), (1375079311,), (1375079318,), (1375079319,), (1375079320,), (1375079321,), (1375079329,), (1375079330,), (1375079352,), (1375079353,), (1375079364,), (1375079366,), (1375079380,), (1375079381,), (1375079389,), (1375079390,), (1375079391,), (1375079392,), (1375079393,), (1375079401,), (1375079403,), (1375079405,), (1375079406,), (1375079408,), (1375079411,), (1375079417,), (1375079419,), (1375079424,), (1375079425,), (1375079426,), (1375079427,), (1375079436,), (1375079437,), (1375079446,), (1375079447,), (1375079448,), (1375079449,), (1375079458,), (1375079460,), (1375079461,), (1375079462,), (1375079472,), (1375079470,), (1375079471,), (1375079480,), (1375079485,), (1375079487,), (1375079488,), (1375079489,), (1375079495,), (1375079496,), (1375079502,), (1375079510,), (1375079521,), (1375079522,), (1375079523,), (1375079524,), (1375079525,), (1375079527,), (1375079528,), (1375079529,), (1375079530,), (1375079531,), (1375079533,), (1375079538,), (1375079540,), (1375079541,), (1375079542,), (1375079543,), (1375079544,), (1375079566,), (1375079567,), (1375079568,), (1375079603,), (1375079614,), (1375079600,), (1375079601,), (1375079602,), (1375079604,), (1375079605,), (1375079606,), (1375079607,), (1375079608,), (1375079609,), (1375079618,), (1375079619,), (1375079620,), (1375079621,), (1375079629,), (1375079630,), (1375079631,), (1375079632,), (1375079633,), (1375079640,), (1375079641,), (1375079642,), (1375079643,), (1375079650,), (1375079651,), (1375079652,), (1375079653,), (1375079654,), (1375079657,), (1375079658,), (1375079659,), (1375079660,), (1375081088,), (1375081082,), (1375081084,), (1375081085,), (1375081086,), (1375081087,), (1375081098,), (1375081101,), (1375081102,), (1375081114,), (1375081116,), (1375081126,), (1375081128,), (1375081130,), (1375081131,), (1375081145,), (1375081148,), (1375081150,), (1375081153,), (1375081156,), (1375081160,), (1375081174,), (1375081176,), (1375081202,), (1375081226,), (1375081230,), (1375081231,), (1375081234,), (1375081246,), (1375081248,), (1375081249,), (1375081264,), (1375081267,), (1375081268,), (1375081269,), (1375081271,), (1375081277,), (1375081278,), (1375081279,), (1375081280,), (1375081282,), (1375081323,), (1375081325,), (1375081330,), (1375081341,), (1375081342,), (1375081343,), (1375081344,), (1375081345,), (1375081357,), (1375081359,), (1375081360,), (1375081361,), (1375081366,), (1375081368,), (1375081390,), (1375081419,), (1375081380,), (1375081381,), (1375081382,), (1375081384,), (1375081388,), (1375081400,), (1375081401,), (1375081403,), (1375081406,), (1375081408,), (1375081411,), (1375081417,), (1375081422,), (1375081424,), (1375081426,), (1375081430,), (1375081432,), (1375081436,), (1375081459,), (1375081461,), (1375081464,), (1375081467,), (1375081471,), (1375081474,), (1375081481,), (1375081482,), (1375081484,), (1375081486,), (1375081490,), (1375081494,), (1375081498,), (1375081501,), (1375081511,), (1375081512,), (1375081528,), (1375081529,), (1375081547,), (1375081552,), (1375081557,), (1375081559,), (1375081572,), (1375081574,), (1375081576,), (1375081603,), (1375081605,), (1375081606,), (1375081620,), (1375081621,), (1375081623,), (1375081626,), (1375081628,), (1375081649,), (1375081650,), (1375081651,), (1375081653,), (1375081657,), (1375081671,), (1375081672,), (1375081673,), (1375081675,), (1375081679,), (1375081696,), (1375081697,), (1375081698,), (1375081700,), (1375081727,), (1375081728,), (1375081762,), (1375081752,), (1375081754,), (1375081756,), (1375081759,), (1375081780,), (1375081781,), (1375081813,), (1375081816,), (1375081846,), (1375081847,), (1375081848,), (1375081850,), (1375081876,), (1375081877,), (1375081878,), (1375081898,), (1375081899,), (1375081900,), (1375081902,), (1375081926,), (1375081927,), (1375081928,), (1375081952,), (1375081953,), (1375081954,), (1375081986,), (1375081988,), (1375081990,), (1375082014,), (1375082016,), (1375082045,), (1375084121,), (1375084087,), (1375084116,), (1375084119,), (1375084160,), (1375084190,), (1375084193,), (1375084194,), (1375084197,), (1375084220,), (1375084222,), (1375084225,), (1375084229,), (1375084257,), (1375084258,), (1375084259,), (1375084287,), (1375084289,), (1375084319,), (1375084321,), (1375084322,), (1375084324,), (1375084355,), (1375084358,), (1375084360,), (1375084363,), (1375084383,), (1375084385,), (1375084386,), (1375084411,), (1375084414,), (1375084416,), (1375084452,), (1375084455,), (1375084456,), (1375084458,), (1375084462,), (1375084501,), (1375084496,), (1375084498,), (1375084525,), (1375084526,), (1375084528,), (1375084530,), (1375084533,), (1375084554,), (1375084557,), (1375084559,), (1375084562,), (1375084564,), (1375084569,), (1375084584,), (1375084587,), (1375084589,), (1375084592,), (1375084595,), (1375084614,), (1375084617,), (1375084648,), (1375084653,), (1375084655,), (1375084658,), (1375084661,), (1375084664,), (1375084687,), (1375084688,), (1375084690,), (1375084692,), (1375084695,), (1375084718,), (1375084720,), (1375084722,), (1375084725,), (1375084751,), (1375084783,), (1375084785,), (1375084786,), (1375084788,), (1375084791,), (1375084827,), (1375084830,), (1375084832,), (1375084835,), (1375084870,), (1375084873,), (1375084874,), (1375084876,), (1375084896,), (1375084899,), (1375084901,), (1375084904,), (1375084930,), (1375084932,), (1375084955,), (1375084959,), (1375084961,), (1375084993,), (1375084990,), (1375084992,), (1375085018,), (1375085020,), (1375085023,), (1375085026,), (1375085029,), (1375085057,), (1375085059,), (1375085088,), (1375085090,), (1375085113,), (1375085116,), (1375085154,), (1375085179,), (1375085181,), (1375085183,), (1375085187,), (1375085216,), (1375085217,), (1375085219,), (1375085222,), (1375085225,), (1375085227,), (1375085247,), (1375085251,), (1375085256,), (1375085259,), (1375085263,), (1375085266,), (1375085276,), (1375085277,), (1375085279,), (1375085281,), (1375085289,), (1375085294,), (1375085299,), (1375085303,), (1375085307,), (1375085312,), (1375085321,), (1375085324,), (1375085327,), (1375085330,), (1375085351,), (1375085354,), (1375085357,), (1375085516,), (1375085540,), (1375085564,), (1375085587,), (1375085612,), (1375086038,), (1375086041,), (1375086045,), (1375086049,), (1375086053,), (1375086057,), (1375086102,), (1375086098,), (1375086450,), (1375086475,), (1375086498,), (1375086912,), (1375086940,), (1375086961,), (1375087002,), (1375087189,), (1375087191,), (1375087194,), (1375087197,), (1375087201,), (1375087204,), (1375087223,), (1375087226,), (1375087228,), (1375087230,), (1375087258,), (1375087260,), (1375087337,), (1375087351,), (1375087361,), (1375087406,), (1375087434,), (1375087462,), (1375087464,), (1375087488,), (1375087490,), (1375087503,), (1375087529,), (1375087531,), (1375087533,), (1375087535,), (1375087538,), (1375087555,), (1375087558,), (1375087583,), (1375087688,), (1375087738,), (1375087741,), (1375087743,), (1375087801,), (1375087809,), (1375087815,), (1375088009,), (1375088019,), (1375088153,), (1375088155,), (1375088157,), (1375088205,), (1375088207,), (1375088211,), (1375088213,), (1375088216,), (1375088219,), (1375088274,), (1375088301,), (1375088330,), (1375088355,), (1375088597,), (1375088600,), (1375088683,), (1375088684,), (1375088685,), (1375088704,), (1375088705,), (1375088728,), (1375088729,), (1375088753,), (1375088755,), (1375088780,), (1375088781,), (1375088844,), (1375088843,), (1375088926,), (1375089003,), (1375089038,), (1375089039,), (1375089095,), (1375089194,), (1375089222,), (1375089223,), (1375089259,), (1375089288,), (1375089289,), (1375089312,), (1375089315,), (1375089317,), (1375089425,), (1375089763,), (1375089764,), (1375089765,), (1375089964,), (1375089966,), (1375089968,), (1375089999,), (1375090001,), (1375090002,), (1375090280,), (1375090259,), (1375090390,), (1375090392,), (1375090393,), (1375090437,), (1375090466,), (1375090469,), (1375090471,), (1375090532,), (1375090558,), (1375090614,), (1375090618,), (1375090621,), (1375090625,), (1375090629,), (1375090632,), (1375090644,), (1375090646,), (1375090678,), (1375090679,), (1375090707,), (1375090708,), (1375090709,), (1375090711,), (1375090737,), (1375090739,), (1375090741,), (1375090744,), (1375090748,), (1375090751,), (1375090767,), (1375090768,), (1375090769,), (1375090771,), (1375090804,), (1375090836,), (1375090861,), (1375090890,), (1375090916,), (1375091143,), (1375091881,), (1375091893,), (1375091955,), (1375091959,), (1375091962,), (1375091966,), (1375091985,), (1375091988,), (1375091990,), (1375091991,), (1375091994,), (1375091997,), (1375093488,), (1375093485,), (1375093487,), (1375093680,), (1375093687,), (1375093689,), (1375093692,), (1375093694,), (1375093712,), (1375093714,), (1375093715,), (1375093890,), (1375093915,), (1375093939,), (1375094168,), (1375094187,), (1375094210,), (1375094235,), (1375094237,), (1375094239,), (1375094336,), (1375094338,), (1375094339,), (1375094348,), (1375094408,), (1375094410,), (1375094411,), (1375094446,), (1375094448,), (1375094451,), (1375094454,), (1375094459,), (1375094460,), (1375094479,), (1375094481,), (1375094484,), (1375094487,), (1375094573,), (1375094579,), (1375094592,), (1375094594,), (1375094803,), (1375094805,), (1375094806,), (1375094915,), (1375095788,), (1375095786,), (1375095812,), (1375095814,), (1375095815,), (1375095834,), (1375095836,), (1375095837,), (1375095839,), (1375096249,), (1375096297,), (1375096344,), (1375096373,), (1375096480,), (1375096516,), (1375096562,), (1375096906,), (1375096788,), (1375096794,), (1375096817,), (1375096847,), (1375097072,), (1375097263,), (1375097289,), (1375097749,), (1375097775,), (1375097779,), (1375097824,), (1375097942,), (1375097960,), (1375098002,), (1375098013,), (1375098080,), (1375098085,), (1375098087,), (1375098090,), (1375098103,), (1375098355,), (1375098359,), (1375098361,), (1375098489,), (1375098515,), (1375098869,), (1375098894,), (1375099473,), (1375099822,), (1375099848,), (1375099846,), (1375099924,), (1375099937,), (1375100191,), (1375100193,), (1375100210,), (1375100329,), (1375100331,), (1375100333,), (1375100335,), (1375100339,), (1375100362,), (1375100364,), (1375100377,), (1375100402,), (1375100427,), (1375100470,), (1375100471,), (1375100472,), (1375100498,), (1375100541,), (1375100542,), (1375100543,), (1375100545,), (1375100548,), (1375100550,), (1375100561,), (1375100563,), (1375100565,), (1375100567,), (1375100569,), (1375100571,), (1375100572,), (1375100574,), (1375100577,), (1375100580,), (1375100583,), (1375100593,), (1375100594,), (1375100595,), (1375100628,), (1375100630,), (1375100633,), (1375100635,), (1375100638,), (1375100641,), (1375100666,), (1375100667,), (1375100668,), (1375100670,), (1375100673,), (1375100686,), (1375100687,), (1375100699,), (1375100704,), (1375100706,), (1375100722,), (1375100723,), (1375100724,), (1375100727,), (1375100753,), (1375100755,), (1375100756,), (1375100758,), (1375100760,), (1375100763,), (1375100804,), (1375100789,), (1375100793,), (1375100795,), (1375100798,), (1375100801,), (1375100823,), (1375100838,), (1375100839,), (1375100841,), (1375100855,), (1375100857,), (1375100858,), (1375100860,), (1375100863,), (1375100865,), (1375100873,), (1375100875,), (1375100876,), (1375100879,), (1375100882,), (1375100884,), (1375100901,), (1375100903,), (1375100904,), (1375100906,), (1375100909,), (1375100928,), (1375100931,), (1375100940,), (1375100962,), (1375100964,), (1375100965,), (1375100966,), (1375100968,), (1375101024,), (1375101026,), (1375101027,), (1375101029,), (1375101031,), (1375101034,), (1375101052,), (1375101054,), (1375101055,), (1375101074,), (1375101077,), (1375101079,), (1375101138,), (1375101144,), (1375101149,), (1375101151,), (1375101153,), (1375101155,), (1375101163,), (1375101165,), (1375101168,), (1375101174,), (1375101178,), (1375101181,), (1375101201,), (1375101202,), (1375101205,), (1375101209,), (1375101226,), (1375101230,), (1375101258,), (1375101260,), (1375101261,), (1375101262,), (1375101264,), (1375101300,), (1375101296,), (1375101299,), (1375101318,), (1375101321,), (1375101322,), (1375101324,), (1375101342,), (1375101344,), (1375101345,), (1375101347,), (1375101350,), (1375101354,), (1375101372,), (1375101374,), (1375101375,), (1375101377,), (1375101396,), (1375101397,), (1375101399,), (1375101401,), (1375101437,), (1375101439,), (1375101442,), (1375101445,), (1375101449,), (1375101453,), (1375101465,), (1375101467,), (1375101468,), (1375101470,), (1375101490,), (1375101495,), (1375101498,), (1375101501,), (1375101528,), (1375101529,), (1375101531,), (1375101554,), (1375101556,), (1375101558,), (1375101561,), (1375101585,), (1375101612,), (1375101616,), (1375101648,), (1375101651,), (1375101653,), (1375101712,), (1375101717,), (1375101729,), (1375101945,), (1375101894,), (1375101919,), (1375102281,), (1375102329,), (1375102374,), (1375102418,), (1375103387,), (1375103845,), (1375104054,), (1375104077,), (1375104208,), (1375104210,), (1375104211,), (1375104281,), (1375104285,), (1375104303,), (1375104486,), (1375104511,), (1375104799,), (1375104824,), (1375104845,), (1375104987,), (1375105219,), (1375105240,), (1375105242,), (1375105245,), (1375105248,), (1375105265,), (1375105267,), (1375105269,), (1375105272,), (1375105276,), (1375105352,), (1375105351,), (1375105420,), (1375105782,), (1375105783,), (1375105784,), (1375105811,), (1375105812,), (1375105813,), (1375105815,), (1375106012,), (1375106035,), (1375106060,), (1375106085,), (1375106211,), (1375106236,), (1375106271,), (1375106272,), (1375106305,), (1375106308,), (1375106310,), (1375106313,), (1375106317,), (1375106338,), (1375106339,), (1375106341,), (1375106344,), (1375106348,), (1375106371,), (1375106380,), (1375106384,), (1375106386,), (1375106563,), (1375106551,), (1375106554,), (1375106555,), (1375106557,), (1375106559,), (1375106600,), (1375106613,), (1375106616,), (1375106621,), (1375106726,), (1375106728,), (1375106763,), (1375106770,), (1375106774,), (1375106788,), (1375106886,), (1375106889,), (1375106899,), (1375106940,), (1375106944,), (1375106946,), (1375106948,), (1375106951,), (1375106979,), (1375106981,), (1375106983,), (1375106986,), (1375107055,), (1375107062,), (1375107064,), (1375107089,), (1375107092,), (1375107094,), (1375107095,), (1375107116,), (1375107117,), (1375107172,), (1375107179,), (1375107192,), (1375107194,), (1375107326,), (1375107327,), (1375107337,), (1375107340,), (1375107484,), (1375107516,), (1375107552,), (1375107598,), (1375107645,), (1375107677,), (1375107943,), (1375107949,), (1375107953,), (1375107960,), (1375107964,), (1375107970,), (1375107975,), (1375107977,), (1375107979,), (1375107980,), (1375107989,), (1375107991,), (1375107994,), (1375108034,), (1375108022,), (1375108027,), (1375108029,), (1375108031,), (1375108051,), (1375108053,), (1375108054,), (1375108056,), (1375108065,), (1375108096,), (1375108107,), (1375108110,), (1375108112,), (1375108140,), (1375108168,), (1375108170,), (1375108171,), (1375108176,), (1375108193,), (1375108219,), (1375108312,), (1375108342,), (1375108364,), (1375108386,), (1375108402,), (1375108458,), (1375108466,), (1375108467,), (1375108469,), (1375108473,), (1375108475,), (1375108488,), (1375108490,), (1375108491,), (1375108493,), (1375108518,), (1375108520,), (1375108521,), (1375108542,), (1375108545,), (1375108547,), (1375108568,), (1375108569,), (1375108571,), (1375108573,), (1375108577,), (1375108580,), (1375108597,), (1375108598,), (1375108600,), (1375108601,), (1375108850,), (1375108872,), (1375109871,), (1375109775,), (1375109777,), (1375109781,), (1375109819,), (1375110179,), (1375110203,), (1375110225,), (1375110247,), (1375110424,), (1375110426,), (1375110428,), (1375110430,), (1375110700,), (1375110704,), (1375110710,), (1375110840,), (1375110843,), (1375110845,), (1375110846,), (1375110851,), (1375110885,), (1375110886,), (1375110887,), (1375110889,), (1375110912,), (1375110935,), (1375111030,), (1375111031,), (1375111032,), (1375111033,), (1375111038,), (1375111063,), (1375111067,), (1375111068,), (1375111075,), (1375111081,), (1375111085,), (1375111113,), (1375111116,), (1375111117,), (1375111119,), (1375111121,), (1375111160,), (1375111161,), (1375111163,), (1375111165,), (1375111168,), (1375111172,), (1375111182,), (1375117404,), (1375117440,), (1375117443,), (1375117460,), (1375117462,), (1375117511,), (1375117767,), (1375118002,), (1375118006,), (1375118010,), (1375118070,), (1375118072,), (1375118074,), (1375118087,), (1375118122,), (1375118277,), (1375118253,), (1375118271,), (1375118403,), (1375118406,), (1375118408,), (1375118411,), (1375118421,), (1375118437,), (1375118460,), (1375118462,), (1375118464,), (1375118466,), (1375118476,), (1375118480,), (1375118556,), (1375118558,), (1375118623,), (1375118692,), (1375118719,), (1375118721,), (1375118743,), (1375118791,), (1375118794,), (1375118820,), (1375118846,), (1375118882,), (1375118885,), (1375119348,), (1375119353,), (1375119380,), (1375119446,), (1375119693,), (1375119665,), (1375120101,), (1375120516,), (1375120585,), (1375120653,), (1375120702,), (1375120908,), (1375121697,), (1375122274,), (1375122314,), (1375122315,), (1375123231,), (1375123234,), (1375123255,), (1375123257,), (1375123280,), (1375123282,), (1375123284,), (1375123286,), (1375123290,), (1375123311,), (1375123314,), (1375123316,), (1375123318,), (1375123347,), (1375123368,), (1375123377,), (1375123395,), (1375123416,), (1375123420,), (1375123421,), (1375123454,), (1375123458,), (1375123465,), (1375123467,), (1375123444,), (1375123445,), (1375123447,), (1375123451,), (1375123473,), (1375123475,), (1375123478,), (1375123485,), (1375123489,), (1375123494,), (1375123515,), (1375123533,), (1375123535,), (1375123538,), (1375123543,), (1375123568,), (1375123570,), (1375123591,), (1375123596,), (1375123600,), (1375123628,), (1375123629,), (1375123630,), (1375123632,), (1375123655,), (1375123657,), (1375123659,), (1375123662,), (1375123682,), (1375123693,), (1375123696,), (1375123740,), (1375123742,), (1375123744,), (1375123765,), (1375123768,), (1375123801,), (1375123833,), (1375123835,), (1375123836,), (1375124039,), (1375124064,), (1375124210,), (1375124211,), (1375124231,), (1375124234,), (1375124267,), (1375124259,), (1375124261,), (1375124264,), (1375124290,), (1375124338,), (1375124340,), (1375124342,), (1375124346,), (1375124351,), (1375124364,), (1375129630,), (1375129623,), (1375129625,), (1375129671,), (1375129673,), (1375129674,), (1375129675,), (1375129677,), (1375129697,), (1375129699,), (1375129701,), (1375129703,), (1375129706,), (1375129726,), (1375129727,), (1375129729,), (1375129732,), (1375129736,), (1375129740,), (1375129749,), (1375129752,), (1375129763,), (1375129766,), (1375129767,), (1375129769,), (1375129805,), (1375129807,), (1375129808,), (1375129810,), (1375129814,), (1375129816,), (1375129908,), (1375129934,), (1375129958,), (1375129982,), (1375130007,), (1375130032,), (1375130203,), (1375130210,), (1375130213,), (1375130216,), (1375130243,), (1375130247,), (1375130249,), (1375130251,), (1375130256,), (1375130332,), (1375130357,), (1375130381,), (1375130384,), (1375130485,), (1375130511,), (1375130537,), (1375130562,), (1375130587,), (1375131268,), (1375131315,), (1375131349,), (1375131376,), (1375131401,), (1375131489,), (1375131516,), (1375131548,), (1375131868,), (1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,), (1375133445,), (1375133446,), (1375133448,), (1375133452,), (1375133456,), (1375133458,), (1375133478,), (1375133481,), (1375133484,), (1375133488,), (1375133491,), (1375133493,), (1375133505,), (1375133509,), (1375133513,), (1375133515,), (1375133518,), (1375133520,), (1375133531,), (1375133535,), (1375133544,), (1375133548,), (1375133554,), (1375133557,), (1375133584,), (1375133595,), (1375133598,), (1375133572,), (1375133574,), (1375133576,), (1375133579,), (1375133582,), (1375133603,), (1375133606,), (1375133607,), (1375133684,), (1375133687,), (1375133689,), (1375133692,), (1375133695,), (1375133697,), (1375133716,), (1375133719,), (1375133721,), (1375133725,), (1375133728,), (1375133742,), (1375133744,), (1375133745,), (1375133746,), (1375133748,), (1375133787,), (1375133789,), (1375133811,), (1375133813,), (1375133814,), (1375133816,), (1375133820,), (1375133843,), (1375133853,), (1375133859,), (1375133869,), (1375133873,), (1375133876,), (1375133902,), (1375133904,), (1375133907,), (1375133909,), (1375133913,), (1375133916,), (1375133926,), (1375133929,), (1375133936,), (1375133943,), (1375133947,), (1375133950,), (1375133960,), (1375133961,), (1375133965,), (1375133966,), (1375133970,), (1375133971,), (1375133976,), (1375133977,), (1375133980,), (1375133981,), (1375133983,), (1375133984,), (1375133993,), (1375133995,), (1375133996,), (1375133999,), (1375134002,), (1375134006,), (1375134015,), (1375134030,), (1375134033,), (1375134035,), (1375134036,), (1375134039,), (1375134044,), (1375134059,), (1375134061,), (1375134063,), (1375134065,), (1375134090,), (1375134092,), (1375134093,), (1375134096,), (1375134118,), (1375134122,), (1375134123,), (1375134126,), (1375134128,), (1375134133,), (1375134173,), (1375134179,), (1375134182,), (1375134183,), (1375134184,), (1375134186,), (1375134187,), (1375134157,), (1375134159,), (1375134162,), (1375134166,), (1375134169,), (1375134193,), (1375134196,), (1375134200,), (1375134212,), (1375134214,), (1375134216,), (1375134217,), (1375134235,), (1375134332,), (1375134414,), (1375134418,), (1375134421,), (1375134424,), (1375134428,), (1375134433,), (1375134440,), (1375134442,), (1375134459,), (1375135458,), (1375135496,), (1375135745,), (1375135746,), (1375135750,), (1375135768,), (1375135923,), (1375135924,), (1375135925,), (1375135932,), (1375136038,), (1375136039,), (1375136040,), (1375136180,), (1375136181,), (1375136182,), (1375136184,), (1375136273,), (1375136298,), (1375136320,), (1375136622,), (1375136628,), (1375136632,), (1375136635,), (1375136638,), (1375136894,), (1375136922,), (1375136956,), (1375137072,), (1375137099,), (1375137123,), (1375137150,), (1375137177,), (1375137185,), (1375137358,), (1375137382,), (1375136813,), (1375136842,), (1375136867,), (1375137191,), (1375137192,), (1375137194,), (1375137196,), (1375137213,), (1375137241,), (1375137431,), (1375137452,), (1375137472,), (1375137499,), (1375137529,), (1375137841,), (1375137865,), (1375137888,), (1375138050,), (1375138074,), (1375138098,), (1375138108,), (1375138111,), (1375138117,), (1375138203,), (1375138214,), (1375138220,), (1375138222,), (1375138225,), (1375138229,), (1375138250,), (1375138252,), (1375138254,), (1375138257,), (1375138280,), (1375138282,), (1375138284,), (1375138287,), (1375138292,), (1375138316,), (1375138317,), (1375138318,), (1375138320,), (1375138322,), (1375138352,), (1375138353,), (1375138354,), (1375138356,), (1375138421,), (1375138423,), (1375138424,), (1375138426,), (1375138447,), (1375138449,), (1375138471,), (1375138473,), (1375138475,), (1375138490,), (1375138497,), (1375138499,), (1375138503,), (1375138525,), (1375138528,), (1375138567,), (1375138564,), (1375138565,), (1375138595,), (1375138596,), (1375138598,), (1375138620,), (1375138622,), (1375138623,), (1375138625,), (1375138627,), (1375138630,), (1375138643,), (1375138645,), (1375138646,), (1375138657,), (1375138664,), (1375138686,), (1375138688,), (1375138689,), (1375138738,), (1375138740,), (1375138741,), (1375138743,), (1375138747,), (1375138749,), (1375138768,), (1375138771,), (1375138772,), (1375138774,), (1375138778,), (1375138780,), (1375138793,), (1375138794,), (1375138796,), (1375138800,), (1375138804,), (1375138807,), (1375138816,), (1375138819,), (1375138821,), (1375138823,), (1375138846,), (1375138849,), (1375138853,), (1375138859,), (1375138864,), (1375138868,), (1375138885,), (1375138889,), (1375138894,), (1375138896,), (1375138900,), (1375138902,), (1375138934,), (1375138938,), (1375138950,), (1375138955,), (1375138960,), (1375138962,), (1375138969,), (1375138971,), (1375138973,), (1375138975,), (1375138995,), (1375141509,), (1375141496,), (1375141540,), (1375141544,), (1375141547,), (1375141548,), (1375141581,), (1375141583,), (1375141586,), (1375141590,), (1375141609,), (1375141612,), (1375141615,), (1375141809,), (1375141831,), (1375141856,), (1375141878,), (1375142204,), (1375142227,), (1375142256,), (1375142281,), (1375142309,), (1375142335,), (1375142377,), (1375142378,), (1375142379,), (1375142401,), (1375142426,), (1375142655,), (1375142661,), (1375142662,), (1375142791,), (1375142793,), (1375142795,), (1375142798,), (1375142801,), (1375142831,), (1375142832,), (1375142833,), (1375142835,), (1375142840,), (1375142940,), (1375142942,), (1375143103,), (1375143104,), (1375143117,), (1375143148,), (1375143171,), (1375143202,), (1375143203,), (1375143204,), (1375143206,), (1375143230,), (1375143231,), (1375143232,), (1375143246,), (1375143272,), (1375143274,), (1375143275,), (1375143277,), (1375143492,), (1375143427,), (1375143453,), (1375143932,), (1375143934,), (1375143952,), (1375143955,), (1375144028,), (1375144029,), (1375144030,), (1375144031,), (1375144037,), (1375144061,), (1375144063,), (1375144064,), (1375144066,), (1375144321,), (1375144348,), (1375144372,), (1375144398,), (1375144428,), (1375144475,), (1375144477,), (1375144478,), (1375144480,), (1375144495,), (1375144608,), (1375144610,), (1375144641,), (1375144644,), (1375144647,), (1375144674,), (1375144677,), (1375144679,), (1375144706,), (1375144708,), (1375144710,), (1375144712,), (1375144716,), (1375144721,), (1375144742,), (1375144744,), (1375144746,), (1375144749,), (1375144816,), (1375144818,), (1375144820,), (1375144823,), (1375144852,), (1375144853,), (1375144854,), (1375144891,), (1375144893,), (1375144951,), (1375144947,), (1375144948,), (1375144949,), (1375144986,), (1375144989,), (1375144991,), (1375144994,), (1375144996,), (1375145042,), (1375145044,), (1375145045,), (1375145047,), (1375145050,), (1375145069,), (1375145073,), (1375145076,), (1375145079,), (1375145108,), (1375145110,), (1375145113,), (1375145118,), (1375145122,), (1375145125,), (1375145150,), (1375145152,), (1375145156,), (1375145160,), (1375145165,), (1375145181,), (1375145183,), (1375145186,), (1375145198,), (1375145236,), (1375145238,), (1375145240,), (1375145243,), (1375145275,), (1375145277,), (1375145279,), (1375145280,), (1375145283,), (1375145313,), (1375145314,), (1375145343,), (1375145344,), (1375145345,), (1375145465,), (1375145466,), (1375145467,), (1375145469,), (1375145474,), (1375145489,), (1375145490,), (1375145491,), (1375145493,), (1375145555,), (1375145557,), (1375145559,), (1375145698,), (1375145699,), (1375145700,), (1375145724,), (1375145742,), (1375145749,), (1375145882,), (1375145819,), (1375145843,), (1375145872,), (1375145904,), (1375145905,), (1375145906,), (1375145908,), (1375145912,), (1375145970,), (1375145980,), (1375145981,), (1375145982,), (1375145984,), (1375145988,), (1375146003,), (1375146004,), (1375146005,), (1375146007,), (1375146040,), (1375146041,), (1375146042,), (1375146063,), (1375146064,), (1375146065,), (1375146067,), (1375146072,), (1375146074,), (1375146092,), (1375146093,), (1375146094,), (1375146096,), (1375146097,), (1375146102,), (1375146169,), (1375146175,), (1375146180,), (1375146185,), (1375146190,), (1375146192,), (1375146199,), (1375146206,), (1375146233,), (1375146260,), (1375146701,), (1375146724,), (1375146740,), (1375146741,), (1375146748,), (1375146764,), (1375146856,), (1375146858,), (1375146862,), (1375146863,), (1375146866,), (1375146867,), (1375146870,), (1375146871,), (1375146875,), (1375146876,), (1375146880,), (1375146881,), (1375146892,), (1375146893,), (1375146894,), (1375146896,), (1375146901,), (1375146905,), (1375146915,), (1375146918,), (1375146920,), (1375146924,), (1375146925,), (1375146926,), (1375146928,), (1375146932,), (1375146935,), (1375146973,), (1375146976,), (1375146977,), (1375147571,), (1375147584,), (1375147629,), (1375147653,), (1375147674,), (1375147719,), (1375147726,), (1375147744,), (1375147801,), (1375147829,), (1375147857,), (1375147705,), (1375147708,), (1375147711,), (1375147935,), (1375147961,), (1375148401,), (1375148426,), (1375148453,), (1375148798,), (1375148823,), (1375148871,), (1375148922,), (1375148971,), (1375149026,), (1375149276,), (1375149299,), (1375149326,), (1375149352,), (1375149398,), (1375149454,), (1375149571,), (1375149573,), (1375149587,), (1375149619,), (1375149637,), (1375149641,), (1375149646,), (1375149650,), (1375149653,), (1375149656,), (1375149665,), (1375149666,), (1375149667,), (1375149669,), (1375149691,), (1375149692,), (1375149693,), (1375149716,), (1375149717,), (1375149723,), (1375149743,), (1375149874,), (1375149875,), (1375149876,), (1375149878,), (1375149883,), (1375149946,), (1375149955,), (1375149959,), (1375149965,), (1375150003,), (1375150005,), (1375150007,), (1375150085,), (1375150088,), (1375150096,), (1375150171,), (1375150175,), (1375150177,), (1375150195,), (1375150199,), (1375150202,), (1375150206,), (1375150209,), (1375150232,), (1375150233,), (1375150236,), (1375150239,), (1375150243,), (1375150246,), (1375150256,), (1375150260,), (1375150281,), (1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,), (1375150609,), (1375150610,), (1375150615,), (1375150616,), (1375150619,), (1375150620,), (1375150624,), (1375150625,), (1375150626,), (1375150627,), (1375150636,), (1375150638,), (1375150640,), (1375150642,), (1375150646,), (1375150649,), (1375150667,), (1375150669,), (1375150671,), (1375150673,), (1375150693,), (1375150696,), (1375150699,), (1375150762,), (1375150763,), (1375150764,), (1375150766,), (1375150769,), (1375150772,), (1375150787,), (1375150788,), (1375150789,), (1375150791,), (1375150825,), (1375150828,), (1375150829,), (1375150831,), (1375150834,), (1375150836,), (1375150917,), (1375150864,), (1375150866,), (1375150867,), (1375150869,), (1375150886,), (1375150949,), (1375150951,), (1375150952,), (1375150954,), (1375150974,), (1375150976,), (1375150977,), (1375150979,), (1375150981,), (1375150999,), (1375151001,), (1375151003,), (1375151030,), (1375151031,), (1375151032,), (1375151065,), (1375151066,), (1375151067,), (1375151070,), (1375151076,), (1375151108,), (1375151110,), (1375151112,), (1375151114,), (1375151120,), (1375151146,), (1375151147,), (1375151148,), (1375151149,), (1375151211,), (1375151222,), (1375151361,), (1375151362,), (1375151363,), (1375151365,), (1375151369,), (1375151373,), (1375151388,), (1375151424,), (1375151527,), (1375151552,), (1375151574,), (1375151694,), (1375151696,), (1375151698,), (1375151701,), (1375151796,), (1375151797,), (1375151799,), (1375151803,), (1375151807,), (1375151811,), (1375151833,), (1375151838,), (1375151859,), (1375151846,), (1375151853,), (1375151855,), (1375151882,), (1375151884,), (1375151918,), (1375151919,), (1375151920,), (1375151921,), (1375152043,), (1375152046,), (1375152051,), (1375152053,), (1375152056,), (1375152059,), (1375152087,), (1375152089,), (1375152090,), (1375152092,), (1375152119,), (1375152121,), (1375152123,), (1375152169,), (1375152172,), (1375152188,), (1375152191,), (1375152210,), (1375152236,), (1375152238,), (1375152240,), (1375152251,), (1375152279,), (1375152304,), (1375152569,), (1375152596,), (1375152791,), (1375152792,), (1375152793,), (1375152795,), (1375153449,), (1375153523,), (1375153577,), (1375153628,), (1375153676,), (1375153703,), (1375154090,), (1375154150,), (1375154281,), (1375154324,), (1375154350,), (1375154377,), (1375154410,), (1375154436,), (1375154677,), (1375154704,), (1375154728,), (1375154830,), (1375153970,), (1375153996,), (1375154040,), (1375154067,), (1375154600,), (1375154625,), (1375154652,), (1375154934,), (1375154937,), (1375154941,), (1375154945,), (1375154949,), (1375155048,), (1375155079,), (1375155103,), (1375155128,), (1375155159,), (1375155181,), (1375155279,), (1375155311,), (1375155335,), (1375155359,), (1375155377,), (1375155387,), (1375155399,), (1375155402,), (1375155405,), (1375155414,), (1375155417,), (1375155425,), (1375155429,), (1375155434,), (1375155438,), (1375155441,), (1375155444,), (1375155460,), (1375155462,), (1375155463,), (1375155474,), (1375155479,), (1375155505,), (1375155526,), (1375155528,), (1375155530,), (1375155554,), (1375155555,), (1375155556,), (1375155558,), (1375155559,), (1375155594,), (1375155596,), (1375155598,), (1375155601,), (1375155723,), (1375155727,), (1375155732,), (1375155750,), (1375155793,), (1375155796,), (1375155799,), (1375155803,), (1375155831,), (1375155833,), (1375155834,), (1375155835,), (1375155838,), (1375155850,), (1375155852,), (1375155854,), (1375155857,), (1375155861,), (1375155880,), (1375155881,), (1375155883,), (1375155887,), (1375155890,), (1375155893,), (1375155904,), (1375155908,), (1375155934,), (1375155923,), (1375155925,), (1375155926,), (1375155928,), (1375155930,), (1375155961,), (1375155975,), (1375155998,), (1375156005,), (1375156008,), (1375156105,), (1375156130,), (1375156155,), (1375156179,), (1375156283,), (1375156284,), (1375156285,), (1375156287,), (1375156291,), (1375156294,), (1375156392,), (1375156393,), (1375156394,), (1375156396,), (1375156398,), (1375156421,), (1375156423,), (1375156426,), (1375156432,), (1375156454,), (1375156456,), (1375156457,), (1375156459,), (1375156530,), (1375156531,), (1375156532,), (1375156534,), (1375156536,), (1375156540,), (1375156565,), (1375156566,), (1375156567,), (1375156569,), (1375156594,), (1375156595,), (1375156597,), (1375156601,), (1375156603,), (1375156607,), (1375156616,), (1375156619,), (1375156621,), (1375156622,), (1375156625,), (1375156627,), (1375156630,), (1375156634,), (1375156636,), (1375156640,), (1375156651,), (1375156654,), (1375156657,), (1375156663,), (1375156666,), (1375156682,), (1375156684,), (1375156687,), (1375156693,), (1375156699,), (1375156702,), (1375156750,), (1375156751,), (1375156752,), (1375156753,), (1375156758,), (1375156782,), (1375156784,), (1375156785,), (1375156788,), (1375156795,), (1375156797,), (1375156845,), (1375156816,), (1375156833,), (1375156841,), (1375156842,), (1375156898,), (1375156900,), (1375156901,), (1375156903,), (1375156928,), (1375156950,), (1375156952,), (1375157097,), (1375157101,), (1375157102,), (1375157105,), (1375157110,), (1375157188,), (1375157189,), (1375157190,), (1375157192,), (1375157225,), (1375157227,), (1375157335,), (1375159069,), (1375163192,), (1375163225,), (1375163228,), (1375163231,), (1375163274,), (1375163276,), (1375163278,), (1375163309,), (1375163316,), (1375163350,), (1375163352,), (1375163384,), (1375163386,), (1375163388,), (1375163413,), (1375163414,), (1375163415,), (1375163417,), (1375163419,), (1375163448,), (1375163450,), (1375163452,), (1375163455,), (1375163458,), (1375163465,), (1375163514,), (1375163515,), (1375163516,), (1375163518,), (1375163522,), (1375163545,), (1375163547,), (1375163567,), (1375163569,), (1375163570,), (1375163613,), (1375163615,), (1375163616,), (1375163772,), (1375163796,), (1375163823,), (1375163848,), (1375163873,), (1375164014,), (1375164015,), (1375164016,), (1375164428,), (1375164464,), (1375164493,), (1375164520,), (1375164728,), (1375164651,), (1375164677,), (1375164702,), (1375165067,), (1375165090,), (1375165114,), (1375165471,), (1375165496,), (1375165519,), (1375165542,), (1375165562,), (1375165586,), (1375165611,), (1375165637,), (1375165669,), (1375165721,), (1375166155,), (1375166196,), (1375166633,), (1375166635,), (1375166636,), (1375166806,), (1375166830,), (1375166856,), (1375166864,), (1375166900,), (1375166925,), (1375167295,), (1375167339,), (1375167391,), (1375167896,), (1375167913,), (1375167914,), (1375168033,), (1375168059,), (1375168082,), (1375168109,), (1375168136,), (1375168229,), (1375168232,), (1375168250,), (1375168274,), (1375168375,), (1375168392,), (1375168416,), (1375168441,), (1375168466,), (1375168467,), (1375168468,), (1375168484,), (1375168486,), (1375168488,), (1375168491,), (1375168496,), (1375168512,), (1375168514,), (1375168555,), (1375168544,), (1375168545,), (1375168546,), (1375168549,), (1375168552,), (1375168566,), (1375168567,), (1375168568,), (1375168569,), (1375168600,), (1375168601,), (1375168603,), (1375168604,), (1375168627,), (1375168628,), (1375168629,), (1375168788,), (1375168802,), (1375168803,), (1375168805,), (1375168818,), (1375168820,), (1375168821,), (1375168823,), (1375168826,), (1375168852,), (1375168853,), (1375168869,), (1375168871,), (1375168877,), (1375168882,), (1375168885,), (1375168900,), (1375168902,), (1375168904,), (1375168906,), (1375168980,), (1375169004,), (1375169028,), (1375169102,), (1375169154,), (1375169179,), (1375169374,), (1375169401,), (1375169424,), (1375169449,), (1375169473,), (1375169595,), (1375169619,), (1375169644,), (1375169676,), (1375169703,), (1375169861,), (1375169862,), (1375169863,), (1375169865,), (1375169977,), (1375169978,), (1375169979,), (1375169981,), (1375169983,), (1375170013,), (1375170014,), (1375170015,), (1375170017,), (1375170021,), (1375170049,), (1375170424,), (1375170450,), (1375170463,), (1375170468,), (1375170480,), (1375170502,), (1375170528,), (1375170338,), (1375170369,), (1375170396,), (1375170571,), (1375170591,), (1375170600,), (1375170603,), (1375170616,), (1375170710,), (1375170726,), (1375170727,), (1375170729,), (1375170749,), (1375170750,), (1375170751,), (1375170753,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04082025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25652913]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] map_info['map_portfolio_photo'] : {25652913: [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571, 1375170396, 1375170369, 1375170338]} final : True mtd_id 4302 list_pids : [1375170753, 1375170751, 1375170750, 1375170749, 1375170729, 1375170727, 1375170726, 1375170710, 1375170616, 1375170603, 1375170600, 1375170591, 1375170571] Looping around the photos to save general results len do output : 1 /25652913Didn'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, '3439242') ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242') ('4302', None, None, None, None, None, None, None, '3439242') ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242') 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, '25652913', 'None', None, None, None, None, '3439242'), ('4302', '25652913', '1375170753', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170751', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170750', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170749', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170729', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170727', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170726', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170710', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170616', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170603', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170600', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170591', None, None, None, None, None, '3439242'), ('4302', '25652913', '1375170571', None, None, None, None, None, '3439242')] time used for this insertion : 0.016394376754760742 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.182143211364746 time spend to save output : 0.016611576080322266 total time spend for step 5 : 3.1987547874450684 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 (3439242) 2.10user 2.48system 0:08.29elapsed 55%CPU (0avgtext+0avgdata 160108maxresident)k 64inputs+8120outputs (0major+64360minor)pagefaults 0swaps