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 : 3030593 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 (4245620) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4245620) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539090 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4245620'] with mtr_portfolio_ids : ['29539090'] and first list_photo_ids : [] new path : /proc/3030593/ Name: python3 Umask: 0002 State: R (running) Tgid: 3030593 Ngid: 0 Pid: 3030593 PPid: 3030592 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3030593 NSpid: 3030593 NSpgid: 3029305 NSsid: 3029305 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104964 kB VmRSS: 104964 kB RssAnon: 66296 kB RssFile: 38668 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 44 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3030593', 'Ngid': '0', 'Pid': '3030593', 'PPid': '3030592', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3030593', 'NSpid': '3030593', 'NSpgid': '3029305', 'NSsid': '3029305', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104964 kB', 'VmRSS': '104964 kB', 'RssAnon': '66296 kB', 'RssFile': '38668 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '44'} ('datou_batch_current', '3030593', '1113364', '0', '1113364', '872092', '104964', b'', 'marlene', '4245620') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29539090) 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 (4245620 ) ) 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 (29539090) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399947395, 'portfolio_id': 29539090}, {'photo_id': 1399947365, 'portfolio_id': 29539090}, {'photo_id': 1399947329, 'portfolio_id': 29539090}, {'photo_id': 1399947328, 'portfolio_id': 29539090}, {'photo_id': 1399946947, 'portfolio_id': 29539090}, {'photo_id': 1399946946, 'portfolio_id': 29539090}, {'photo_id': 1399946945, 'portfolio_id': 29539090}, {'photo_id': 1399946944, 'portfolio_id': 29539090}, {'photo_id': 1399946918, 'portfolio_id': 29539090}, {'photo_id': 1399946884, 'portfolio_id': 29539090}, {'photo_id': 1399946850, 'portfolio_id': 29539090}, {'photo_id': 1399946791, 'portfolio_id': 29539090}, {'photo_id': 1399946745, 'portfolio_id': 29539090}, {'photo_id': 1399946706, 'portfolio_id': 29539090}, {'photo_id': 1399946704, 'portfolio_id': 29539090}, {'photo_id': 1399946702, 'portfolio_id': 29539090}, {'photo_id': 1399946701, 'portfolio_id': 29539090}, {'photo_id': 1399946666, 'portfolio_id': 29539090}, {'photo_id': 1399946609, 'portfolio_id': 29539090}, {'photo_id': 1399946569, 'portfolio_id': 29539090}, {'photo_id': 1399946536, 'portfolio_id': 29539090}, {'photo_id': 1399946503, 'portfolio_id': 29539090}, {'photo_id': 1399946471, 'portfolio_id': 29539090}, {'photo_id': 1399946300, 'portfolio_id': 29539090}, {'photo_id': 1399946299, 'portfolio_id': 29539090}, {'photo_id': 1399946298, 'portfolio_id': 29539090}, {'photo_id': 1399946297, 'portfolio_id': 29539090}, {'photo_id': 1399946260, 'portfolio_id': 29539090}, {'photo_id': 1399946255, 'portfolio_id': 29539090}, {'photo_id': 1399946228, 'portfolio_id': 29539090}, {'photo_id': 1399946226, 'portfolio_id': 29539090}, {'photo_id': 1399946208, 'portfolio_id': 29539090}, {'photo_id': 1399946174, 'portfolio_id': 29539090}, {'photo_id': 1399946092, 'portfolio_id': 29539090}, {'photo_id': 1399946036, 'portfolio_id': 29539090}, {'photo_id': 1399946017, 'portfolio_id': 29539090}, {'photo_id': 1399946015, 'portfolio_id': 29539090}, {'photo_id': 1399945894, 'portfolio_id': 29539090}, {'photo_id': 1399945796, 'portfolio_id': 29539090}, {'photo_id': 1399945773, 'portfolio_id': 29539090}, {'photo_id': 1399945771, 'portfolio_id': 29539090}, {'photo_id': 1399945768, 'portfolio_id': 29539090}, {'photo_id': 1399945754, 'portfolio_id': 29539090}, {'photo_id': 1399945752, 'portfolio_id': 29539090}, {'photo_id': 1399945749, 'portfolio_id': 29539090}, {'photo_id': 1399945745, 'portfolio_id': 29539090}, {'photo_id': 1399945743, 'portfolio_id': 29539090}, {'photo_id': 1399945740, 'portfolio_id': 29539090}, {'photo_id': 1399945586, 'portfolio_id': 29539090}, {'photo_id': 1399945536, 'portfolio_id': 29539090}, {'photo_id': 1399945499, 'portfolio_id': 29539090}, {'photo_id': 1399945474, 'portfolio_id': 29539090}, {'photo_id': 1399945465, 'portfolio_id': 29539090}, {'photo_id': 1399945166, 'portfolio_id': 29539090}, {'photo_id': 1399945132, 'portfolio_id': 29539090}, {'photo_id': 1399945129, 'portfolio_id': 29539090}, {'photo_id': 1399945128, 'portfolio_id': 29539090}, {'photo_id': 1399945127, 'portfolio_id': 29539090}, {'photo_id': 1399945126, 'portfolio_id': 29539090}, {'photo_id': 1399945087, 'portfolio_id': 29539090}, {'photo_id': 1399945063, 'portfolio_id': 29539090}, {'photo_id': 1399945029, 'portfolio_id': 29539090}, {'photo_id': 1399944997, 'portfolio_id': 29539090}, {'photo_id': 1399944600, 'portfolio_id': 29539090}, {'photo_id': 1399944548, 'portfolio_id': 29539090}, {'photo_id': 1399944466, 'portfolio_id': 29539090}, {'photo_id': 1399944404, 'portfolio_id': 29539090}, {'photo_id': 1399944329, 'portfolio_id': 29539090}, {'photo_id': 1399944271, 'portfolio_id': 29539090}, {'photo_id': 1399943743, 'portfolio_id': 29539090}, {'photo_id': 1399943741, 'portfolio_id': 29539090}] map_portfolio_id_photo_id: {29539090: [1399947395, 1399947365, 1399947329, 1399947328, 1399946947, 1399946946, 1399946945, 1399946944, 1399946918, 1399946884, 1399946850, 1399946791, 1399946745, 1399946706, 1399946704, 1399946702, 1399946701, 1399946666, 1399946609, 1399946569, 1399946536, 1399946503, 1399946471, 1399946300, 1399946299, 1399946298, 1399946297, 1399946260, 1399946255, 1399946228, 1399946226, 1399946208, 1399946174, 1399946092, 1399946036, 1399946017, 1399946015, 1399945894, 1399945796, 1399945773, 1399945771, 1399945768, 1399945754, 1399945752, 1399945749, 1399945745, 1399945743, 1399945740, 1399945586, 1399945536, 1399945499, 1399945474, 1399945465, 1399945166, 1399945132, 1399945129, 1399945128, 1399945127, 1399945126, 1399945087, 1399945063, 1399945029, 1399944997, 1399944600, 1399944548, 1399944466, 1399944404, 1399944329, 1399944271, 1399943743, 1399943741]} ##### 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.019579648971557617 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Dec 18 11:14: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 (29539090) 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 : 29539090 get user id for portfolio 29539090 get sub ptf for main ptf 29539090, type 3726 and hashtags ['kraft', 'cartonnette', 'Carton_gris', 'Carton_brun', 'plastique', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'flou', 'autre_refus', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29539090 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','Carton_gris','Carton_brun','plastique','papier','mal_croppe','Teint_Dans_La_Masse','metal','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29539090 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','Carton_gris','Carton_brun','plastique','papier','mal_croppe','Teint_Dans_La_Masse','metal','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29539090, 'sub_port_id': 29539197, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150847, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'kraft': {'main_port_id': 29539090, 'sub_port_id': 29539198, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150848, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'papier': {'main_port_id': 29539090, 'sub_port_id': 29539199, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150849, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'plastique': {'main_port_id': 29539090, 'sub_port_id': 29539200, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150850, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'mal_croppe': {'main_port_id': 29539090, 'sub_port_id': 29539201, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150851, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'Carton_brun': {'main_port_id': 29539090, 'sub_port_id': 29539202, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150852, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29539090, 'sub_port_id': 29539203, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150853, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'flou': {'main_port_id': 29539090, 'sub_port_id': 29539204, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150854, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'metal': {'main_port_id': 29539090, 'sub_port_id': 29539205, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150855, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'cartonnette': {'main_port_id': 29539090, 'sub_port_id': 29539206, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150856, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'autre_refus': {'main_port_id': 29539090, 'sub_port_id': 29539207, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150857, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}, 'environnement': {'main_port_id': 29539090, 'sub_port_id': 29539208, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150858, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29539197 , 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=29539090 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 (29539197) result : ((1399945770,), (1399946735,), (1399946736,), (1399946940,), (1399946941,), (1399947054,), (1399947059,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539198 , 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=29539090 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 (29539198) result : ((1399946742,), (1399947202,), (1399947203,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539199 , 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=29539090 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 (29539199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539200 , 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=29539090 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 (29539200) result : ((1399947193,), (1399947197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539201 , 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=29539090 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 (29539201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539202 , 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=29539090 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 (29539202) result : ((1399946190,), (1399946739,), (1399946740,), (1399946741,), (1399946943,), (1399947130,), (1399947133,), (1399947137,), (1399947141,), (1399947146,), (1399947150,), (1399947153,), (1399947157,), (1399947161,), (1399947165,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539203 , 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=29539090 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 (29539203) result : ((1399946719,), (1399946720,), (1399946721,), (1399946722,), (1399946723,), (1399946724,), (1399946937,), (1399946938,), (1399946939,), (1399947007,), (1399947011,), (1399947014,), (1399947018,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539204 , 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=29539090 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 (29539204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539205 , 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=29539090 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 (29539205) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539206 , 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=29539090 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 (29539206) result : ((1399946942,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539207 , 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=29539090 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 (29539207) result : ((1399946726,), (1399946728,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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 29539208 , 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=29539090 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 (29539208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29539090) result : ((1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) 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 (1399944600,1399946300) 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`=29539090 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','Carton_gris','Carton_brun','plastique','papier','mal_croppe','Teint_Dans_La_Masse','metal','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29539090 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','Carton_gris','Carton_brun','plastique','papier','mal_croppe','Teint_Dans_La_Masse','metal','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29539090, 'sub_port_id': 29539210, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150859, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'kraft': {'main_port_id': 29539090, 'sub_port_id': 29539211, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150860, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'papier': {'main_port_id': 29539090, 'sub_port_id': 29539212, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150861, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'plastique': {'main_port_id': 29539090, 'sub_port_id': 29539213, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150862, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'mal_croppe': {'main_port_id': 29539090, 'sub_port_id': 29539214, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150863, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'Carton_brun': {'main_port_id': 29539090, 'sub_port_id': 29539215, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150864, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29539090, 'sub_port_id': 29539216, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150865, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'flou': {'main_port_id': 29539090, 'sub_port_id': 29539217, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150866, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'metal': {'main_port_id': 29539090, 'sub_port_id': 29539218, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150867, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'cartonnette': {'main_port_id': 29539090, 'sub_port_id': 29539219, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150868, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'autre_refus': {'main_port_id': 29539090, 'sub_port_id': 29539220, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150869, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}, 'environnement': {'main_port_id': 29539090, 'sub_port_id': 29539221, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20150870, 'last_updated_at': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 11, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 11, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29539221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29539208 lien utilise dans velours : https://marlene.fotonower.com/velours/29539210,29539211,29539212,29539213,29539214,29539215,29539216,29539217,29539218,29539219,29539220,29539221?tags=Carton_gris,kraft,papier,plastique,mal_croppe,Carton_brun,Teint_Dans_La_Masse,flou,metal,cartonnette,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29539090]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399947395, 1399947365, 1399947329, 1399947328] map_info['map_portfolio_photo'] : {29539090: [1399947395, 1399947365, 1399947329, 1399947328, 1399946947, 1399946946, 1399946945, 1399946944, 1399946918, 1399946884, 1399946850, 1399946791, 1399946745, 1399946706, 1399946704, 1399946702, 1399946701, 1399946666, 1399946609, 1399946569, 1399946536, 1399946503, 1399946471, 1399946300, 1399946299, 1399946298, 1399946297, 1399946260, 1399946255, 1399946228, 1399946226, 1399946208, 1399946174, 1399946092, 1399946036, 1399946017, 1399946015, 1399945894, 1399945796, 1399945773, 1399945771, 1399945768, 1399945754, 1399945752, 1399945749, 1399945745, 1399945743, 1399945740, 1399945586, 1399945536, 1399945499, 1399945474, 1399945465, 1399945166, 1399945132, 1399945129, 1399945128, 1399945127, 1399945126, 1399945087, 1399945063, 1399945029, 1399944997, 1399944600, 1399944548, 1399944466, 1399944404, 1399944329, 1399944271, 1399943743, 1399943741]} final : False mtd_id 4302 list_pids : [1399947395, 1399947365, 1399947329, 1399947328] Looping around the photos to save general results len do output : 1 /29539090. 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, '4245620') ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29539090', "{'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208}", None, None, None, None, '4245620'), ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620')] time used for this insertion : 0.016722917556762695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5843031406402588 time spend to save output : 0.01698017120361328 total time spend for step 1 : 0.6012833118438721 step2:final Thu Dec 18 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (29539090) 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 29539090 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399943743,1399943741,1399944600,1399944548,1399944466,1399944404,1399944329,1399944271,1399945087,1399945063,1399945029,1399944997,1399945166,1399945132,1399945129,1399945128,1399945127,1399945126,1399945586,1399945894,1399945536,1399945796,1399945499,1399945773,1399945474,1399945771,1399945768,1399945465,1399945754,1399945752,1399945749,1399945745,1399945743,1399945740,1399946092,1399946036,1399946017,1399946015,1399946260,1399946255,1399946228,1399946226,1399946208,1399946174,1399946706,1399946300,1399946299,1399946704,1399946298,1399946702,1399946701,1399946297,1399946666,1399946609,1399946569,1399946536,1399946503,1399946471,1399946918,1399946884,1399946850,1399946791,1399946745,1399946947,1399946946,1399946945,1399946944,1399947395,1399947365,1399947329,1399947328); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29539090]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} new output for save of step final : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} [1399947395, 1399947365, 1399947329, 1399947328] map_info['map_portfolio_photo'] : {29539090: [1399947395, 1399947365, 1399947329, 1399947328, 1399946947, 1399946946, 1399946945, 1399946944, 1399946918, 1399946884, 1399946850, 1399946791, 1399946745, 1399946706, 1399946704, 1399946702, 1399946701, 1399946666, 1399946609, 1399946569, 1399946536, 1399946503, 1399946471, 1399946300, 1399946299, 1399946298, 1399946297, 1399946260, 1399946255, 1399946228, 1399946226, 1399946208, 1399946174, 1399946092, 1399946036, 1399946017, 1399946015, 1399945894, 1399945796, 1399945773, 1399945771, 1399945768, 1399945754, 1399945752, 1399945749, 1399945745, 1399945743, 1399945740, 1399945586, 1399945536, 1399945499, 1399945474, 1399945465, 1399945166, 1399945132, 1399945129, 1399945128, 1399945127, 1399945126, 1399945087, 1399945063, 1399945029, 1399944997, 1399944600, 1399944548, 1399944466, 1399944404, 1399944329, 1399944271, 1399943743, 1399943741]} final : False mtd_id 4302 list_pids : [1399947395, 1399947365, 1399947329, 1399947328] Looping around the photos to save general results len do output : 4 /1399947395.Didn't retrieve data . /1399947365.Didn't retrieve data . /1399947329.Didn't retrieve data . /1399947328.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, '4245620') ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '29539090', '1399947395', '0.039187982761269016', None, None, None, None, '4245620'), ('4302', '29539090', '1399947365', '0.039187982761269016', None, None, None, None, '4245620'), ('4302', '29539090', '1399947329', '0.039187982761269016', None, None, None, None, '4245620'), ('4302', '29539090', '1399947328', '0.039187982761269016', None, None, None, None, '4245620')] time used for this insertion : 0.013748407363891602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08097028732299805 time spend to save output : 0.01407623291015625 total time spend for step 2 : 0.0950465202331543 step3:velours_tree Thu Dec 18 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {29539090: [{'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208}]} input_args_next_step : {29539090: ()} output_args : {29539090: [{'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208}]} args : 29539090 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29539090) 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([29539090]) 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.28046751022338867 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.2805178165435791 step4:send_mail_cod Thu Dec 18 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} input_args_next_step : {1399947395: ()} output_args : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} args : 1399947395 depend.output_id : 0 input_args_next_step : {1399947395: ('0.039187982761269016',), 1399947365: ()} output_args : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} args : 1399947365 depend.output_id : 0 input_args_next_step : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ()} output_args : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} args : 1399947329 depend.output_id : 0 input_args_next_step : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ()} output_args : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',)} args : 1399947328 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 : {29539090: [{'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208}]} input_args_next_step : {1399947395: ('0.039187982761269016',), 1399947365: ('0.039187982761269016',), 1399947329: ('0.039187982761269016',), 1399947328: ('0.039187982761269016',), 29539090: ()} output_args : {29539090: [{'Carton_gris': 29539197, 'kraft': 29539198, 'papier': 29539199, 'plastique': 29539200, 'mal_croppe': 29539201, 'Carton_brun': 29539202, 'Teint_Dans_La_Masse': 29539203, 'flou': 29539204, 'metal': 29539205, 'cartonnette': 29539206, 'autre_refus': 29539207, 'environnement': 29539208}]} args : 29539090 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 :5, first value : ('0.039187982761269016',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29539090) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1399947395,1399947365,1399947329,1399947328) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399947328 begin to download photo : 1399947329 begin to download photo : 1399947365 begin to download photo : 1399947395 download finish for photo 1399947365 download finish for photo 1399947395 download finish for photo 1399947328 download finish for photo 1399947329 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P29539090_18-12-2025_11_14_58.pdf 29539198 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399946742: '1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031435_0.png', 1399947202: '1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033830_0.png', 1399947203: '1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033953_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b26c36b315f27fc3fec4280ac27812a6_89869390.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d93670421882252297a6d3eb182fb4a1_47416938.png change filename to text .imagette295391981766052898/ imagette295391981766052898/1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033953_0.png.png imagette295391981766052898/1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033830_0.png.png imagette295391981766052898/1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031435_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d93670421882252297a6d3eb182fb4a1_51256213.png imagette295391981766052898 29539200 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399947193: '1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033835_0.png', 1399947197: '1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9669bdcf3fcc4ed9840da5482aa08636_35354682.png change filename to text .imagette295392001766052899/ imagette295392001766052899/1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033958_0.png.png imagette295392001766052899/1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033835_0.png.png imagette295392011766052899/ imagette295392041766052899/ imagette295392051766052899/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9669bdcf3fcc4ed9840da5482aa08636_20837188.png imagette295392001766052899 29539201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295392011766052899 29539204 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295392041766052899 29539205 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295392051766052899 29539206 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399946942: '1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033437_0.png'} change filename to text .imagette295392061766052899/ imagette295392061766052899/1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033437_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5383e6f966d9e5c5a973f9b23abb37bb_8184176.png imagette295392061766052899 29539207 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399946726: '1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031432_0.png', 1399946728: '1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031428_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f4e04453a2b9b9e783e4307191223ae7_543728.png change filename to text .imagette295392071766052899/ imagette295392071766052899/1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031432_0.png.png imagette295392071766052899/1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031428_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0953fa6ea9c1b38e664e1242fd441a0d_98701005.png imagette295392071766052899 29539197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399945770: '1766052387_4191204_1399945063_34935678f14e930c359c7898ad106ec5_rle_crop_4074027215_0.png', 1399946735: '1766052628_12530_1399945752_491ca1126ab95c7dd045a474c1e805cd_rle_crop_4074031391_0.png', 1399946736: '1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031427_0.png', 1399946940: '1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033427_0.png', 1399946941: '1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033430_0.png', 1399947054: '1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033855_0.png', 1399947059: '1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033978_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d188c9ce55745701e0fddc50a1d685b2_41989129.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/778936a92df4540840f8de6644d2aaf6_19724656.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f9b2c8513ff60f987adf3a4a656132b6_73792195.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/24c0899e6070646293a2c8940ae2b516_22126255.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/40663613d8e29be81ba564353da569cb_63288685.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fc36c636205883bb854e77c0bc79691f_95085831.png change filename to text .imagette295391971766052899/ imagette295391971766052899/1766052628_12530_1399945752_491ca1126ab95c7dd045a474c1e805cd_rle_crop_4074031391_0.png.png imagette295391971766052899/1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033978_0.png.png imagette295391971766052899/1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031427_0.png.png imagette295391971766052899/1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033427_0.png.png imagette295391971766052899/1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033430_0.png.png imagette295391971766052899/1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033855_0.png.png imagette295391971766052899/1766052387_4191204_1399945063_34935678f14e930c359c7898ad106ec5_rle_crop_4074027215_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fc36c636205883bb854e77c0bc79691f_60778300.png imagette295391971766052899 29539202 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399946190: '1766052445_1829_1399944600_fd7efc0b2a54789fd0bdec8386524a21_rle_crop_4074028160_0.png', 1399946739: '1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031378_0.png', 1399946740: '1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031398_0.png', 1399946741: '1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031401_0.png', 1399946943: '1766052666_16722_1399946017_05fdd209646a82b51ccca9687ca0b380_rle_crop_4074033453_0.png', 1399947130: '1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033836_0.png', 1399947133: '1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033831_0.png', 1399947137: '1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033856_0.png', 1399947141: '1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033860_0.png', 1399947146: '1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033872_0.png', 1399947150: '1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033959_0.png', 1399947153: '1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033954_0.png', 1399947157: '1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033979_0.png', 1399947161: '1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033983_0.png', 1399947165: '1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074033995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f049bcd34b7d5dd8dfbaddc4dad323d3_32156385.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/de1b82229cbc682107faac59daa48476_20123013.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/731ceb726dc3c12e3fea1ca91a43ffcf_37998618.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/84530f7aab8229559c81a9f0a681bd18_4828298.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0cd8d93bdb166c072d10e185519c9db0_40483480.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/581a666abfde482c7ead3e15bc7a6d2e_77256138.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b68125c825b081dc9ce695f8f57304de_59185545.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2c65b5ddb4b8611f5fa0f505546c2fcc_96784087.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/906581c74d8198d60ef340abdf8bfe09_58456936.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8c209641b6837a269068716d037e6329_91494635.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/581a666abfde482c7ead3e15bc7a6d2e_33230718.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b68125c825b081dc9ce695f8f57304de_49087426.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2c65b5ddb4b8611f5fa0f505546c2fcc_4571359.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/906581c74d8198d60ef340abdf8bfe09_68871018.png change filename to text .imagette295392021766052900/ imagette295392021766052900/1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031398_0.png.png imagette295392021766052900/1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033860_0.png.png imagette295392021766052900/1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074033995_0.png.png imagette295392021766052900/1766052666_16722_1399946017_05fdd209646a82b51ccca9687ca0b380_rle_crop_4074033453_0.png.png imagette295392021766052900/1766052445_1829_1399944600_fd7efc0b2a54789fd0bdec8386524a21_rle_crop_4074028160_0.png.png imagette295392021766052900/1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033979_0.png.png imagette295392021766052900/1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031401_0.png.png imagette295392021766052900/1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033872_0.png.png imagette295392021766052900/1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031378_0.png.png imagette295392021766052900/1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033831_0.png.png imagette295392021766052900/1766052685_18100_1399945773_a44bea97e1badb0bb4419d029c72f1d9_rle_crop_4074033856_0.png.png imagette295392021766052900/1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033959_0.png.png imagette295392021766052900/1766052685_18100_1399945536_e70176ea49b59a1674ec0c19d636f136_rle_crop_4074033954_0.png.png imagette295392021766052900/1766052685_18100_1399945796_3b2d3ea0bf07f52db3046deefcbb1752_rle_crop_4074033836_0.png.png imagette295392021766052900/1766052685_18100_1399945499_7089fde55fe75b15a77a7d3c29dfa7d1_rle_crop_4074033983_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8c209641b6837a269068716d037e6329_9997078.png imagette295392021766052900 29539203 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399946719: '1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031386_0.png', 1399946720: '1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031384_0.png', 1399946721: '1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031399_0.png', 1399946722: '1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031440_0.png', 1399946723: '1766052628_12530_1399945740_0a716b2a5cc2354493991092cac0be5e_rle_crop_4074031453_0.png', 1399946724: '1766052628_12530_1399945740_0a716b2a5cc2354493991092cac0be5e_rle_crop_4074031455_0.png', 1399946937: '1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033440_0.png', 1399946938: '1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033438_0.png', 1399946939: '1766052666_16722_1399946017_05fdd209646a82b51ccca9687ca0b380_rle_crop_4074033458_0.png', 1399947007: '1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033879_0.png', 1399947011: '1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033869_0.png', 1399947014: '1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074034002_0.png', 1399947018: '1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074033992_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b11cdc1dd732b0bc621897860e4c5381_56398357.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cd8903956027e5b111f1d5384a887f4e_17087965.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4e343dcedee44afd231dbe2da4d85ed2_69824025.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/477aa5a4ca4d19635a695667b3c88afc_52533432.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a724aedf5b0263d5821aae6b87b1dc09_78472605.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b2d11c418f006cc2d22c933961db7ce2_4628685.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/18874e328c9be34868f24f428b68742a_27250212.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8a76bb2a9b956fe008b8329a5c9ef7ec_37053466.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3a742560aebbb930c878972c46842234_63892485.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9032f1c4fd91e092b66a11212ae27b52_90860416.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/533762620b807515855b80160a684bdb_59081575.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9032f1c4fd91e092b66a11212ae27b52_7672848.png change filename to text .imagette295392031766052901/ imagette295392031766052901/1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031386_0.png.png imagette295392031766052901/1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033440_0.png.png imagette295392031766052901/1766052628_12530_1399945743_ac800d4929a4848b1d1db1d335e8e4f2_rle_crop_4074031440_0.png.png imagette295392031766052901/1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033869_0.png.png imagette295392031766052901/1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074033992_0.png.png imagette295392031766052901/1766052666_16722_1399946017_05fdd209646a82b51ccca9687ca0b380_rle_crop_4074033458_0.png.png imagette295392031766052901/1766052628_12530_1399945740_0a716b2a5cc2354493991092cac0be5e_rle_crop_4074031453_0.png.png imagette295392031766052901/1766052628_12530_1399945740_0a716b2a5cc2354493991092cac0be5e_rle_crop_4074031455_0.png.png imagette295392031766052901/1766052628_12530_1399945749_7330e83a7091296d5a04b0b8d22d6c77_rle_crop_4074031399_0.png.png imagette295392031766052901/1766052685_18100_1399945474_759d838797dc644a080c0631b7655e82_rle_crop_4074034002_0.png.png imagette295392031766052901/1766052666_16722_1399946036_df3740f1ca4da777f5cd4c5dc2f57ff6_rle_crop_4074033438_0.png.png imagette295392031766052901/1766052628_12530_1399946092_5215732ae15bc09ea4f1854c918bffbe_rle_crop_4074031384_0.png.png imagette295392031766052901/1766052685_18100_1399945771_604c224d080064b9e27043c3d449f18e_rle_crop_4074033879_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/533762620b807515855b80160a684bdb_71079851.png imagette295392031766052901 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29539090 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29539210,29539211,29539212,29539213,29539214,29539215,29539216,29539217,29539218,29539219,29539220,29539221?tags=Carton_gris,kraft,papier,plastique,mal_croppe,Carton_brun,Teint_Dans_La_Masse,flou,metal,cartonnette,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1399947395] : ('0.039187982761269016',) no score found for photo 1399947395 We are sending mail with results at report@fotonower.com args[1399947365] : ('0.039187982761269016',) no score found for photo 1399947365 We are sending mail with results at report@fotonower.com args[1399947329] : ('0.039187982761269016',) no score found for photo 1399947329 We are sending mail with results at report@fotonower.com args[1399947328] : ('0.039187982761269016',) no score found for photo 1399947328 We are sending mail with results at report@fotonower.com refus_total : 0.039187982761269016 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539090 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_P29539090_18-12-2025_11_14_58.pdf results_Auto_P29539090_18-12-2025_11_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_14_58.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','29539090','results_Auto_P29539090_18-12-2025_11_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_14_58.pdf','pdf','','0.14','0.039187982761269016') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29539090]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399947395, 1399947365, 1399947329, 1399947328] map_info['map_portfolio_photo'] : {29539090: [1399947395, 1399947365, 1399947329, 1399947328, 1399946947, 1399946946, 1399946945, 1399946944, 1399946918, 1399946884, 1399946850, 1399946791, 1399946745, 1399946706, 1399946704, 1399946702, 1399946701, 1399946666, 1399946609, 1399946569, 1399946536, 1399946503, 1399946471, 1399946300, 1399946299, 1399946298, 1399946297, 1399946260, 1399946255, 1399946228, 1399946226, 1399946208, 1399946174, 1399946092, 1399946036, 1399946017, 1399946015, 1399945894, 1399945796, 1399945773, 1399945771, 1399945768, 1399945754, 1399945752, 1399945749, 1399945745, 1399945743, 1399945740, 1399945586, 1399945536, 1399945499, 1399945474, 1399945465, 1399945166, 1399945132, 1399945129, 1399945128, 1399945127, 1399945126, 1399945087, 1399945063, 1399945029, 1399944997, 1399944600, 1399944548, 1399944466, 1399944404, 1399944329, 1399944271, 1399943743, 1399943741]} final : False mtd_id 4302 list_pids : [1399947395, 1399947365, 1399947329, 1399947328] 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, '4245620') ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29539090', '1399947395', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620')] time used for this insertion : 0.016951322555541992 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.6458635330200195 time spend to save output : 0.017122268676757812 total time spend for step 4 : 4.662985801696777 step5:split_time_score Thu Dec 18 11:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29539090'] 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 : [('29539090',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29539090) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399947365: {'path': 'temp/1766052898_3030593_1399947365_cdc1e35a7355d51d968be227c8968a77.jpg', 'extension': 'jpg'}, 1399947395: {'path': 'temp/1766052898_3030593_1399947395_b456aa608a7c2b1925ad6f03a72d725a.jpg', 'extension': 'jpg'}, 1399947328: {'path': 'temp/1766052898_3030593_1399947328_bd53233e0daa028811262d4a8689d472.jpg', 'extension': 'jpg'}, 1399947329: {'path': 'temp/1766052898_3030593_1399947329_315eebf5d7cbe7cf2fb650d3e7952648.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 = 29539090; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29539090 group by h (('11', 71),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29539090 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 (29539090) 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 (29539090) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29539090 Nombre de photos uploadées : 71 / 23040 (0%) 18122025 29539090 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 18122025 29539090 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1399943743, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/dc5522731241ac8f667499555203bcdf.jpg', 'username': None, 'uploaded_at': 1766052067, 'text': 'image_18122025_11_00_14_010216m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399943741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/63212b0cb3af8f38166d3a3a6bcd8c22.jpg', 'username': None, 'uploaded_at': 1766052067, 'text': 'image_18122025_11_00_44_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399944600, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fd7efc0b2a54789fd0bdec8386524a21.jpg', 'username': None, 'uploaded_at': 1766052128, 'text': 'image_18122025_11_00_54_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399944548, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9e3efb6d9dcf6fb5007975f7754b42b2.jpg', 'username': None, 'uploaded_at': 1766052128, 'text': 'image_18122025_11_01_04_010155m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029900074005126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29539090, '2025-12-18' ) 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-12-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.26679396629333496 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= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18514175, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18514176, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18514177, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18514178, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18514179, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18514180, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18514181, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29521664, 'dashboard_result_id': 18514182, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29522214, 'dashboard_result_id': 18514183, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29522701, 'dashboard_result_id': 18514184, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29523037, 'dashboard_result_id': 18514185, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29523671, 'dashboard_result_id': 18514186, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29524171, 'dashboard_result_id': 18514187, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29524599, 'dashboard_result_id': 18514188, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29525105, 'dashboard_result_id': 18514189, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29525978, 'dashboard_result_id': 18514190, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29526227, 'dashboard_result_id': 18514191, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29526571, 'dashboard_result_id': 18514192, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29526944, 'dashboard_result_id': 18514193, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29527309, 'dashboard_result_id': 18514194, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29527635, 'dashboard_result_id': 18514195, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29528012, 'dashboard_result_id': 18514196, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29528449, 'dashboard_result_id': 18514197, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29528882, 'dashboard_result_id': 18514198, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29529672, 'dashboard_result_id': 18514199, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29530097, 'dashboard_result_id': 18514200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29530582, 'dashboard_result_id': 18514201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29531020, 'dashboard_result_id': 18514202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29531694, 'dashboard_result_id': 18514203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29532246, 'dashboard_result_id': 18514204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29532732, 'dashboard_result_id': 18514205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29534702, 'dashboard_result_id': 18514206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29535436, 'dashboard_result_id': 18514207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29536076, 'dashboard_result_id': 18514208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29536806, 'dashboard_result_id': 18514209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29537598, 'dashboard_result_id': 18514210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29538418, 'dashboard_result_id': 18514211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2764671, 'mtr_portfolio_id': 29539090, 'dashboard_result_id': 18514212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_10_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29518047 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': 4244016, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 6, 8, 30), 'result': '0.03160039577318933', 'result_long': None, 'result_double': None}] Qualite : 0.03160039577318933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2764671 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514175, 0.03160039577318933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4244017, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 6, 9), 'result': '0.06084823724062575', 'result_long': None, 'result_double': None}] Qualite : 0.06084823724062575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2764671 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514176, 0.06084823724062575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 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': 4244018, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 6, 9, 30), 'result': '0.05106015840957442', 'result_long': None, 'result_double': None}] Qualite : 0.05106015840957442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2764671 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`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514177, 0.05106015840957442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29519795 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': 4244019, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 6, 10), 'result': '0.054834556193236', 'result_long': None, 'result_double': None}] Qualite : 0.054834556193236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2764671 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`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514178, 0.054834556193236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, '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 = 29520859 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': 4244020, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 32), 'result': '0.0755093911554323', 'result_long': None, 'result_double': None}] Qualite : 0.0755093911554323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2764671 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`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514179, 0.0755093911554323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, '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 = 29521041 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': 4244021, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 38), 'result': '0.0626906800236694', 'result_long': None, 'result_double': None}] Qualite : 0.0626906800236694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2764671 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`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514180, 0.0626906800236694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, '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 = 29521390 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': 4244022, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 59), 'result': '0.03601307954338611', 'result_long': None, 'result_double': None}] Qualite : 0.03601307954338611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2764671 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`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514181, 0.03601307954338611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 = 29521664 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': 4244023, 'mtr_portfolio_id': 29521664, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 7), 'result': '0.05224710201661981', 'result_long': None, 'result_double': None}] Qualite : 0.05224710201661981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521664 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}" where mtr_portfolio_id = 29521664 and dashboard_run_id = 2764671 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`=29521664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514182, 0.05224710201661981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, '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 = 29522214 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': 4244024, 'mtr_portfolio_id': 29522214, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 27), 'result': '0.04940413964377284', 'result_long': None, 'result_double': None}] Qualite : 0.04940413964377284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}" where mtr_portfolio_id = 29522214 and dashboard_run_id = 2764671 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`=29522214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514183, 0.04940413964377284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, '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 = 29522701 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': 4244025, 'mtr_portfolio_id': 29522701, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 57), 'result': '0.05754232575898655', 'result_long': None, 'result_double': None}] Qualite : 0.05754232575898655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522701 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}" where mtr_portfolio_id = 29522701 and dashboard_run_id = 2764671 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`=29522701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514184, 0.05754232575898655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, '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 = 29523037 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': 4244026, 'mtr_portfolio_id': 29523037, 'created_at': datetime.datetime(2025, 12, 18, 6, 12, 27), 'result': '0.04587231639916059', 'result_long': None, 'result_double': None}] Qualite : 0.04587231639916059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523037 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}" where mtr_portfolio_id = 29523037 and dashboard_run_id = 2764671 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`=29523037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514185, 0.04587231639916059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, '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 = 29523671 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': 4244027, 'mtr_portfolio_id': 29523671, 'created_at': datetime.datetime(2025, 12, 18, 6, 13, 29), 'result': '0.0382293432947963', 'result_long': None, 'result_double': None}] Qualite : 0.0382293432947963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523671 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}" where mtr_portfolio_id = 29523671 and dashboard_run_id = 2764671 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`=29523671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514186, 0.0382293432947963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, '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 = 29524171 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': 4244028, 'mtr_portfolio_id': 29524171, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 1), 'result': '0.04929941874328893', 'result_long': None, 'result_double': None}] Qualite : 0.04929941874328893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524171 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}" where mtr_portfolio_id = 29524171 and dashboard_run_id = 2764671 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`=29524171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514187, 0.04929941874328893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, '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 = 29524599 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': 4244029, 'mtr_portfolio_id': 29524599, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 32), 'result': '0.03584565775001134', 'result_long': None, 'result_double': None}] Qualite : 0.03584565775001134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524599 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}" where mtr_portfolio_id = 29524599 and dashboard_run_id = 2764671 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`=29524599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514188, 0.03584565775001134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, '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 = 29525105 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': 4244030, 'mtr_portfolio_id': 29525105, 'created_at': datetime.datetime(2025, 12, 18, 6, 15), 'result': '0.052551474443826615', 'result_long': None, 'result_double': None}] Qualite : 0.052551474443826615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525105 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}" where mtr_portfolio_id = 29525105 and dashboard_run_id = 2764671 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`=29525105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514189, 0.052551474443826615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, '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 = 29525978 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': 4244031, 'mtr_portfolio_id': 29525978, 'created_at': datetime.datetime(2025, 12, 18, 6, 15, 31), 'result': '0.07086307058103226', 'result_long': None, 'result_double': None}] Qualite : 0.07086307058103226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}" where mtr_portfolio_id = 29525978 and dashboard_run_id = 2764671 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`=29525978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514190, 0.07086307058103226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, '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 = 29526227 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': 4244032, 'mtr_portfolio_id': 29526227, 'created_at': datetime.datetime(2025, 12, 18, 5, 40, 38), 'result': '0.05295123788686618', 'result_long': None, 'result_double': None}] Qualite : 0.05295123788686618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526227 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}" where mtr_portfolio_id = 29526227 and dashboard_run_id = 2764671 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`=29526227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514191, 0.05295123788686618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, '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 = 29526571 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': 4243940, 'mtr_portfolio_id': 29526571, 'created_at': datetime.datetime(2025, 12, 18, 5, 47, 2), 'result': '0.062067327390015706', 'result_long': None, 'result_double': None}] Qualite : 0.062067327390015706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}" where mtr_portfolio_id = 29526571 and dashboard_run_id = 2764671 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`=29526571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514192, 0.062067327390015706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, '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 = 29526944 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': 4244144, 'mtr_portfolio_id': 29526944, 'created_at': datetime.datetime(2025, 12, 18, 6, 3, 33), 'result': '0.04189129800959036', 'result_long': None, 'result_double': None}] Qualite : 0.04189129800959036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}" where mtr_portfolio_id = 29526944 and dashboard_run_id = 2764671 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`=29526944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514193, 0.04189129800959036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, '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 = 29527309 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': 4244213, 'mtr_portfolio_id': 29527309, 'created_at': datetime.datetime(2025, 12, 18, 6, 17), 'result': '0.061390788419819', 'result_long': None, 'result_double': None}] Qualite : 0.061390788419819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}" where mtr_portfolio_id = 29527309 and dashboard_run_id = 2764671 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`=29527309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514194, 0.061390788419819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, '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 = 29527635 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': 4244258, 'mtr_portfolio_id': 29527635, 'created_at': datetime.datetime(2025, 12, 18, 6, 33, 2), 'result': '0.03759320880475477', 'result_long': None, 'result_double': None}] Qualite : 0.03759320880475477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527635 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}" where mtr_portfolio_id = 29527635 and dashboard_run_id = 2764671 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`=29527635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514195, 0.03759320880475477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, '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 = 29528012 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': 4244312, 'mtr_portfolio_id': 29528012, 'created_at': datetime.datetime(2025, 12, 18, 8, 16, 1), 'result': '0.03786383384521478', 'result_long': None, 'result_double': None}] Qualite : 0.03786383384521478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528012 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}" where mtr_portfolio_id = 29528012 and dashboard_run_id = 2764671 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`=29528012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514196, 0.03786383384521478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, '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 = 29528449 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': 4244382, 'mtr_portfolio_id': 29528449, 'created_at': datetime.datetime(2025, 12, 18, 7, 2, 58), 'result': '0.054285139060117615', 'result_long': None, 'result_double': None}] Qualite : 0.054285139060117615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}" where mtr_portfolio_id = 29528449 and dashboard_run_id = 2764671 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`=29528449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514197, 0.054285139060117615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, '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 = 29528882 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': 4244448, 'mtr_portfolio_id': 29528882, 'created_at': datetime.datetime(2025, 12, 18, 7, 18, 59), 'result': '0.03658198401281332', 'result_long': None, 'result_double': None}] Qualite : 0.03658198401281332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528882 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}" where mtr_portfolio_id = 29528882 and dashboard_run_id = 2764671 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`=29528882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514198, 0.03658198401281332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, '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 = 29529672 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': 4244524, 'mtr_portfolio_id': 29529672, 'created_at': datetime.datetime(2025, 12, 18, 7, 32, 59), 'result': '0.05840643824752703', 'result_long': None, 'result_double': None}] Qualite : 0.05840643824752703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29529672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29529672 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}" where mtr_portfolio_id = 29529672 and dashboard_run_id = 2764671 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`=29529672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514199, 0.05840643824752703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, '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 = 29530097 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': 4244580, 'mtr_portfolio_id': 29530097, 'created_at': datetime.datetime(2025, 12, 18, 7, 49, 1), 'result': '0.05377956909572141', 'result_long': None, 'result_double': None}] Qualite : 0.05377956909572141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530097 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}" where mtr_portfolio_id = 29530097 and dashboard_run_id = 2764671 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`=29530097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514200, 0.05377956909572141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, '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 = 29530582 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': 4244649, 'mtr_portfolio_id': 29530582, 'created_at': datetime.datetime(2025, 12, 18, 8, 2, 59), 'result': '0.03928558192464546', 'result_long': None, 'result_double': None}] Qualite : 0.03928558192464546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530582 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}" where mtr_portfolio_id = 29530582 and dashboard_run_id = 2764671 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`=29530582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514201, 0.03928558192464546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, '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 = 29531020 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': 4244712, 'mtr_portfolio_id': 29531020, 'created_at': datetime.datetime(2025, 12, 18, 8, 18, 59), 'result': '0.04236134745840149', 'result_long': None, 'result_double': None}] Qualite : 0.04236134745840149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}" where mtr_portfolio_id = 29531020 and dashboard_run_id = 2764671 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`=29531020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514202, 0.04236134745840149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, '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 = 29531694 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': 4244802, 'mtr_portfolio_id': 29531694, 'created_at': datetime.datetime(2025, 12, 18, 8, 33), 'result': '0.08133664011743781', 'result_long': None, 'result_double': None}] Qualite : 0.08133664011743781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531694 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}" where mtr_portfolio_id = 29531694 and dashboard_run_id = 2764671 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`=29531694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514203, 0.08133664011743781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, '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 = 29532246 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': 4244870, 'mtr_portfolio_id': 29532246, 'created_at': datetime.datetime(2025, 12, 18, 8, 46, 57), 'result': '0.05542506373220876', 'result_long': None, 'result_double': None}] Qualite : 0.05542506373220876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}" where mtr_portfolio_id = 29532246 and dashboard_run_id = 2764671 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`=29532246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514204, 0.05542506373220876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, '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 = 29532732 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': 4244936, 'mtr_portfolio_id': 29532732, 'created_at': datetime.datetime(2025, 12, 18, 9, 2, 59), 'result': '0.047884727407653836', 'result_long': None, 'result_double': None}] Qualite : 0.047884727407653836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532732 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}" where mtr_portfolio_id = 29532732 and dashboard_run_id = 2764671 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`=29532732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514205, 0.047884727407653836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, '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 = 29534702 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': 4245160, 'mtr_portfolio_id': 29534702, 'created_at': datetime.datetime(2025, 12, 18, 9, 49, 1), 'result': '0.06325621807706587', 'result_long': None, 'result_double': None}] Qualite : 0.06325621807706587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29534702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29534702 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}" where mtr_portfolio_id = 29534702 and dashboard_run_id = 2764671 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`=29534702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514206, 0.06325621807706587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, '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 = 29535436 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': 4245218, 'mtr_portfolio_id': 29535436, 'created_at': datetime.datetime(2025, 12, 18, 10, 3), 'result': '0.042799872508664114', 'result_long': None, 'result_double': None}] Qualite : 0.042799872508664114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29535436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29535436 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}" where mtr_portfolio_id = 29535436 and dashboard_run_id = 2764671 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`=29535436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514207, 0.042799872508664114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, '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 = 29536076 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': 4245297, 'mtr_portfolio_id': 29536076, 'created_at': datetime.datetime(2025, 12, 18, 10, 19), 'result': '0.05470350695505103', 'result_long': None, 'result_double': None}] Qualite : 0.05470350695505103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536076 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}" where mtr_portfolio_id = 29536076 and dashboard_run_id = 2764671 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`=29536076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514208, 0.05470350695505103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, '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 = 29536806 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': 4245371, 'mtr_portfolio_id': 29536806, 'created_at': datetime.datetime(2025, 12, 18, 10, 32, 58), 'result': '0.04716405841383832', 'result_long': None, 'result_double': None}] Qualite : 0.04716405841383832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536806 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}" where mtr_portfolio_id = 29536806 and dashboard_run_id = 2764671 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`=29536806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514209, 0.04716405841383832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, '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 = 29537598 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': 4245451, 'mtr_portfolio_id': 29537598, 'created_at': datetime.datetime(2025, 12, 18, 10, 48, 56), 'result': '0.04849076799267783', 'result_long': None, 'result_double': None}] Qualite : 0.04849076799267783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29537598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29537598 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}" where mtr_portfolio_id = 29537598 and dashboard_run_id = 2764671 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`=29537598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514210, 0.04849076799267783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, '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 = 29538418 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': 4245550, 'mtr_portfolio_id': 29538418, 'created_at': datetime.datetime(2025, 12, 18, 11, 3), 'result': '0.06064088875154784', 'result_long': None, 'result_double': None}] Qualite : 0.06064088875154784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29538418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29538418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}" where mtr_portfolio_id = 29538418 and dashboard_run_id = 2764671 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`=29538418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514211, 0.06064088875154784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, '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 = 29539090 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': 4245620, 'mtr_portfolio_id': 29539090, 'created_at': datetime.datetime(2025, 12, 18, 11, 14, 58), 'result': '0.039187982761269016', 'result_long': None, 'result_double': None}] Qualite : 0.039187982761269016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29539090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29539090 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_14_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}" where mtr_portfolio_id = 29539090 and dashboard_run_id = 2764671 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`=29539090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18514212, 0.039187982761269016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_14_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518047,29518739,29519140,29519795,29520859,29521041,29521390,29521664,29522214,29522701,29523037,29523671,29524171,29524599,29525105,29525978,29526227,29526571,29526944,29527309,29527635,29528012,29528449,29528882,29529672,29530097,29530582,29531020,29531694,29532246,29532732,29534702,29535436,29536076,29536806,29537598,29538418,29539090) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,), (1399881612,), (1399881613,), (1399881615,), (1399881616,), (1399881619,), (1399881623,), (1399881640,), (1399881636,), (1399881638,), (1399882198,), (1399882208,), (1399882210,), (1399882214,), (1399882218,), (1399882238,), (1399882240,), (1399882242,), (1399882246,), (1399882249,), (1399882261,), (1399882263,), (1399882267,), (1399882271,), (1399882275,), (1399882281,), (1399882290,), (1399882292,), (1399882294,), (1399882297,), (1399882300,), (1399882303,), (1399882307,), (1399882314,), (1399882315,), (1399882316,), (1399882385,), (1399882391,), (1399882399,), (1399882408,), (1399882424,), (1399882425,), (1399882426,), (1399882427,), (1399882430,), (1399882447,), (1399882448,), (1399882449,), (1399882461,), (1399882462,), (1399882463,), (1399882484,), (1399882485,), (1399882486,), (1399882487,), (1399882488,), (1399882500,), (1399882501,), (1399882502,), (1399882503,), (1399882506,), (1399882521,), (1399882522,), (1399882523,), (1399882524,), (1399882538,), (1399882539,), (1399882540,), (1399882543,), (1399882546,), (1399882553,), (1399882555,), (1399882556,), (1399882557,), (1399882558,), (1399882560,), (1399882561,), (1399882564,), (1399882568,), (1399882583,), (1399882632,), (1399882577,), (1399882578,), (1399882579,), (1399882580,), (1399882610,), (1399882611,), (1399882612,), (1399882615,), (1399882617,), (1399882619,), (1399882624,), (1399882626,), (1399882628,), (1399882630,), (1399882634,), (1399882637,), (1399882640,), (1399882653,), (1399882654,), (1399882655,), (1399882656,), (1399882659,), (1399882662,), (1399882668,), (1399882669,), (1399882670,), (1399882671,), (1399882674,), (1399882695,), (1399882696,), (1399882697,), (1399882722,), (1399882728,), (1399882729,), (1399882730,), (1399882733,), (1399882745,), (1399882746,), (1399882747,), (1399882761,), (1399882773,), (1399882794,), (1399882795,), (1399882796,), (1399882799,), (1399882802,), (1399882805,), (1399882815,), (1399882816,), (1399882820,), (1399882827,), (1399882828,), (1399882829,), (1399882832,), (1399882835,), (1399882858,), (1399882860,), (1399882864,), (1399882868,), (1399882877,), (1399882882,), (1399882884,), (1399882885,), (1399882886,), (1399882887,), (1399882892,), (1399882893,), (1399882896,), (1399882897,), (1399882899,), (1399882900,), (1399882903,), (1399882904,), (1399882907,), (1399882908,), (1399882919,), (1399882920,), (1399882921,), (1399882922,), (1399882947,), (1399882954,), (1399882955,), (1399882967,), (1399882968,), (1399882969,), (1399882970,), (1399882974,), (1399882975,), (1399883005,), (1399882995,), (1399883000,), (1399883001,), (1399883002,), (1399883013,), (1399883014,), (1399883015,), (1399883033,), (1399883034,), (1399883040,), (1399883049,), (1399883051,), (1399883068,), (1399883069,), (1399883070,), (1399883073,), (1399883076,), (1399883077,), (1399883095,), (1399883103,), (1399883104,), (1399883105,), (1399883108,), (1399883109,), (1399883112,), (1399883115,), (1399883124,), (1399883126,), (1399883128,), (1399883132,), (1399883136,), (1399883143,), (1399883159,), (1399883160,), (1399883161,), (1399883162,), (1399883165,), (1399883168,), (1399883174,), (1399883175,), (1399883204,), (1399883205,), (1399883206,), (1399883207,), (1399883209,), (1399883231,), (1399883233,), (1399883235,), (1399883237,), (1399883240,), (1399883263,), (1399883264,), (1399883265,), (1399883276,), (1399883277,), (1399883278,), (1399883302,), (1399883303,), (1399883304,), (1399883305,), (1399883308,), (1399883311,), (1399883614,), (1399883652,), (1399883731,), (1399883802,), (1399883851,), (1399883889,), (1399884027,), (1399884062,), (1399884097,), (1399884155,), (1399884230,), (1399884302,), (1399884656,), (1399884509,), (1399884572,), (1399884613,), (1399884705,), (1399884736,), (1399884768,), (1399885423,), (1399885488,), (1399885535,), (1399885566,), (1399885611,), (1399885656,), (1399886533,), (1399886535,), (1399886536,), (1399886917,), (1399886918,), (1399886919,), (1399886920,), (1399886923,), (1399886951,), (1399886952,), (1399886953,), (1399886954,), (1399886957,), (1399886960,), (1399886975,), (1399886977,), (1399886978,), (1399886979,), (1399887000,), (1399887001,), (1399887002,), (1399887015,), (1399887016,), (1399887017,), (1399887018,), (1399887021,), (1399887046,), (1399887047,), (1399887048,), (1399887049,), (1399887052,), (1399887067,), (1399887069,), (1399887092,), (1399887094,), (1399887096,), (1399887100,), (1399887104,), (1399887118,), (1399887119,), (1399887120,), (1399887121,), (1399887144,), (1399887149,), (1399887150,), (1399887151,), (1399887154,), (1399887157,), (1399887178,), (1399887179,), (1399887181,), (1399887214,), (1399887205,), (1399887207,), (1399887209,), (1399887211,), (1399887226,), (1399887227,), (1399887228,), (1399887229,), (1399887245,), (1399887249,), (1399887251,), (1399887253,), (1399887255,), (1399887257,), (1399887269,), (1399887272,), (1399887275,), (1399887280,), (1399887283,), (1399887287,), (1399887302,), (1399887304,), (1399887305,), (1399887307,), (1399887310,), (1399887326,), (1399887362,), (1399887364,), (1399887365,), (1399887366,), (1399887369,), (1399887380,), (1399887382,), (1399887386,), (1399887388,), (1399887410,), (1399887411,), (1399887412,), (1399887413,), (1399887428,), (1399887431,), (1399887434,), (1399887438,), (1399887463,), (1399887470,), (1399887484,), (1399887490,), (1399887491,), (1399887494,), (1399887496,), (1399887523,), (1399887524,), (1399887525,), (1399887526,), (1399887528,), (1399887531,), (1399887548,), (1399887550,), (1399887552,), (1399887555,), (1399887558,), (1399887560,), (1399887568,), (1399887569,), (1399887571,), (1399887573,), (1399887575,), (1399887577,), (1399887585,), (1399887586,), (1399887590,), (1399887591,), (1399887594,), (1399887595,), (1399887610,), (1399887604,), (1399887605,), (1399887606,), (1399887607,), (1399887622,), (1399887624,), (1399887626,), (1399887628,), (1399887631,), (1399887634,), (1399887643,), (1399887644,), (1399887645,), (1399887648,), (1399887653,), (1399887656,), (1399887663,), (1399887670,), (1399887672,), (1399887674,), (1399887676,), (1399887679,), (1399887692,), (1399887693,), (1399887694,), (1399887695,), (1399887717,), (1399887719,), (1399887721,), (1399887723,), (1399887738,), (1399887739,), (1399887740,), (1399887741,), (1399887774,), (1399887782,), (1399887784,), (1399887786,), (1399887808,), (1399887809,), (1399887810,), (1399887813,), (1399887816,), (1399887821,), (1399887827,), (1399887829,), (1399887831,), (1399887839,), (1399887840,), (1399887841,), (1399887844,), (1399887856,), (1399887858,), (1399887860,), (1399887862,), (1399887910,), (1399887913,), (1399887914,), (1399887929,), (1399887930,), (1399887933,), (1399887935,), (1399887937,), (1399887940,), (1399887966,), (1399887967,), (1399887968,), (1399887969,), (1399887972,), (1399887988,), (1399887990,), (1399887993,), (1399887995,), (1399887997,), (1399887998,), (1399888026,), (1399888024,), (1399888025,), (1399888040,), (1399888042,), (1399888044,), (1399888046,), (1399888067,), (1399888068,), (1399888069,), (1399888083,), (1399888085,), (1399888087,), (1399888089,), (1399888092,), (1399888116,), (1399888117,), (1399888118,), (1399888121,), (1399888124,), (1399888126,), (1399888133,), (1399888135,), (1399888136,), (1399888149,), (1399888166,), (1399888168,), (1399888170,), (1399888186,), (1399888187,), (1399888188,), (1399888189,), (1399888220,), (1399888221,), (1399888223,), (1399888225,), (1399888238,), (1399888239,), (1399888240,), (1399888241,), (1399888242,), (1399888270,), (1399888272,), (1399888337,), (1399888338,), (1399888355,), (1399888357,), (1399888360,), (1399888392,), (1399888386,), (1399888388,), (1399888390,), (1399888418,), (1399888420,), (1399888422,), (1399888516,), (1399888548,), (1399888579,), (1399888612,), (1399889047,), (1399889080,), (1399889113,), (1399889148,), (1399889187,), (1399889219,), (1399889331,), (1399889368,), (1399889409,), (1399889443,), (1399889445,), (1399889447,), (1399889450,), (1399889452,), (1399889456,), (1399889482,), (1399889515,), (1399889550,), (1399889582,), (1399889807,), (1399889840,), (1399889872,), (1399889896,), (1399890035,), (1399890037,), (1399890064,), (1399890066,), (1399890068,), (1399890072,), (1399890088,), (1399890093,), (1399890103,), (1399890106,), (1399890124,), (1399890125,), (1399890126,), (1399890147,), (1399890165,), (1399892241,), (1399892237,), (1399894026,), (1399894063,), (1399894513,), (1399894514,), (1399894516,), (1399894518,), (1399894521,), (1399894524,), (1399894649,), (1399894683,), (1399894713,), (1399894743,), (1399894758,), (1399894851,), (1399894853,), (1399894854,), (1399894856,), (1399894858,), (1399894860,), (1399894868,), (1399894870,), (1399894872,), (1399894874,), (1399894879,), (1399894883,), (1399894887,), (1399894893,), (1399894898,), (1399894904,), (1399894906,), (1399894908,), (1399894909,), (1399894911,), (1399894925,), (1399894926,), (1399894927,), (1399894928,), (1399894959,), (1399894960,), (1399894961,), (1399894962,), (1399894965,), (1399894968,), (1399894978,), (1399894980,), (1399894982,), (1399895012,), (1399895004,), (1399895005,), (1399895006,), (1399895007,), (1399895010,), (1399895021,), (1399895022,), (1399895023,), (1399895047,), (1399895056,), (1399895058,), (1399895059,), (1399895062,), (1399895079,), (1399895081,), (1399895082,), (1399895083,), (1399895085,), (1399895087,), (1399895121,), (1399895122,), (1399895123,), (1399895126,), (1399895129,), (1399895132,), (1399895139,), (1399895141,), (1399895143,), (1399895145,), (1399895149,), (1399895152,), (1399895154,), (1399895157,), (1399895173,), (1399895202,), (1399895208,), (1399895211,), (1399895217,), (1399895222,), (1399895290,), (1399895293,), (1399895296,), (1399895299,), (1399895304,), (1399895319,), (1399895320,), (1399895321,), (1399895322,), (1399895324,), (1399895351,), (1399895353,), (1399895354,), (1399895357,), (1399895360,), (1399895371,), (1399895372,), (1399895373,), (1399895374,), (1399895377,), (1399895392,), (1399895393,), (1399895394,), (1399895395,), (1399895399,), (1399895410,), (1399895412,), (1399895414,), (1399895418,), (1399895422,), (1399895426,), (1399895449,), (1399895453,), (1399895457,), (1399895460,), (1399895462,), (1399895464,), (1399895477,), (1399895512,), (1399895513,), (1399895514,), (1399895515,), (1399895465,), (1399895466,), (1399895468,), (1399895473,), (1399895475,), (1399895522,), (1399895525,), (1399895528,), (1399895532,), (1399895534,), (1399895537,), (1399895538,), (1399895539,), (1399895540,), (1399895543,), (1399895564,), (1399895565,), (1399895566,), (1399895567,), (1399895569,), (1399895589,), (1399895591,), (1399895592,), (1399895594,), (1399895618,), (1399895620,), (1399895621,), (1399895622,), (1399895625,), (1399895628,), (1399895641,), (1399895642,), (1399895643,), (1399895667,), (1399895669,), (1399895671,), (1399895673,), (1399895676,), (1399895678,), (1399895689,), (1399895690,), (1399895691,), (1399895692,), (1399895717,), (1399895719,), (1399895721,), (1399895724,), (1399895727,), (1399895729,), (1399895735,), (1399895736,), (1399895737,), (1399895739,), (1399895744,), (1399895746,), (1399895748,), (1399895754,), (1399895757,), (1399895771,), (1399895774,), (1399895775,), (1399895796,), (1399895797,), (1399895798,), (1399895799,), (1399895802,), (1399895803,), (1399895831,), (1399895832,), (1399895833,), (1399895834,), (1399895837,), (1399895849,), (1399895850,), (1399895852,), (1399895853,), (1399895856,), (1399895883,), (1399895877,), (1399895878,), (1399895879,), (1399895880,), (1399895893,), (1399895895,), (1399895897,), (1399895901,), (1399895905,), (1399895922,), (1399895924,), (1399895926,), (1399895930,), (1399895934,), (1399895938,), (1399895951,), (1399895952,), (1399895953,), (1399895954,), (1399895957,), (1399895981,), (1399895982,), (1399895983,), (1399895986,), (1399895989,), (1399895990,), (1399895999,), (1399896002,), (1399896004,), (1399896006,), (1399896008,), (1399896055,), (1399896238,), (1399896229,), (1399896232,), (1399896235,), (1399896258,), (1399896260,), (1399896262,), (1399896456,), (1399896489,), (1399896957,), (1399896991,), (1399897024,), (1399897335,), (1399897819,), (1399897864,), (1399897865,), (1399897867,), (1399897868,), (1399897894,), (1399897892,), (1399897893,), (1399897906,), (1399897907,), (1399897925,), (1399897926,), (1399897927,), (1399897928,), (1399897930,), (1399897932,), (1399897950,), (1399897951,), (1399897952,), (1399897953,), (1399897955,), (1399897976,), (1399897978,), (1399897980,), (1399897982,), (1399897984,), (1399897985,), (1399897990,), (1399897993,), (1399897995,), (1399897997,), (1399897999,), (1399898002,), (1399898004,), (1399898009,), (1399898013,), (1399898024,), (1399898025,), (1399898026,), (1399898027,), (1399898043,), (1399898045,), (1399898046,), (1399898047,), (1399898050,), (1399898052,), (1399898075,), (1399898076,), (1399898077,), (1399898078,), (1399898090,), (1399898092,), (1399898094,), (1399898098,), (1399898102,), (1399898116,), (1399898117,), (1399898118,), (1399898119,), (1399898122,), (1399898125,), (1399898135,), (1399898136,), (1399898137,), (1399898138,), (1399898172,), (1399898181,), (1399898183,), (1399898184,), (1399898187,), (1399898189,), (1399898205,), (1399898206,), (1399898207,), (1399898208,), (1399898229,), (1399898231,), (1399898233,), (1399898235,), (1399898238,), (1399898240,), (1399898247,), (1399898249,), (1399898251,), (1399898253,), (1399898263,), (1399898256,), (1399898257,), (1399898260,), (1399898283,), (1399898284,), (1399898285,), (1399898286,), (1399898289,), (1399898304,), (1399898305,), (1399898306,), (1399898307,), (1399898322,), (1399898323,), (1399898324,), (1399898325,), (1399898342,), (1399898344,), (1399898346,), (1399898350,), (1399898354,), (1399898378,), (1399898386,), (1399898387,), (1399898388,), (1399898391,), (1399898405,), (1399898406,), (1399898407,), (1399898434,), (1399898436,), (1399898437,), (1399898438,), (1399898441,), (1399898443,), (1399898460,), (1399898461,), (1399898462,), (1399898463,), (1399898466,), (1399898469,), (1399898485,), (1399898486,), (1399898487,), (1399898490,), (1399898492,), (1399898494,), (1399898503,), (1399898506,), (1399898507,), (1399898508,), (1399898509,), (1399898510,), (1399898513,), (1399898516,), (1399898521,), (1399898534,), (1399898535,), (1399898536,), (1399898537,), (1399898540,), (1399898543,), (1399898561,), (1399898565,), (1399898566,), (1399898567,), (1399898585,), (1399898593,), (1399898601,), (1399898602,), (1399898605,), (1399898607,), (1399898620,), (1399898621,), (1399898622,), (1399898643,), (1399898637,), (1399898638,), (1399898639,), (1399898640,), (1399898654,), (1399898655,), (1399898656,), (1399898657,), (1399898673,), (1399898674,), (1399898675,), (1399898676,), (1399898677,), (1399898680,), (1399898693,), (1399898694,), (1399898695,), (1399898696,), (1399898699,), (1399898722,), (1399898723,), (1399898724,), (1399898726,), (1399898728,), (1399898731,), (1399898740,), (1399898743,), (1399898745,), (1399898751,), (1399898753,), (1399898756,), (1399898758,), (1399898760,), (1399898762,), (1399898783,), (1399898784,), (1399898785,), (1399898786,), (1399898809,), (1399898811,), (1399898813,), (1399898817,), (1399898821,), (1399898823,), (1399898845,), (1399898846,), (1399898847,), (1399898848,), (1399898851,), (1399898871,), (1399898872,), (1399898873,), (1399898874,), (1399898877,), (1399898880,), (1399898904,), (1399898905,), (1399898906,), (1399898907,), (1399898920,), (1399898922,), (1399898923,), (1399898949,), (1399899300,), (1399899302,), (1399899308,), (1399899310,), (1399899313,), (1399899314,), (1399899315,), (1399899660,), (1399899482,), (1399899519,), (1399899553,), (1399899593,), (1399900177,), (1399900218,), (1399900250,), (1399900284,), (1399900342,), (1399900673,), (1399900676,), (1399900677,), (1399900681,), (1399900716,), (1399900961,), (1399900972,), (1399900992,), (1399900997,), (1399901000,), (1399901002,), (1399901192,), (1399901221,), (1399901254,), (1399901285,), (1399901323,), (1399901713,), (1399901737,), (1399901738,), (1399901739,), (1399901742,), (1399901760,), (1399902076,), (1399902271,), (1399902321,), (1399902357,), (1399902768,), (1399902784,), (1399902785,), (1399903389,), (1399903411,), (1399903415,), (1399903416,), (1399903428,), (1399903445,), (1399903475,), (1399903513,), (1399903580,), (1399903622,), (1399903819,), (1399903838,), (1399903860,), (1399903867,), (1399903870,), (1399903880,), (1399903881,), (1399903883,), (1399903884,), (1399903887,), (1399903890,), (1399903925,), (1399903913,), (1399903914,), (1399903915,), (1399903916,), (1399903957,), (1399903958,), (1399903959,), (1399903960,), (1399903963,), (1399903965,), (1399903995,), (1399903996,), (1399903997,), (1399903998,), (1399904001,), (1399904012,), (1399904013,), (1399904014,), (1399904015,), (1399904017,), (1399904019,), (1399904326,), (1399904327,), (1399904331,), (1399904333,), (1399904365,), (1399904404,), (1399904477,), (1399904478,), (1399904482,), (1399904491,), (1399904492,), (1399904494,), (1399904496,), (1399904498,), (1399904504,), (1399904506,), (1399904510,), (1399904529,), (1399904531,), (1399904532,), (1399904534,), (1399904549,), (1399904550,), (1399904551,), (1399904552,), (1399904555,), (1399904560,), (1399904574,), (1399904577,), (1399904578,), (1399904579,), (1399904582,), (1399904608,), (1399904609,), (1399904613,), (1399904620,), (1399904652,), (1399904783,), (1399904784,), (1399904785,), (1399904790,), (1399904800,), (1399904821,), (1399904901,), (1399904912,), (1399904916,), (1399904917,), (1399904919,), (1399904979,), (1399904980,), (1399904981,), (1399904982,), (1399904985,), (1399904988,), (1399905000,), (1399905002,), (1399905004,), (1399905005,), (1399905030,), (1399905032,), (1399905033,), (1399905036,), (1399905039,), (1399905040,), (1399905048,), (1399905049,), (1399905050,), (1399905063,), (1399905051,), (1399905052,), (1399905055,), (1399905060,), (1399905077,), (1399905081,), (1399905082,), (1399905096,), (1399905097,), (1399905098,), (1399905099,), (1399905102,), (1399905105,), (1399905119,), (1399905121,), (1399905129,), (1399905138,), (1399905161,), (1399905163,), (1399905184,), (1399905222,), (1399905268,), (1399905369,), (1399905371,), (1399905372,), (1399905513,), (1399905514,), (1399905515,), (1399905516,), (1399905519,), (1399905547,), (1399905548,), (1399905549,), (1399905550,), (1399905569,), (1399905570,), (1399905601,), (1399905602,), (1399905603,), (1399905605,), (1399905607,), (1399905632,), (1399905633,), (1399905662,), (1399905664,), (1399905666,), (1399905670,), (1399905673,), (1399905684,), (1399905685,), (1399905686,), (1399905689,), (1399905692,), (1399905695,), (1399905703,), (1399905704,), (1399905705,), (1399905706,), (1399905707,), (1399905710,), (1399905712,), (1399905714,), (1399905726,), (1399905728,), (1399905730,), (1399905734,), (1399905753,), (1399905747,), (1399905748,), (1399905749,), (1399905750,), (1399905779,), (1399905780,), (1399905781,), (1399905782,), (1399905785,), (1399905815,), (1399905850,), (1399905852,), (1399905872,), (1399905873,), (1399905874,), (1399905877,), (1399905880,), (1399905889,), (1399905890,), (1399905893,), (1399905896,), (1399905899,), (1399905906,), (1399905915,), (1399905916,), (1399905941,), (1399905944,), (1399905959,), (1399905967,), (1399906017,), (1399906018,), (1399906019,), (1399906020,), (1399906023,), (1399906332,), (1399906582,), (1399906584,), (1399906586,), (1399906715,), (1399906716,), (1399906718,), (1399906734,), (1399906745,), (1399906757,), (1399906768,), (1399906770,), (1399906772,), (1399906777,), (1399906781,), (1399906784,), (1399906804,), (1399906805,), (1399906806,), (1399906807,), (1399906824,), (1399906828,), (1399906830,), (1399906831,), (1399906834,), (1399906836,), (1399906854,), (1399906897,), (1399906939,), (1399906995,), (1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,), (1399909983,), (1399909991,), (1399909993,), (1399909996,), (1399910000,), (1399910004,), (1399910028,), (1399910022,), (1399910023,), (1399910024,), (1399910025,), (1399910046,), (1399910047,), (1399910059,), (1399910060,), (1399910063,), (1399910066,), (1399910412,), (1399910446,), (1399910472,), (1399910474,), (1399910477,), (1399910480,), (1399910555,), (1399910589,), (1399910628,), (1399910815,), (1399910817,), (1399910818,), (1399910820,), (1399910822,), (1399910823,), (1399910831,), (1399910840,), (1399910847,), (1399910906,), (1399910907,), (1399910910,), (1399910922,), (1399910943,), (1399910985,), (1399910993,), (1399910994,), (1399910995,), (1399911007,), (1399911009,), (1399911010,), (1399911011,), (1399911013,), (1399911015,), (1399911036,), (1399911037,), (1399911038,), (1399911053,), (1399911054,), (1399911055,), (1399911056,), (1399911059,), (1399911061,), (1399911084,), (1399911086,), (1399911088,), (1399911090,), (1399911093,), (1399911094,), (1399911110,), (1399911113,), (1399911115,), (1399911143,), (1399911144,), (1399911145,), (1399911146,), (1399911149,), (1399911152,), (1399911164,), (1399911166,), (1399911168,), (1399911170,), (1399911199,), (1399911201,), (1399911202,), (1399911205,), (1399911208,), (1399911210,), (1399911223,), (1399911224,), (1399911227,), (1399911230,), (1399911266,), (1399911249,), (1399911252,), (1399911254,), (1399911256,), (1399911262,), (1399911271,), (1399911273,), (1399911274,), (1399911275,), (1399911285,), (1399911287,), (1399911289,), (1399911291,), (1399911294,), (1399911320,), (1399911322,), (1399911323,), (1399911324,), (1399911326,), (1399911328,), (1399911347,), (1399911348,), (1399911349,), (1399911391,), (1399911394,), (1399911395,), (1399911396,), (1399911399,), (1399911402,), (1399911423,), (1399911425,), (1399911427,), (1399911429,), (1399911484,), (1399911495,), (1399911505,), (1399911507,), (1399911510,), (1399911513,), (1399911535,), (1399911537,), (1399911539,), (1399911543,), (1399911547,), (1399911777,), (1399911780,), (1399911784,), (1399911824,), (1399911827,), (1399911832,), (1399911857,), (1399911867,), (1399911925,), (1399911928,), (1399911948,), (1399911949,), (1399911966,), (1399911968,), (1399911970,), (1399911972,), (1399911975,), (1399911977,), (1399912000,), (1399912003,), (1399912004,), (1399912005,), (1399912020,), (1399912021,), (1399912022,), (1399912024,), (1399912112,), (1399912103,), (1399912105,), (1399912107,), (1399912109,), (1399912135,), (1399912138,), (1399912140,), (1399912238,), (1399912240,), (1399912291,), (1399912292,), (1399912293,), (1399912294,), (1399912296,), (1399912315,), (1399912316,), (1399912317,), (1399912318,), (1399912321,), (1399912347,), (1399912349,), (1399912351,), (1399912353,), (1399912378,), (1399912379,), (1399912380,), (1399912381,), (1399912396,), (1399912397,), (1399912398,), (1399912401,), (1399912404,), (1399912406,), (1399912451,), (1399912487,), (1399912518,), (1399912551,), (1399912617,), (1399912642,), (1399912676,), (1399912685,), (1399912813,), (1399912815,), (1399912817,), (1399912819,), (1399912822,), (1399912825,), (1399912976,), (1399912981,), (1399912984,), (1399912989,), (1399913019,), (1399918101,), (1399918159,), (1399918323,), (1399918359,), (1399918372,), (1399918471,), (1399918472,), (1399918473,), (1399918474,), (1399918477,), (1399918480,), (1399918517,), (1399918519,), (1399918521,), (1399918523,), (1399918526,), (1399918613,), (1399918643,), (1399918656,), (1399918664,), (1399918686,), (1399918750,), (1399918752,), (1399918754,), (1399918756,), (1399918759,), (1399918850,), (1399918933,), (1399918972,), (1399918979,), (1399919004,), (1399919146,), (1399919147,), (1399919148,), (1399919151,), (1399919159,), (1399919166,), (1399919177,), (1399919178,), (1399919181,), (1399919183,), (1399919220,), (1399919221,), (1399919222,), (1399919225,), (1399919228,), (1399919231,), (1399919265,), (1399919270,), (1399919281,), (1399919323,), (1399919488,), (1399919524,), (1399919557,), (1399919591,), (1399919970,), (1399920163,), (1399920196,), (1399920232,), (1399920244,), (1399920246,), (1399920559,), (1399920654,), (1399920729,), (1399920788,), (1399921197,), (1399921235,), (1399921252,), (1399921259,), (1399921262,), (1399921622,), (1399921666,), (1399921751,), (1399921818,), (1399921891,), (1399922160,), (1399922178,), (1399922213,), (1399922391,), (1399922392,), (1399922395,), (1399922149,), (1399922155,), (1399922157,), (1399922643,), (1399922679,), (1399922713,), (1399922748,), (1399922815,), (1399922865,), (1399922977,), (1399922978,), (1399922979,), (1399922980,), (1399923039,), (1399923040,), (1399923041,), (1399923042,), (1399923045,), (1399923048,), (1399923178,), (1399923189,), (1399923190,), (1399923214,), (1399923230,), (1399923237,), (1399923273,), (1399923275,), (1399923277,), (1399923279,), (1399923306,), (1399923449,), (1399923485,), (1399923517,), (1399923556,), (1399923573,), (1399923576,), (1399923579,), (1399923580,), (1399923582,), (1399923584,), (1399923903,), (1399923907,), (1399923908,), (1399923909,), (1399923919,), (1399924310,), (1399924322,), (1399924324,), (1399924326,), (1399924329,), (1399924344,), (1399924492,), (1399924497,), (1399924531,), (1399924569,), (1399924699,), (1399924727,), (1399924777,), (1399924779,), (1399924780,), (1399924781,), (1399924782,), (1399924784,), (1399924786,), (1399924789,), (1399924790,), (1399924794,), (1399924810,), (1399924811,), (1399924812,), (1399924816,), (1399924825,), (1399924828,), (1399924829,), (1399924830,), (1399924831,), (1399925317,), (1399925321,), (1399925341,), (1399925380,), (1399925415,), (1399925454,), (1399925732,), (1399925768,), (1399925801,), (1399926031,), (1399925854,), (1399925934,), (1399926025,), (1399926449,), (1399926450,), (1399926452,), (1399926454,), (1399926458,), (1399926462,), (1399926476,), (1399926479,), (1399926481,), (1399926484,), (1399926951,), (1399927064,), (1399927122,), (1399927155,), (1399927189,), (1399927226,), (1399927665,), (1399927667,), (1399927670,), (1399927707,), (1399927801,), (1399928261,), (1399928285,), (1399928327,), (1399928361,), (1399928373,), (1399928395,), (1399928531,), (1399928532,), (1399928569,), (1399928572,), (1399928607,), (1399928615,), (1399928618,), (1399928620,), (1399928622,), (1399928624,), (1399928635,), (1399928636,), (1399928642,), (1399928643,), (1399928645,), (1399928669,), (1399928671,), (1399928673,), (1399928675,), (1399928678,), (1399928701,), (1399928703,), (1399928705,), (1399928708,), (1399928711,), (1399928714,), (1399928811,), (1399928845,), (1399928877,), (1399928909,), (1399929047,), (1399929078,), (1399929112,), (1399929146,), (1399929175,), (1399929213,), (1399929394,), (1399929427,), (1399929434,), (1399929435,), (1399929439,), (1399929486,), (1399929492,), (1399929525,), (1399929564,), (1399929620,), (1399929892,), (1399929895,), (1399929925,), (1399929945,), (1399929961,), (1399929993,), (1399930349,), (1399930386,), (1399930457,), (1399930587,), (1399931503,), (1399931626,), (1399931639,), (1399931697,), (1399931731,), (1399931360,), (1399931451,), (1399931486,), (1399931499,), (1399931501,), (1399932088,), (1399932122,), (1399932175,), (1399932227,), (1399932881,), (1399933029,), (1399933126,), (1399933187,), (1399933257,), (1399933325,), (1399933736,), (1399933792,), (1399933824,), (1399933856,), (1399934104,), (1399934107,), (1399934148,), (1399934196,), (1399934235,), (1399934299,), (1399934377,), (1399934412,), (1399934421,), (1399934424,), (1399934477,), (1399934479,), (1399934481,), (1399934687,), (1399934688,), (1399934689,), (1399934690,), (1399934693,), (1399934785,), (1399934803,), (1399934805,), (1399934832,), (1399934838,), (1399934898,), (1399934900,), (1399934902,), (1399934904,), (1399934907,), (1399934928,), (1399934929,), (1399934931,), (1399934932,), (1399934936,), (1399934962,), (1399934963,), (1399934964,), (1399934967,), (1399934970,), (1399934973,), (1399935087,), (1399935114,), (1399935117,), (1399935123,), (1399935154,), (1399935312,), (1399935350,), (1399935384,), (1399935418,), (1399935539,), (1399935610,), (1399935646,), (1399935666,), (1399935669,), (1399935672,), (1399935775,), (1399935777,), (1399935779,), (1399935781,), (1399936175,), (1399936180,), (1399936215,), (1399936224,), (1399936227,), (1399936231,), (1399936308,), (1399936309,), (1399936310,), (1399936312,), (1399936409,), (1399936317,), (1399936320,), (1399936322,), (1399936332,), (1399936585,), (1399936588,), (1399936611,), (1399936621,), (1399936700,), (1399936702,), (1399936704,), (1399936706,), (1399936709,), (1399936730,), (1399936731,), (1399936732,), (1399936733,), (1399936759,), (1399936772,), (1399936775,), (1399936778,), (1399936781,), (1399936783,), (1399936803,), (1399936804,), (1399936805,), (1399936808,), (1399936811,), (1399936814,), (1399936835,), (1399936836,), (1399936837,), (1399936845,), (1399936978,), (1399937034,), (1399937036,), (1399937038,), (1399937059,), (1399937113,), (1399937410,), (1399937452,), (1399937488,), (1399937524,), (1399937813,), (1399937815,), (1399937820,), (1399937853,), (1399937887,), (1399938120,), (1399938121,), (1399938122,), (1399938126,), (1399938164,), (1399938198,), (1399938321,), (1399938335,), (1399938336,), (1399938378,), (1399938411,), (1399938648,), (1399938649,), (1399939173,), (1399939287,), (1399939305,), (1399939563,), (1399939653,), (1399939727,), (1399939755,), (1399939759,), (1399939768,), (1399940075,), (1399940107,), (1399940162,), (1399940166,), (1399940440,), (1399940333,), (1399940334,), (1399940335,), (1399940336,), (1399940364,), (1399940539,), (1399940542,), (1399940544,), (1399940584,), (1399940585,), (1399940586,), (1399940588,), (1399940627,), (1399940666,), (1399940924,), (1399940926,), (1399940931,), (1399940933,), (1399941236,), (1399941257,), (1399941285,), (1399941288,), (1399941305,), (1399941323,), (1399941458,), (1399941459,), (1399941460,), (1399941462,), (1399941533,), (1399941608,), (1399941675,), (1399941720,), (1399941752,), (1399941976,), (1399941978,), (1399941980,), (1399942014,), (1399942017,), (1399942027,), (1399942057,), (1399942058,), (1399942059,), (1399942060,), (1399942232,), (1399942239,), (1399942241,), (1399942243,), (1399942246,), (1399942248,), (1399942543,), (1399942576,), (1399942612,), (1399942645,), (1399943017,), (1399943030,), (1399943067,), (1399943111,), (1399943133,), (1399943150,), (1399943272,), (1399943303,), (1399943326,), (1399943328,), (1399943331,), (1399943340,), (1399943378,), (1399943411,), (1399943444,), (1399943510,), (1399943512,), (1399943514,), (1399943516,), (1399943520,), (1399943522,), (1399943712,), (1399943715,), (1399943718,), (1399943744,), (1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29539090]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399947395, 1399947365, 1399947329, 1399947328] map_info['map_portfolio_photo'] : {29539090: [1399947395, 1399947365, 1399947329, 1399947328, 1399946947, 1399946946, 1399946945, 1399946944, 1399946918, 1399946884, 1399946850, 1399946791, 1399946745, 1399946706, 1399946704, 1399946702, 1399946701, 1399946666, 1399946609, 1399946569, 1399946536, 1399946503, 1399946471, 1399946300, 1399946299, 1399946298, 1399946297, 1399946260, 1399946255, 1399946228, 1399946226, 1399946208, 1399946174, 1399946092, 1399946036, 1399946017, 1399946015, 1399945894, 1399945796, 1399945773, 1399945771, 1399945768, 1399945754, 1399945752, 1399945749, 1399945745, 1399945743, 1399945740, 1399945586, 1399945536, 1399945499, 1399945474, 1399945465, 1399945166, 1399945132, 1399945129, 1399945128, 1399945127, 1399945126, 1399945087, 1399945063, 1399945029, 1399944997, 1399944600, 1399944548, 1399944466, 1399944404, 1399944329, 1399944271, 1399943743, 1399943741]} final : True mtd_id 4302 list_pids : [1399947395, 1399947365, 1399947329, 1399947328] Looping around the photos to save general results len do output : 1 /29539090Didn'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, '4245620') ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620') ('4302', None, None, None, None, None, None, None, '4245620') ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29539090', 'None', None, None, None, None, '4245620'), ('4302', '29539090', '1399947395', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947365', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947329', None, None, None, None, None, '4245620'), ('4302', '29539090', '1399947328', None, None, None, None, None, '4245620')] time used for this insertion : 0.016711950302124023 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.023355484008789 time spend to save output : 0.016895055770874023 total time spend for step 5 : 3.040250539779663 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 (4245620) 2.11user 2.42system 0:12.07elapsed 37%CPU (0avgtext+0avgdata 165020maxresident)k 272inputs+7712outputs (10major+66991minor)pagefaults 0swaps