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 : 296390 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 (3647414) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3647414) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407596 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3647414'] with mtr_portfolio_ids : ['26407596'] and first list_photo_ids : [] new path : /proc/296390/ Name: python3 Umask: 0002 State: R (running) Tgid: 296390 Ngid: 0 Pid: 296390 PPid: 296389 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 296390 NSpid: 296390 NSpgid: 294680 NSsid: 294680 VmPeak: 1107244 kB VmSize: 1107244 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99768 kB VmRSS: 99768 kB RssAnon: 60172 kB RssFile: 39596 kB RssShmem: 0 kB VmData: 865996 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 52 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '296390', 'Ngid': '0', 'Pid': '296390', 'PPid': '296389', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '296390', 'NSpid': '296390', 'NSpgid': '294680', 'NSsid': '294680', 'VmPeak': '1107244 kB', 'VmSize': '1107244 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99768 kB', 'VmRSS': '99768 kB', 'RssAnon': '60172 kB', 'RssFile': '39596 kB', 'RssShmem': '0 kB', 'VmData': '865996 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '52', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '296390', '1107244', '0', '1107244', '865996', '99768', b'', 'marlene', '3647414') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26407596) 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 (3647414 ) ) 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 (26407596) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380678162, 'portfolio_id': 26407596}, {'photo_id': 1380678160, 'portfolio_id': 26407596}, {'photo_id': 1380678158, 'portfolio_id': 26407596}, {'photo_id': 1380677789, 'portfolio_id': 26407596}, {'photo_id': 1380677786, 'portfolio_id': 26407596}, {'photo_id': 1380677783, 'portfolio_id': 26407596}, {'photo_id': 1380677780, 'portfolio_id': 26407596}, {'photo_id': 1380677777, 'portfolio_id': 26407596}, {'photo_id': 1380677774, 'portfolio_id': 26407596}, {'photo_id': 1380677395, 'portfolio_id': 26407596}, {'photo_id': 1380677394, 'portfolio_id': 26407596}, {'photo_id': 1380677393, 'portfolio_id': 26407596}, {'photo_id': 1380677392, 'portfolio_id': 26407596}, {'photo_id': 1380677391, 'portfolio_id': 26407596}, {'photo_id': 1380677390, 'portfolio_id': 26407596}, {'photo_id': 1380677144, 'portfolio_id': 26407596}, {'photo_id': 1380677142, 'portfolio_id': 26407596}, {'photo_id': 1380677140, 'portfolio_id': 26407596}, {'photo_id': 1380677102, 'portfolio_id': 26407596}, {'photo_id': 1380677101, 'portfolio_id': 26407596}, {'photo_id': 1380677100, 'portfolio_id': 26407596}, {'photo_id': 1380677099, 'portfolio_id': 26407596}, {'photo_id': 1380677098, 'portfolio_id': 26407596}, {'photo_id': 1380677019, 'portfolio_id': 26407596}, {'photo_id': 1380677018, 'portfolio_id': 26407596}, {'photo_id': 1380677017, 'portfolio_id': 26407596}, {'photo_id': 1380677016, 'portfolio_id': 26407596}, {'photo_id': 1380677015, 'portfolio_id': 26407596}, {'photo_id': 1380676766, 'portfolio_id': 26407596}, {'photo_id': 1380676764, 'portfolio_id': 26407596}, {'photo_id': 1380676762, 'portfolio_id': 26407596}, {'photo_id': 1380676759, 'portfolio_id': 26407596}, {'photo_id': 1380676512, 'portfolio_id': 26407596}, {'photo_id': 1380676511, 'portfolio_id': 26407596}, {'photo_id': 1380676510, 'portfolio_id': 26407596}, {'photo_id': 1380676509, 'portfolio_id': 26407596}, {'photo_id': 1380676508, 'portfolio_id': 26407596}, {'photo_id': 1380676503, 'portfolio_id': 26407596}, {'photo_id': 1380676502, 'portfolio_id': 26407596}, {'photo_id': 1380676501, 'portfolio_id': 26407596}, {'photo_id': 1380676500, 'portfolio_id': 26407596}, {'photo_id': 1380676499, 'portfolio_id': 26407596}, {'photo_id': 1380676498, 'portfolio_id': 26407596}, {'photo_id': 1380676359, 'portfolio_id': 26407596}, {'photo_id': 1380676358, 'portfolio_id': 26407596}, {'photo_id': 1380676357, 'portfolio_id': 26407596}, {'photo_id': 1380676356, 'portfolio_id': 26407596}, {'photo_id': 1380676355, 'portfolio_id': 26407596}, {'photo_id': 1380676354, 'portfolio_id': 26407596}, {'photo_id': 1380676120, 'portfolio_id': 26407596}, {'photo_id': 1380676119, 'portfolio_id': 26407596}, {'photo_id': 1380676118, 'portfolio_id': 26407596}, {'photo_id': 1380676084, 'portfolio_id': 26407596}, {'photo_id': 1380676083, 'portfolio_id': 26407596}, {'photo_id': 1380676082, 'portfolio_id': 26407596}, {'photo_id': 1380676081, 'portfolio_id': 26407596}, {'photo_id': 1380676035, 'portfolio_id': 26407596}, {'photo_id': 1380676034, 'portfolio_id': 26407596}, {'photo_id': 1380676033, 'portfolio_id': 26407596}, {'photo_id': 1380676032, 'portfolio_id': 26407596}, {'photo_id': 1380676031, 'portfolio_id': 26407596}, {'photo_id': 1380676030, 'portfolio_id': 26407596}, {'photo_id': 1380675155, 'portfolio_id': 26407596}] map_portfolio_id_photo_id: {26407596: [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774, 1380677395, 1380677394, 1380677393, 1380677392, 1380677391, 1380677390, 1380677144, 1380677142, 1380677140, 1380677102, 1380677101, 1380677100, 1380677099, 1380677098, 1380677019, 1380677018, 1380677017, 1380677016, 1380677015, 1380676766, 1380676764, 1380676762, 1380676759, 1380676512, 1380676511, 1380676510, 1380676509, 1380676508, 1380676503, 1380676502, 1380676501, 1380676500, 1380676499, 1380676498, 1380676359, 1380676358, 1380676357, 1380676356, 1380676355, 1380676354, 1380676120, 1380676119, 1380676118, 1380676084, 1380676083, 1380676082, 1380676081, 1380676035, 1380676034, 1380676033, 1380676032, 1380676031, 1380676030, 1380675155]} ##### 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.015450000762939453 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Sep 1 18:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26407596) 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 : 26407596 get user id for portfolio 26407596 get sub ptf for main ptf 26407596, type 3726 and hashtags ['plastique', 'metal', 'Carton_gris', 'Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'mal_croppe', 'cartonnette', 'Carton_brun', 'flou', 'kraft', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26407596 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','environnement','mal_croppe','cartonnette','Carton_brun','flou','kraft','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26407596 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','environnement','mal_croppe','cartonnette','Carton_brun','flou','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26407596, 'sub_port_id': 26407604, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769097, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'papier': {'main_port_id': 26407596, 'sub_port_id': 26407605, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769098, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'cartonnette': {'main_port_id': 26407596, 'sub_port_id': 26407606, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769099, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'plastique': {'main_port_id': 26407596, 'sub_port_id': 26407607, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769100, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'environnement': {'main_port_id': 26407596, 'sub_port_id': 26407608, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769101, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'flou': {'main_port_id': 26407596, 'sub_port_id': 26407609, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769102, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'autre_refus': {'main_port_id': 26407596, 'sub_port_id': 26407610, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769103, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'Carton_brun': {'main_port_id': 26407596, 'sub_port_id': 26407611, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769104, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'Carton_gris': {'main_port_id': 26407596, 'sub_port_id': 26407612, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769105, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'mal_croppe': {'main_port_id': 26407596, 'sub_port_id': 26407613, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769106, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'metal': {'main_port_id': 26407596, 'sub_port_id': 26407614, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769107, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}, 'kraft': {'main_port_id': 26407596, 'sub_port_id': 26407615, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769108, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26407604 , 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=26407596 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 (26407604) result : ((1380676304,), (1380676516,), (1380676536,), (1380677069,), (1380677341,), (1380677342,), (1380677343,), (1380677999,), (1380678001,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407605 , 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=26407596 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 (26407605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407606 , 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=26407596 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 (26407606) result : ((1380676197,), (1380676318,), (1380676519,), (1380676520,), (1380676553,), (1380676555,), (1380676557,), (1380677086,), (1380678034,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407607 , 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=26407596 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 (26407607) result : ((1380676524,), (1380676525,), (1380677345,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407608 , 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=26407596 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 (26407608) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407609 , 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=26407596 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 (26407609) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407610 , 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=26407596 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 (26407610) result : ((1380676543,), (1380678012,), (1380678015,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407611 , 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=26407596 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 (26407611) result : ((1380676204,), (1380676521,), (1380676522,), (1380676523,), (1380677087,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407612 , 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=26407596 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 (26407612) result : ((1380676311,), (1380676517,), (1380676518,), (1380677070,), (1380677071,), (1380677081,), (1380677082,), (1380677084,), (1380678024,), (1380678026,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407613 , 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=26407596 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 (26407613) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407614 , 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=26407596 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 (26407614) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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 26407615 , 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=26407596 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 (26407615) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26407596) result : ((1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) 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 (1380676500,1380677100) 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`=26407596 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','environnement','mal_croppe','cartonnette','Carton_brun','flou','kraft','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26407596 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','Carton_gris','Teint_Dans_La_Masse','autre_refus','environnement','mal_croppe','cartonnette','Carton_brun','flou','kraft','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 26407596, 'sub_port_id': 26407616, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769109, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'papier': {'main_port_id': 26407596, 'sub_port_id': 26407617, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769110, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'cartonnette': {'main_port_id': 26407596, 'sub_port_id': 26407618, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769111, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'plastique': {'main_port_id': 26407596, 'sub_port_id': 26407619, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769112, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'environnement': {'main_port_id': 26407596, 'sub_port_id': 26407620, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769113, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'flou': {'main_port_id': 26407596, 'sub_port_id': 26407621, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769114, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'autre_refus': {'main_port_id': 26407596, 'sub_port_id': 26407622, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769115, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'Carton_brun': {'main_port_id': 26407596, 'sub_port_id': 26407623, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769116, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'Carton_gris': {'main_port_id': 26407596, 'sub_port_id': 26407624, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769117, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'mal_croppe': {'main_port_id': 26407596, 'sub_port_id': 26407625, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769118, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'metal': {'main_port_id': 26407596, 'sub_port_id': 26407626, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769119, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}, 'kraft': {'main_port_id': 26407596, 'sub_port_id': 26407627, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17769120, 'last_updated_at': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 18, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407606 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407607 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407608 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407609 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407610 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407623,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407611 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407624,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407612 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407625,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407613 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407626,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407614 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26407627,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26407615 lien utilise dans velours : https://marlene.fotonower.com/velours/26407616,26407617,26407618,26407619,26407620,26407621,26407622,26407623,26407624,26407625,26407626,26407627?tags=Teint_Dans_La_Masse,papier,cartonnette,plastique,environnement,flou,autre_refus,Carton_brun,Carton_gris,mal_croppe,metal,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26407596]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] map_info['map_portfolio_photo'] : {26407596: [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774, 1380677395, 1380677394, 1380677393, 1380677392, 1380677391, 1380677390, 1380677144, 1380677142, 1380677140, 1380677102, 1380677101, 1380677100, 1380677099, 1380677098, 1380677019, 1380677018, 1380677017, 1380677016, 1380677015, 1380676766, 1380676764, 1380676762, 1380676759, 1380676512, 1380676511, 1380676510, 1380676509, 1380676508, 1380676503, 1380676502, 1380676501, 1380676500, 1380676499, 1380676498, 1380676359, 1380676358, 1380676357, 1380676356, 1380676355, 1380676354, 1380676120, 1380676119, 1380676118, 1380676084, 1380676083, 1380676082, 1380676081, 1380676035, 1380676034, 1380676033, 1380676032, 1380676031, 1380676030, 1380675155]} final : False mtd_id 4302 list_pids : [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] Looping around the photos to save general results len do output : 1 /26407596. 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, '3647414') ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26407596', "{'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615}", None, None, None, None, '3647414'), ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414')] time used for this insertion : 0.01385641098022461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4512805938720703 time spend to save output : 0.014153003692626953 total time spend for step 1 : 0.46543359756469727 step2:final Mon Sep 1 18: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 (26407596) 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 26407596 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380675155,1380676035,1380676034,1380676033,1380676032,1380676031,1380676030,1380676084,1380676083,1380676082,1380676081,1380676120,1380676119,1380676118,1380676512,1380676359,1380676511,1380676358,1380676357,1380676510,1380676509,1380676356,1380676508,1380676355,1380676503,1380676354,1380676502,1380676501,1380676500,1380676499,1380676498,1380676766,1380676764,1380676762,1380676759,1380677019,1380677018,1380677017,1380677016,1380677015,1380677102,1380677101,1380677100,1380677099,1380677098,1380677144,1380677142,1380677140,1380677395,1380677394,1380677393,1380677392,1380677391,1380677390,1380677789,1380677786,1380677783,1380677780,1380677777,1380677774,1380678162,1380678160,1380678158); 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([26407596]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} new output for save of step final : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] map_info['map_portfolio_photo'] : {26407596: [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774, 1380677395, 1380677394, 1380677393, 1380677392, 1380677391, 1380677390, 1380677144, 1380677142, 1380677140, 1380677102, 1380677101, 1380677100, 1380677099, 1380677098, 1380677019, 1380677018, 1380677017, 1380677016, 1380677015, 1380676766, 1380676764, 1380676762, 1380676759, 1380676512, 1380676511, 1380676510, 1380676509, 1380676508, 1380676503, 1380676502, 1380676501, 1380676500, 1380676499, 1380676498, 1380676359, 1380676358, 1380676357, 1380676356, 1380676355, 1380676354, 1380676120, 1380676119, 1380676118, 1380676084, 1380676083, 1380676082, 1380676081, 1380676035, 1380676034, 1380676033, 1380676032, 1380676031, 1380676030, 1380675155]} final : False mtd_id 4302 list_pids : [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] Looping around the photos to save general results len do output : 9 /1380678162.Didn't retrieve data . /1380678160.Didn't retrieve data . /1380678158.Didn't retrieve data . /1380677789.Didn't retrieve data . /1380677786.Didn't retrieve data . /1380677783.Didn't retrieve data . /1380677780.Didn't retrieve data . /1380677777.Didn't retrieve data . /1380677774.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, '3647414') ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '26407596', '1380678162', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380678160', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380678158', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677789', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677786', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677783', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677780', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677777', '0.0523285217751339', None, None, None, None, '3647414'), ('4302', '26407596', '1380677774', '0.0523285217751339', None, None, None, None, '3647414')] time used for this insertion : 0.014243364334106445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06701540946960449 time spend to save output : 0.014895200729370117 total time spend for step 2 : 0.08191061019897461 step3:velours_tree Mon Sep 1 18: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 : {26407596: [{'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615}]} input_args_next_step : {26407596: ()} output_args : {26407596: [{'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615}]} args : 26407596 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 : ({'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26407596) 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([26407596]) 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.30124545097351074 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.30129432678222656 step4:send_mail_cod Mon Sep 1 18:14:59 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 : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} input_args_next_step : {1380678162: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380678162 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380678160 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380678158 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677789 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677786 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677783 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677780 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677777 depend.output_id : 0 input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ()} output_args : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',)} args : 1380677774 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 : {26407596: [{'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615}]} input_args_next_step : {1380678162: ('0.0523285217751339',), 1380678160: ('0.0523285217751339',), 1380678158: ('0.0523285217751339',), 1380677789: ('0.0523285217751339',), 1380677786: ('0.0523285217751339',), 1380677783: ('0.0523285217751339',), 1380677780: ('0.0523285217751339',), 1380677777: ('0.0523285217751339',), 1380677774: ('0.0523285217751339',), 26407596: ()} output_args : {26407596: [{'Teint_Dans_La_Masse': 26407604, 'papier': 26407605, 'cartonnette': 26407606, 'plastique': 26407607, 'environnement': 26407608, 'flou': 26407609, 'autre_refus': 26407610, 'Carton_brun': 26407611, 'Carton_gris': 26407612, 'mal_croppe': 26407613, 'metal': 26407614, 'kraft': 26407615}]} args : 26407596 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 :10, first value : ('0.0523285217751339',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26407596) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1380678162,1380678160,1380678158,1380677789,1380677786,1380677783,1380677780,1380677777,1380677774) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380677774 begin to download photo : 1380677780 begin to download photo : 1380677786 begin to download photo : 1380678158 begin to download photo : 1380678162 download finish for photo 1380677780 begin to download photo : 1380677783 download finish for photo 1380677786 begin to download photo : 1380677789 download finish for photo 1380678162 download finish for photo 1380678158 begin to download photo : 1380678160 download finish for photo 1380677774 begin to download photo : 1380677777 download finish for photo 1380677789 download finish for photo 1380677777 download finish for photo 1380677783 download finish for photo 1380678160 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P26407596_01-09-2025_18_14_59.pdf 26407606 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676197: '1756742706_175225_1380676082_ec0f4e7618bec43d002fb60eabe86bbc_98498275_rle_crop_3939286668_0.png', 1380676318: '1756742726_175637_1380676033_b11d773b9e6ad15fc8cce3e3f0eb7a68_53521280_rle_crop_3939286980_0.png', 1380676519: '1756742826_181495_1380676357_801600a58a31760d496dea2a6d5938ad_60903522_rle_crop_3939288732_0.png', 1380676520: '1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289011_0.png', 1380676553: '1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289754_0.png', 1380676555: '1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289759_0.png', 1380676557: '1756742847_182122_1380676118_afc2ae8e66e29ee1091a0070e99df1b4_96685608_rle_crop_3939289774_0.png', 1380677086: '1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290757_0.png', 1380678034: '1756743187_199721_1380677392_1b70448ad49a42ad6e79bdb79c7ae2e2_54187502_rle_crop_3939293641_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/7b9eeb3a58c8eb2c0aaac666626b69ee_59617317.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/047e0643799baa563002ae80cf5e9df1_73708814.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/c6d380b3c4c2b148eb61ea872407199a_35146352.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/c1368871d41d03787d93dea5e781be52_80091914.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/c981febe68e30a90dbe79cf8bf2459ab_19668564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/75bcbe4b5eff3c3682d028e9ba4966e6_41845468.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4f131836540ae09d4e6afdb3e9a211c0_70737939.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/6575384a69b48ceab439dabe2800545d_63730481.png change filename to text .imagette264076061756743299/ imagette264076061756743299/1756742847_182122_1380676118_afc2ae8e66e29ee1091a0070e99df1b4_96685608_rle_crop_3939289774_0.png.png imagette264076061756743299/1756742826_181495_1380676357_801600a58a31760d496dea2a6d5938ad_60903522_rle_crop_3939288732_0.png.png imagette264076061756743299/1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289754_0.png.png imagette264076061756743299/1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289011_0.png.png imagette264076061756743299/1756742726_175637_1380676033_b11d773b9e6ad15fc8cce3e3f0eb7a68_53521280_rle_crop_3939286980_0.png.png imagette264076061756743299/1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289759_0.png.png imagette264076061756743299/1756742706_175225_1380676082_ec0f4e7618bec43d002fb60eabe86bbc_98498275_rle_crop_3939286668_0.png.png imagette264076061756743299/1756743187_199721_1380677392_1b70448ad49a42ad6e79bdb79c7ae2e2_54187502_rle_crop_3939293641_0.png.png imagette264076061756743299/1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290757_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/9c821991837e32d30161c1d8aeef93e5_22930997.png imagette264076061756743299 26407607 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407607 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676524: '1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288740_0.png', 1380676525: '1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289008_0.png', 1380677345: '1756743086_193862_1380677017_f11ac0c4ba35c56daf99f112c9b534cf_69004684_rle_crop_3939293182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/2cea5ebd03531e598465b010a266f681_73789212.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/17877f5b99162412347bf43190138c49_97801358.png change filename to text .imagette264076071756743300/ imagette264076071756743300/1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288740_0.png.png imagette264076071756743300/1756743086_193862_1380677017_f11ac0c4ba35c56daf99f112c9b534cf_69004684_rle_crop_3939293182_0.png.png imagette264076071756743300/1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289008_0.png.png imagette264076091756743300/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/3f889d24b68fa433388d32b0e8c52136_89132994.png imagette264076071756743300 26407609 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407609 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264076091756743300 26407610 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407610 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676543: '1756742847_182122_1380676118_afc2ae8e66e29ee1091a0070e99df1b4_96685608_rle_crop_3939289777_0.png', 1380678012: '1756743187_199721_1380677390_bfe2855c3d72f97ce28bae215672718e_771120_rle_crop_3939293663_0.png', 1380678015: '1756743187_199721_1380677390_bfe2855c3d72f97ce28bae215672718e_771120_rle_crop_3939293668_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b2393b1202df8c548c6c20206c9a699d_98716877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/e3ee99cf1932db4f84c1627a264604da_31334866.png change filename to text .imagette264076101756743300/ imagette264076101756743300/1756743187_199721_1380677390_bfe2855c3d72f97ce28bae215672718e_771120_rle_crop_3939293663_0.png.png imagette264076101756743300/1756743187_199721_1380677390_bfe2855c3d72f97ce28bae215672718e_771120_rle_crop_3939293668_0.png.png imagette264076101756743300/1756742847_182122_1380676118_afc2ae8e66e29ee1091a0070e99df1b4_96685608_rle_crop_3939289777_0.png.png imagette264076131756743300/ imagette264076141756743300/ imagette264076151756743300/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/362ff6fb9fc63f9c93524bf507d96b9a_66481293.png imagette264076101756743300 26407613 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264076131756743300 26407614 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407614 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264076141756743300 26407615 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407615 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264076151756743300 26407604 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676304: '1756742726_175637_1380676084_ff68db8d24e31c33641eecc3214cd189_57163029_rle_crop_3939286961_0.png', 1380676516: '1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288744_0.png', 1380676536: '1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289757_0.png', 1380677069: '1756742945_187015_1380676759_8b7f74138556b717239a23d76fd2096c_21484357_rle_crop_3939290526_0.png', 1380677341: '1756743086_193862_1380677016_37ff5aea69bfe69ca7f462bccc185ae0_47577138_rle_crop_3939293196_0.png', 1380677342: '1756743086_193862_1380677015_acce3a639664d7cd851bea617de94374_84000963_rle_crop_3939293207_0.png', 1380677343: '1756743086_193862_1380677015_acce3a639664d7cd851bea617de94374_84000963_rle_crop_3939293202_0.png', 1380677999: '1756743187_199721_1380677392_1b70448ad49a42ad6e79bdb79c7ae2e2_54187502_rle_crop_3939293646_0.png', 1380678001: '1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293654_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/14aebfdf60df0482f9be8fd4854bfa10_10828372.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/ed6175bd8f43bf8529cb9da66d3fe609_61487784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/266530fa3da67a81fdf786fa986d7c1d_34906228.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/714fa426c9053fda0c8cc0d55d5e11fc_33390818.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/97b8b3781ec00cc406e93efa2953cec6_94491503.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b0b3edd208a1a8e250696b5f827a9fe8_63236850.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4497d66e45f4db16d6e39a39d38e9bfd_42988245.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/52d4f256f79b691c4b00ac8150c90449_28603623.png change filename to text .imagette264076041756743300/ imagette264076041756743300/1756742945_187015_1380676759_8b7f74138556b717239a23d76fd2096c_21484357_rle_crop_3939290526_0.png.png imagette264076041756743300/1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293654_0.png.png imagette264076041756743300/1756742726_175637_1380676084_ff68db8d24e31c33641eecc3214cd189_57163029_rle_crop_3939286961_0.png.png imagette264076041756743300/1756743086_193862_1380677015_acce3a639664d7cd851bea617de94374_84000963_rle_crop_3939293202_0.png.png imagette264076041756743300/1756743187_199721_1380677392_1b70448ad49a42ad6e79bdb79c7ae2e2_54187502_rle_crop_3939293646_0.png.png imagette264076041756743300/1756743086_193862_1380677016_37ff5aea69bfe69ca7f462bccc185ae0_47577138_rle_crop_3939293196_0.png.png imagette264076041756743300/1756742847_182122_1380676119_9ddee654e6f58140e3d402327be8a9af_541723_rle_crop_3939289757_0.png.png imagette264076041756743300/1756743086_193862_1380677015_acce3a639664d7cd851bea617de94374_84000963_rle_crop_3939293207_0.png.png imagette264076041756743300/1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288744_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/23985b55dd6d9c93d2d109ecd4918a41_77108957.png imagette264076041756743300 26407611 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407611 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676204: '1756742706_175225_1380676082_ec0f4e7618bec43d002fb60eabe86bbc_98498275_rle_crop_3939286670_0.png', 1380676521: '1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289016_0.png', 1380676522: '1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289013_0.png', 1380676523: '1756742826_181495_1380676354_4fb1e389bcd9ee7e600c900dd0426c5d_94784324_rle_crop_3939289078_0.png', 1380677087: '1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/751378dc070cd4abb8e4804cbf9ee5b3_36964764.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/3bb52ae42de66acdea35c1511575037a_27072989.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/1c567a8eec5fd77d3acf2266abc919e1_49483296.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/a63ee15899425d9ee9aaa75967f3c95b_87694114.png change filename to text .imagette264076111756743300/ imagette264076111756743300/1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289013_0.png.png imagette264076111756743300/1756742826_181495_1380676355_fcde534ce22935f7c25fb5c673da543f_65788572_rle_crop_3939289016_0.png.png imagette264076111756743300/1756742826_181495_1380676354_4fb1e389bcd9ee7e600c900dd0426c5d_94784324_rle_crop_3939289078_0.png.png imagette264076111756743300/1756742706_175225_1380676082_ec0f4e7618bec43d002fb60eabe86bbc_98498275_rle_crop_3939286670_0.png.png imagette264076111756743300/1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290763_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/e28a79e9a76551c4ebf884559f586206_75326796.png imagette264076111756743300 26407612 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407612 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380676311: '1756742726_175637_1380676033_b11d773b9e6ad15fc8cce3e3f0eb7a68_53521280_rle_crop_3939286979_0.png', 1380676517: '1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288741_0.png', 1380676518: '1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288749_0.png', 1380677070: '1756742945_187015_1380676764_01900693037bce6148e0ad5e613de52e_32152206_rle_crop_3939290512_0.png', 1380677071: '1756742945_187015_1380676759_8b7f74138556b717239a23d76fd2096c_21484357_rle_crop_3939290523_0.png', 1380677081: '1756742967_187467_1380676501_04c5ba24f83dc6a92b0db8d33a7e9ca1_97643761_rle_crop_3939290739_0.png', 1380677082: '1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290762_0.png', 1380677084: '1756742967_187467_1380676498_d5e99b99475bb1c018f90dddd13d3aa7_48455131_rle_crop_3939290771_0.png', 1380678024: '1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293650_0.png', 1380678026: '1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293656_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/39937b0b8bab85dff7563a7e931336bd_15944286.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/cb4f51b80392c5cceea4f1b104626a12_2828241.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/7764a278774b15c6a7e9cb2a095ca968_94876664.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/c5e22968e992015af2052ef81bde8845_31459909.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/cd56f4f4a1f6daa7f5bcd9ff7c2c6d11_22257254.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/64459c0ec681eedc889192f352a610d9_51049071.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/01c03ed62df5caee29ff04fd77fb62bd_49933.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4bcf379029ee7061c7e89bd5538bd406_98781803.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/3dd0e869ec21c948d94a84d208b5d64c_48887593.png change filename to text .imagette264076121756743301/ imagette264076121756743301/1756742726_175637_1380676033_b11d773b9e6ad15fc8cce3e3f0eb7a68_53521280_rle_crop_3939286979_0.png.png imagette264076121756743301/1756742945_187015_1380676759_8b7f74138556b717239a23d76fd2096c_21484357_rle_crop_3939290523_0.png.png imagette264076121756743301/1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293656_0.png.png imagette264076121756743301/1756742967_187467_1380676499_6e301115f499df5f3733ab419a3c5295_41293441_rle_crop_3939290762_0.png.png imagette264076121756743301/1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288741_0.png.png imagette264076121756743301/1756742967_187467_1380676501_04c5ba24f83dc6a92b0db8d33a7e9ca1_97643761_rle_crop_3939290739_0.png.png imagette264076121756743301/1756742945_187015_1380676764_01900693037bce6148e0ad5e613de52e_32152206_rle_crop_3939290512_0.png.png imagette264076121756743301/1756743187_199721_1380677391_c859d6d0f9f117a759e2bd3ecac9e1f4_17822045_rle_crop_3939293650_0.png.png imagette264076121756743301/1756742967_187467_1380676498_d5e99b99475bb1c018f90dddd13d3aa7_48455131_rle_crop_3939290771_0.png.png imagette264076121756743301/1756742826_181495_1380676356_2f726b844b7a4f8bbacaef5e14299984_60830441_rle_crop_3939288749_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/0a956d6cffbdc22cc3f0dd0ca57e7f52_55926734.png imagette264076121756743301 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26407596 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26407616,26407617,26407618,26407619,26407620,26407621,26407622,26407623,26407624,26407625,26407626,26407627?tags=Teint_Dans_La_Masse,papier,cartonnette,plastique,environnement,flou,autre_refus,Carton_brun,Carton_gris,mal_croppe,metal,kraft your option no_mail is active, we will not send the real mail to your client args[1380678162] : ('0.0523285217751339',) no score found for photo 1380678162 We are sending mail with results at report@fotonower.com args[1380678160] : ('0.0523285217751339',) no score found for photo 1380678160 We are sending mail with results at report@fotonower.com args[1380678158] : ('0.0523285217751339',) no score found for photo 1380678158 We are sending mail with results at report@fotonower.com args[1380677789] : ('0.0523285217751339',) no score found for photo 1380677789 We are sending mail with results at report@fotonower.com args[1380677786] : ('0.0523285217751339',) no score found for photo 1380677786 We are sending mail with results at report@fotonower.com args[1380677783] : ('0.0523285217751339',) no score found for photo 1380677783 We are sending mail with results at report@fotonower.com args[1380677780] : ('0.0523285217751339',) no score found for photo 1380677780 We are sending mail with results at report@fotonower.com args[1380677777] : ('0.0523285217751339',) no score found for photo 1380677777 We are sending mail with results at report@fotonower.com args[1380677774] : ('0.0523285217751339',) no score found for photo 1380677774 We are sending mail with results at report@fotonower.com refus_total : 0.0523285217751339 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407596 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_P26407596_01-09-2025_18_14_59.pdf results_Auto_P26407596_01-09-2025_18_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26407596','results_Auto_P26407596_01-09-2025_18_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_14_59.pdf','pdf','','0.18','0.0523285217751339') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26407596]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] map_info['map_portfolio_photo'] : {26407596: [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774, 1380677395, 1380677394, 1380677393, 1380677392, 1380677391, 1380677390, 1380677144, 1380677142, 1380677140, 1380677102, 1380677101, 1380677100, 1380677099, 1380677098, 1380677019, 1380677018, 1380677017, 1380677016, 1380677015, 1380676766, 1380676764, 1380676762, 1380676759, 1380676512, 1380676511, 1380676510, 1380676509, 1380676508, 1380676503, 1380676502, 1380676501, 1380676500, 1380676499, 1380676498, 1380676359, 1380676358, 1380676357, 1380676356, 1380676355, 1380676354, 1380676120, 1380676119, 1380676118, 1380676084, 1380676083, 1380676082, 1380676081, 1380676035, 1380676034, 1380676033, 1380676032, 1380676031, 1380676030, 1380675155]} final : False mtd_id 4302 list_pids : [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] 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, '3647414') ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26407596', '1380678162', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414')] time used for this insertion : 0.012086629867553711 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9558582305908203 time spend to save output : 0.012296199798583984 total time spend for step 4 : 3.9681544303894043 step5:split_time_score Mon Sep 1 18: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 : ['26407596'] 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 : [('26407596',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26407596) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380678162: {'path': 'temp/1756743299_296390_1380678162_66ed4703581bdb38a193105827f515df_78905655.jpg', 'extension': 'jpg'}, 1380677786: {'path': 'temp/1756743299_296390_1380677786_96b2c2be8d84c1505e7dd9aeaa9e7d8d_98850547.jpg', 'extension': 'jpg'}, 1380677789: {'path': 'temp/1756743299_296390_1380677789_f2560ca0cf815399bb6472f8f1847e40_57993948.jpg', 'extension': 'jpg'}, 1380677774: {'path': 'temp/1756743299_296390_1380677774_1628151e658078fa2e4a71a1930187b3_372301.jpg', 'extension': 'jpg'}, 1380677777: {'path': 'temp/1756743299_296390_1380677777_c19be8466547f502064f8a3328ec269c_28293310.jpg', 'extension': 'jpg'}, 1380677780: {'path': 'temp/1756743299_296390_1380677780_d8a5345920ec1a6b7a060d92c328dc43_60600493.jpg', 'extension': 'jpg'}, 1380677783: {'path': 'temp/1756743299_296390_1380677783_d513003539a5395b4f9a0351ee9ba682_66820867.jpg', 'extension': 'jpg'}, 1380678158: {'path': 'temp/1756743299_296390_1380678158_7d507570df27819b6e44ccb9b8abc3fe_80825566.jpg', 'extension': 'jpg'}, 1380678160: {'path': 'temp/1756743299_296390_1380678160_52b13c3ea0f711ad72c236756ad9bdde_33120772.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 = 26407596; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26407596 group by h (('18', 63),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26407596 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 (26407596) 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 (26407596) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01092025 26407596 Nombre de photos uploadées : 63 / 23040 (0%) 01092025 26407596 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 01092025 26407596 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1380675155, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/e1d694c3a4b5c4fd20063fe624c0e057_74383849.jpg', 'username': None, 'uploaded_at': 1756742468, 'text': 'image_01092025_18_00_14_10286.jpg'}, {'photo_id': 1380676035, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/caf7146137caacd2293cd3767b6c5a94_54342281.jpg', 'username': None, 'uploaded_at': 1756742592, 'text': 'image_01092025_18_01_34_10140.jpg'}, {'photo_id': 1380676034, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/23b0243625a8b881a78b61ef1684b9df_59514335.jpg', 'username': None, 'uploaded_at': 1756742592, 'text': 'image_01092025_18_02_05_010168m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1380676033, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b11d773b9e6ad15fc8cce3e3f0eb7a68_53521280.jpg', 'username': None, 'uploaded_at': 1756742592, 'text': 'image_01092025_18_02_15_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028696060180664062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26407596, '2025-09-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2206746,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20515084266662598 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= 2206746 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26381713, 'dashboard_result_id': 14541210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26381992, 'dashboard_result_id': 14541211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26382385, 'dashboard_result_id': 14541212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26382722, 'dashboard_result_id': 14541213, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26383234, 'dashboard_result_id': 14541214, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26383579, 'dashboard_result_id': 14541215, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26383975, 'dashboard_result_id': 14541216, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26384208, 'dashboard_result_id': 14541217, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26386618, 'dashboard_result_id': 14541218, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386618_01-09-2025_08_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386847, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26386622, 'dashboard_result_id': 14541219, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386622_01-09-2025_08_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386769, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26386640, 'dashboard_result_id': 14541220, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386640_01-09-2025_08_02_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26386680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386691, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26386642, 'dashboard_result_id': 14541221, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386642_01-09-2025_08_01_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386660, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26386863, 'dashboard_result_id': 14541222, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386863_01-09-2025_08_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386893, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26387398, 'dashboard_result_id': 14541223, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387398_01-09-2025_08_33_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26387418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387424, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26387972, 'dashboard_result_id': 14541224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387972_01-09-2025_08_52_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26387984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387995, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26388987, 'dashboard_result_id': 14541225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26388987_01-09-2025_11_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26389003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26389004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26389005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26389006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26389007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26389008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26389010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26389011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26389012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26389013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26389014, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26391494, 'dashboard_result_id': 14541226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391494_01-09-2025_11_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391507, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26391828, 'dashboard_result_id': 14541227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391828_01-09-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391845, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26392416, 'dashboard_result_id': 14541228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26392416_01-09-2025_11_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26392428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26392429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26392430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26392431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26392432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26392433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26392434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26392435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26392436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26392437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26392438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26392439, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26393010, 'dashboard_result_id': 14541229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393010_01-09-2025_11_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26393025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393032, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26393441, 'dashboard_result_id': 14541230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393441_01-09-2025_12_02_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26393454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393465, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26393979, 'dashboard_result_id': 14541231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393979_01-09-2025_14_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26394016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26394017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26394018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26394019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26394020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26394021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26394022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26394023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26394024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26394025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26394026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26394027, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26396562, 'dashboard_result_id': 14541232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396562_01-09-2025_13_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396576, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26396691, 'dashboard_result_id': 14541233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396691_01-09-2025_14_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396716, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26397189, 'dashboard_result_id': 14541234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26397189_01-09-2025_14_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26397266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26397267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26397268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26397270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26397271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26397272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26397274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26397275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26397276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26397278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26397279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26397280, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26398006, 'dashboard_result_id': 14541235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398006_01-09-2025_14_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26398028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398036, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26398774, 'dashboard_result_id': 14541236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398774_01-09-2025_14_51_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26398796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398807, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26399538, 'dashboard_result_id': 14541237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26399538_01-09-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26399546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26399547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26399548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26399549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26399550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26399551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26399553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26399554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26399555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26399556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26399558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26399559, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26400115, 'dashboard_result_id': 14541238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400115_01-09-2025_15_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26400175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400186, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26400781, 'dashboard_result_id': 14541239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400781_01-09-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26400808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400812, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26401432, 'dashboard_result_id': 14541240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26401432_01-09-2025_15_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26401458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26401459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26401460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26401461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26401462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26401463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26401464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26401465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26401466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26401467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26401468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26401469, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26402133, 'dashboard_result_id': 14541241, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402133_01-09-2025_16_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26402205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26402206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26402208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26402209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26402210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26402211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26402212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26402213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26402214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26402215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26402217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26402218, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26402924, 'dashboard_result_id': 14541242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402924_01-09-2025_16_31_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26403000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26403001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26403002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26403003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26403004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26403005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26403006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26403007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26403008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26403009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26403010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26403011, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26404064, 'dashboard_result_id': 14541243, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404064_01-09-2025_16_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404090, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26404151, 'dashboard_result_id': 14541244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404151_01-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404191, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26404830, 'dashboard_result_id': 14541245, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404830_01-09-2025_17_02_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26404846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404857, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26405508, 'dashboard_result_id': 14541246, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26405508_01-09-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26405595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26405596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26405597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26405598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26405599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26405600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26405601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26405602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26405603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26405604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26405605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26405606, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26406290, 'dashboard_result_id': 14541247, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26406290_01-09-2025_18_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26406295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26406296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26406299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26406300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26406301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26406302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26406303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26406305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26406306, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26407160, 'dashboard_result_id': 14541248, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407160_01-09-2025_17_43_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26407177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26407178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26407179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26407180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26407181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26407182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26407183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26407184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26407185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26407186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26407187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26407188, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2218225, 'mtr_portfolio_id': 26407596, 'dashboard_result_id': 14541249, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_12_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26407604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26407605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26407606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26407607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26407608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26407609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26407610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26407611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26407612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26407613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26407614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26407615, '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 = 26381713 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': 3643960, 'mtr_portfolio_id': 26381713, 'created_at': datetime.datetime(2025, 9, 1, 5, 19, 1), 'result': '0.05947260669499837', 'result_long': None, 'result_double': None}] Qualite : 0.05947260669499837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26381713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26381713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, 'pht': 3726}}" where mtr_portfolio_id = 26381713 and dashboard_run_id = 2218225 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`=26381713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541210, 0.05947260669499837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, '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 = 26381992 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': 3643989, 'mtr_portfolio_id': 26381992, 'created_at': datetime.datetime(2025, 9, 1, 5, 33, 1), 'result': '0.05906098722084514', 'result_long': None, 'result_double': None}] Qualite : 0.05906098722084514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26381992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26381992 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, 'pht': 3726}}" where mtr_portfolio_id = 26381992 and dashboard_run_id = 2218225 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`=26381992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541211, 0.05906098722084514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, '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 = 26382385 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': 3644043, 'mtr_portfolio_id': 26382385, 'created_at': datetime.datetime(2025, 9, 1, 5, 48, 58), 'result': '0.04121344925574471', 'result_long': None, 'result_double': None}] Qualite : 0.04121344925574471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26382385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26382385 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, 'pht': 3726}}" where mtr_portfolio_id = 26382385 and dashboard_run_id = 2218225 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`=26382385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541212, 0.04121344925574471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, '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 = 26382722 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': 3644087, 'mtr_portfolio_id': 26382722, 'created_at': datetime.datetime(2025, 9, 1, 6, 2, 58), 'result': '0.048760567937377076', 'result_long': None, 'result_double': None}] Qualite : 0.048760567937377076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26382722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26382722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, 'pht': 3726}}" where mtr_portfolio_id = 26382722 and dashboard_run_id = 2218225 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`=26382722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541213, 0.048760567937377076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, '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 = 26383234 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': 3644180, 'mtr_portfolio_id': 26383234, 'created_at': datetime.datetime(2025, 9, 1, 6, 19), 'result': '0.029804132397805074', 'result_long': None, 'result_double': None}] Qualite : 0.029804132397805074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383234 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, 'pht': 3726}}" where mtr_portfolio_id = 26383234 and dashboard_run_id = 2218225 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`=26383234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541214, 0.029804132397805074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, '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 = 26383579 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': 3644213, 'mtr_portfolio_id': 26383579, 'created_at': datetime.datetime(2025, 9, 1, 6, 36, 58), 'result': '0.0259338070912103', 'result_long': None, 'result_double': None}] Qualite : 0.0259338070912103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, 'pht': 3726}}" where mtr_portfolio_id = 26383579 and dashboard_run_id = 2218225 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`=26383579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541215, 0.0259338070912103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, '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 = 26383975 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': 3644276, 'mtr_portfolio_id': 26383975, 'created_at': datetime.datetime(2025, 9, 1, 6, 49, 1), 'result': '0.049485817277569684', 'result_long': None, 'result_double': None}] Qualite : 0.049485817277569684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383975 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, 'pht': 3726}}" where mtr_portfolio_id = 26383975 and dashboard_run_id = 2218225 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`=26383975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541216, 0.049485817277569684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, '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 = 26384208 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': 3644306, 'mtr_portfolio_id': 26384208, 'created_at': datetime.datetime(2025, 9, 1, 8, 2, 59), 'result': '0.0604702301375649', 'result_long': None, 'result_double': None}] Qualite : 0.0604702301375649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26384208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26384208 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, 'pht': 3726}}" where mtr_portfolio_id = 26384208 and dashboard_run_id = 2218225 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`=26384208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541217, 0.0604702301375649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, '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 = 26386618 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': 3644692, 'mtr_portfolio_id': 26386618, 'created_at': datetime.datetime(2025, 9, 1, 8, 3, 31), 'result': '0.0589477330356965', 'result_long': None, 'result_double': None}] Qualite : 0.0589477330356965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26386618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386618_01-09-2025_08_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26386618 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386618_01-09-2025_08_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386847, 'pht': 3726}}" where mtr_portfolio_id = 26386618 and dashboard_run_id = 2218225 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`=26386618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541218, 0.0589477330356965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386618_01-09-2025_08_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386847, '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 = 26386622 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': 3644694, 'mtr_portfolio_id': 26386622, 'created_at': datetime.datetime(2025, 9, 1, 8, 2, 31), 'result': '0.05439239066306042', 'result_long': None, 'result_double': None}] Qualite : 0.05439239066306042 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26386622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386622_01-09-2025_08_02_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26386622 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386622_01-09-2025_08_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386769, 'pht': 3726}}" where mtr_portfolio_id = 26386622 and dashboard_run_id = 2218225 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`=26386622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541219, 0.05439239066306042, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386622_01-09-2025_08_02_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386769, '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 = 26386640 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': 3644695, 'mtr_portfolio_id': 26386640, 'created_at': datetime.datetime(2025, 9, 1, 8, 2), 'result': '0.039026495834406705', 'result_long': None, 'result_double': None}] Qualite : 0.039026495834406705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26386640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386640_01-09-2025_08_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26386640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386640_01-09-2025_08_02_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26386680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386691, 'pht': 3726}}" where mtr_portfolio_id = 26386640 and dashboard_run_id = 2218225 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`=26386640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541220, 0.039026495834406705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386640_01-09-2025_08_02_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26386680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386681, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386691, '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 = 26386642 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': 3644696, 'mtr_portfolio_id': 26386642, 'created_at': datetime.datetime(2025, 9, 1, 8, 1, 30), 'result': '0.05322213549155746', 'result_long': None, 'result_double': None}] Qualite : 0.05322213549155746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26386642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386642_01-09-2025_08_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26386642 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386642_01-09-2025_08_01_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386660, 'pht': 3726}}" where mtr_portfolio_id = 26386642 and dashboard_run_id = 2218225 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`=26386642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541221, 0.05322213549155746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386642_01-09-2025_08_01_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386660, '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 = 26386863 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': 3644718, 'mtr_portfolio_id': 26386863, 'created_at': datetime.datetime(2025, 9, 1, 8, 18, 30), 'result': '0.05635155840855953', 'result_long': None, 'result_double': None}] Qualite : 0.05635155840855953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26386863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386863_01-09-2025_08_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26386863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386863_01-09-2025_08_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386893, 'pht': 3726}}" where mtr_portfolio_id = 26386863 and dashboard_run_id = 2218225 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`=26386863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541222, 0.05635155840855953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26386863_01-09-2025_08_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26386882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26386883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26386884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26386885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26386886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26386887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26386888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26386889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26386890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26386891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26386892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26386893, '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 = 26387398 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': 3644787, 'mtr_portfolio_id': 26387398, 'created_at': datetime.datetime(2025, 9, 1, 8, 33, 28), 'result': '0.05895323185838954', 'result_long': None, 'result_double': None}] Qualite : 0.05895323185838954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26387398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387398_01-09-2025_08_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26387398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387398_01-09-2025_08_33_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26387418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387424, 'pht': 3726}}" where mtr_portfolio_id = 26387398 and dashboard_run_id = 2218225 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`=26387398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541223, 0.05895323185838954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387398_01-09-2025_08_33_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26387418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387424, '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 = 26387972 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': 3644920, 'mtr_portfolio_id': 26387972, 'created_at': datetime.datetime(2025, 9, 1, 8, 52, 57), 'result': '0.07360790154148447', 'result_long': None, 'result_double': None}] Qualite : 0.07360790154148447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26387972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387972_01-09-2025_08_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26387972 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387972_01-09-2025_08_52_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26387984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387995, 'pht': 3726}}" where mtr_portfolio_id = 26387972 and dashboard_run_id = 2218225 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`=26387972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541224, 0.07360790154148447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26387972_01-09-2025_08_52_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26387984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26387985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26387986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26387987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26387988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26387989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26387990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26387991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26387992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26387993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26387994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26387995, '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 = 26388987 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': 3645033, 'mtr_portfolio_id': 26388987, 'created_at': datetime.datetime(2025, 9, 1, 10, 59, 59), 'result': '0.11208481938855401', 'result_long': None, 'result_double': None}] Qualite : 0.11208481938855401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26388987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26388987_01-09-2025_11_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26388987 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26388987_01-09-2025_11_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26389003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26389004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26389005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26389006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26389007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26389008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26389010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26389011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26389012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26389013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26389014, 'pht': 3726}}" where mtr_portfolio_id = 26388987 and dashboard_run_id = 2218225 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`=26388987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541225, 0.11208481938855401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26388987_01-09-2025_11_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26389003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26389004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26389005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26389006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26389007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26389008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26389009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26389010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26389011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26389012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26389013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26389014, '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 = 26391494 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': 3645327, 'mtr_portfolio_id': 26391494, 'created_at': datetime.datetime(2025, 9, 1, 11, 2, 31), 'result': '0.09285274783806775', 'result_long': None, 'result_double': None}] Qualite : 0.09285274783806775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26391494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391494_01-09-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26391494 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391494_01-09-2025_11_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391507, 'pht': 3726}}" where mtr_portfolio_id = 26391494 and dashboard_run_id = 2218225 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`=26391494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541226, 0.09285274783806775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391494_01-09-2025_11_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391507, '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 = 26391828 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': 3645506, 'mtr_portfolio_id': 26391828, 'created_at': datetime.datetime(2025, 9, 1, 11, 18, 59), 'result': '0.052712733482792457', 'result_long': None, 'result_double': None}] Qualite : 0.052712733482792457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26391828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391828_01-09-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26391828 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391828_01-09-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391845, 'pht': 3726}}" where mtr_portfolio_id = 26391828 and dashboard_run_id = 2218225 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`=26391828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541227, 0.052712733482792457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26391828_01-09-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26391834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26391835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26391836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26391837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26391838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26391839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26391840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26391841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26391842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26391843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26391844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26391845, '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 = 26392416 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': 3645548, 'mtr_portfolio_id': 26392416, 'created_at': datetime.datetime(2025, 9, 1, 11, 32, 57), 'result': '0.07102366669543422', 'result_long': None, 'result_double': None}] Qualite : 0.07102366669543422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26392416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26392416_01-09-2025_11_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26392416 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26392416_01-09-2025_11_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26392428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26392429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26392430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26392431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26392432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26392433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26392434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26392435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26392436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26392437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26392438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26392439, 'pht': 3726}}" where mtr_portfolio_id = 26392416 and dashboard_run_id = 2218225 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`=26392416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541228, 0.07102366669543422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26392416_01-09-2025_11_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26392428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26392429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26392430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26392431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26392432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26392433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26392434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26392435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26392436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26392437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26392438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26392439, '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 = 26393010 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': 3645611, 'mtr_portfolio_id': 26393010, 'created_at': datetime.datetime(2025, 9, 1, 11, 48, 29), 'result': '0.07944022751466982', 'result_long': None, 'result_double': None}] Qualite : 0.07944022751466982 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26393010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393010_01-09-2025_11_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26393010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393010_01-09-2025_11_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26393025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393032, 'pht': 3726}}" where mtr_portfolio_id = 26393010 and dashboard_run_id = 2218225 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`=26393010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541229, 0.07944022751466982, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393010_01-09-2025_11_48_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26393025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393032, '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 = 26393441 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': 3645660, 'mtr_portfolio_id': 26393441, 'created_at': datetime.datetime(2025, 9, 1, 12, 2, 56), 'result': '0.0680079442294651', 'result_long': None, 'result_double': None}] Qualite : 0.0680079442294651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26393441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393441_01-09-2025_12_02_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26393441 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393441_01-09-2025_12_02_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26393454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393465, 'pht': 3726}}" where mtr_portfolio_id = 26393441 and dashboard_run_id = 2218225 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`=26393441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541230, 0.0680079442294651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393441_01-09-2025_12_02_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26393454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26393455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26393456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26393457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26393458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26393459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26393460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26393461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26393462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26393463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26393464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26393465, '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 = 26393979 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': 3645749, 'mtr_portfolio_id': 26393979, 'created_at': datetime.datetime(2025, 9, 1, 14, 0, 59), 'result': '0.04009071561475917', 'result_long': None, 'result_double': None}] Qualite : 0.04009071561475917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26393979 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393979_01-09-2025_14_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26393979 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393979_01-09-2025_14_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26394016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26394017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26394018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26394019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26394020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26394021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26394022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26394023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26394024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26394025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26394026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26394027, 'pht': 3726}}" where mtr_portfolio_id = 26393979 and dashboard_run_id = 2218225 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`=26393979 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541231, 0.04009071561475917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26393979_01-09-2025_14_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26394016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26394017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26394018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26394019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26394020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26394021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26394022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26394023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26394024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26394025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26394026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26394027, '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 = 26396562 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': 3646054, 'mtr_portfolio_id': 26396562, 'created_at': datetime.datetime(2025, 9, 1, 13, 48, 58), 'result': '0.07281785448261965', 'result_long': None, 'result_double': None}] Qualite : 0.07281785448261965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26396562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396562_01-09-2025_13_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26396562 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396562_01-09-2025_13_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396576, 'pht': 3726}}" where mtr_portfolio_id = 26396562 and dashboard_run_id = 2218225 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`=26396562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541232, 0.07281785448261965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396562_01-09-2025_13_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396576, '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 = 26396691 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': 3646069, 'mtr_portfolio_id': 26396691, 'created_at': datetime.datetime(2025, 9, 1, 14, 2, 57), 'result': '0.08665851262772771', 'result_long': None, 'result_double': None}] Qualite : 0.08665851262772771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26396691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396691_01-09-2025_14_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26396691 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396691_01-09-2025_14_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396716, 'pht': 3726}}" where mtr_portfolio_id = 26396691 and dashboard_run_id = 2218225 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`=26396691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541233, 0.08665851262772771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26396691_01-09-2025_14_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26396704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26396705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26396707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26396708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26396709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26396710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26396711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26396712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26396713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26396714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26396715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26396716, '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 = 26397189 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': 3646144, 'mtr_portfolio_id': 26397189, 'created_at': datetime.datetime(2025, 9, 1, 14, 18, 29), 'result': '0.04465416925844945', 'result_long': None, 'result_double': None}] Qualite : 0.04465416925844945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26397189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26397189_01-09-2025_14_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26397189 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26397189_01-09-2025_14_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26397266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26397267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26397268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26397270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26397271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26397272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26397274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26397275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26397276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26397278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26397279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26397280, 'pht': 3726}}" where mtr_portfolio_id = 26397189 and dashboard_run_id = 2218225 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`=26397189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541234, 0.04465416925844945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26397189_01-09-2025_14_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26397266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26397267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26397268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26397270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26397271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26397272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26397274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26397275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26397276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26397278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26397279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26397280, '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 = 26398006 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': 3646234, 'mtr_portfolio_id': 26398006, 'created_at': datetime.datetime(2025, 9, 1, 14, 32, 59), 'result': '0.048994407007882254', 'result_long': None, 'result_double': None}] Qualite : 0.048994407007882254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26398006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398006_01-09-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26398006 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398006_01-09-2025_14_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26398028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398036, 'pht': 3726}}" where mtr_portfolio_id = 26398006 and dashboard_run_id = 2218225 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`=26398006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541235, 0.048994407007882254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398006_01-09-2025_14_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26398028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398036, '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 = 26398774 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': 3646337, 'mtr_portfolio_id': 26398774, 'created_at': datetime.datetime(2025, 9, 1, 14, 51), 'result': '0.05927041640773394', 'result_long': None, 'result_double': None}] Qualite : 0.05927041640773394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26398774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398774_01-09-2025_14_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26398774 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398774_01-09-2025_14_51_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26398796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398807, 'pht': 3726}}" where mtr_portfolio_id = 26398774 and dashboard_run_id = 2218225 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`=26398774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541236, 0.05927041640773394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26398774_01-09-2025_14_51_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26398796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26398797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26398798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26398799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26398800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26398801, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26398802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26398803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26398804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26398805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26398806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26398807, '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 = 26399538 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': 3646452, 'mtr_portfolio_id': 26399538, 'created_at': datetime.datetime(2025, 9, 1, 15, 2, 58), 'result': '0.047163871483216734', 'result_long': None, 'result_double': None}] Qualite : 0.047163871483216734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26399538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26399538_01-09-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26399538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26399538_01-09-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26399546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26399547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26399548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26399549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26399550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26399551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26399553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26399554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26399555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26399556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26399558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26399559, 'pht': 3726}}" where mtr_portfolio_id = 26399538 and dashboard_run_id = 2218225 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`=26399538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541237, 0.047163871483216734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26399538_01-09-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26399546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26399547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26399548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26399549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26399550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26399551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26399553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26399554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26399555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26399556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26399558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26399559, '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 = 26400115 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': 3646532, 'mtr_portfolio_id': 26400115, 'created_at': datetime.datetime(2025, 9, 1, 15, 16, 57), 'result': '0.049875445852324896', 'result_long': None, 'result_double': None}] Qualite : 0.049875445852324896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26400115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400115_01-09-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26400115 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400115_01-09-2025_15_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26400175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400186, 'pht': 3726}}" where mtr_portfolio_id = 26400115 and dashboard_run_id = 2218225 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`=26400115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541238, 0.049875445852324896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400115_01-09-2025_15_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26400175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400186, '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 = 26400781 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': 3646616, 'mtr_portfolio_id': 26400781, 'created_at': datetime.datetime(2025, 9, 1, 15, 32, 59), 'result': '0.04572283251170912', 'result_long': None, 'result_double': None}] Qualite : 0.04572283251170912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26400781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400781_01-09-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26400781 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400781_01-09-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26400808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400812, 'pht': 3726}}" where mtr_portfolio_id = 26400781 and dashboard_run_id = 2218225 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`=26400781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541239, 0.04572283251170912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26400781_01-09-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26400801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26400802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26400803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26400804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26400805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26400806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26400807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26400808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26400809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26400810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26400811, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26400812, '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 = 26401432 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': 3646735, 'mtr_portfolio_id': 26401432, 'created_at': datetime.datetime(2025, 9, 1, 15, 48, 58), 'result': '0.04642421787999235', 'result_long': None, 'result_double': None}] Qualite : 0.04642421787999235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26401432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26401432_01-09-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26401432 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26401432_01-09-2025_15_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26401458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26401459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26401460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26401461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26401462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26401463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26401464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26401465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26401466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26401467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26401468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26401469, 'pht': 3726}}" where mtr_portfolio_id = 26401432 and dashboard_run_id = 2218225 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`=26401432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541240, 0.04642421787999235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26401432_01-09-2025_15_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26401458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26401459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26401460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26401461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26401462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26401463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26401464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26401465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26401466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26401467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26401468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26401469, '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 = 26402133 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': 3646825, 'mtr_portfolio_id': 26402133, 'created_at': datetime.datetime(2025, 9, 1, 16, 2, 57), 'result': '0.04567999215079203', 'result_long': None, 'result_double': None}] Qualite : 0.04567999215079203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26402133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402133_01-09-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26402133 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402133_01-09-2025_16_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26402205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26402206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26402208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26402209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26402210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26402211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26402212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26402213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26402214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26402215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26402217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26402218, 'pht': 3726}}" where mtr_portfolio_id = 26402133 and dashboard_run_id = 2218225 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`=26402133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541241, 0.04567999215079203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402133_01-09-2025_16_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26402205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26402206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26402208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26402209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26402210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26402211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26402212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26402213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26402214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26402215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26402217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26402218, '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 = 26402924 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': 3646921, 'mtr_portfolio_id': 26402924, 'created_at': datetime.datetime(2025, 9, 1, 16, 31), 'result': '0.07000839540988207', 'result_long': None, 'result_double': None}] Qualite : 0.07000839540988207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26402924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402924_01-09-2025_16_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26402924 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402924_01-09-2025_16_31_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26403000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26403001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26403002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26403003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26403004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26403005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26403006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26403007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26403008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26403009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26403010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26403011, 'pht': 3726}}" where mtr_portfolio_id = 26402924 and dashboard_run_id = 2218225 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`=26402924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541242, 0.07000839540988207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26402924_01-09-2025_16_31_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26403000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26403001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26403002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26403003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26403004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26403005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26403006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26403007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26403008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26403009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26403010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26403011, '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 = 26404064 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': 3647036, 'mtr_portfolio_id': 26404064, 'created_at': datetime.datetime(2025, 9, 1, 16, 32, 59), 'result': '0.017700830809683613', 'result_long': None, 'result_double': None}] Qualite : 0.017700830809683613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26404064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404064_01-09-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26404064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404064_01-09-2025_16_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404090, 'pht': 3726}}" where mtr_portfolio_id = 26404064 and dashboard_run_id = 2218225 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`=26404064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541243, 0.017700830809683613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404064_01-09-2025_16_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404090, '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 = 26404151 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': 3647046, 'mtr_portfolio_id': 26404151, 'created_at': datetime.datetime(2025, 9, 1, 16, 48, 58), 'result': '0.04556895039113096', 'result_long': None, 'result_double': None}] Qualite : 0.04556895039113096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26404151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404151_01-09-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26404151 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404151_01-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404191, 'pht': 3726}}" where mtr_portfolio_id = 26404151 and dashboard_run_id = 2218225 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`=26404151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541244, 0.04556895039113096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404151_01-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26404185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404191, '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 = 26404830 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': 3647104, 'mtr_portfolio_id': 26404830, 'created_at': datetime.datetime(2025, 9, 1, 17, 2, 56), 'result': '0.06217303640251302', 'result_long': None, 'result_double': None}] Qualite : 0.06217303640251302 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26404830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404830_01-09-2025_17_02_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26404830 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404830_01-09-2025_17_02_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26404846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404857, 'pht': 3726}}" where mtr_portfolio_id = 26404830 and dashboard_run_id = 2218225 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`=26404830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541245, 0.06217303640251302, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26404830_01-09-2025_17_02_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26404846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26404847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26404848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26404849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26404850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26404851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26404852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26404853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26404854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26404855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26404856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26404857, '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 = 26405508 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': 3647196, 'mtr_portfolio_id': 26405508, 'created_at': datetime.datetime(2025, 9, 1, 17, 18, 57), 'result': '0.055063317184447416', 'result_long': None, 'result_double': None}] Qualite : 0.055063317184447416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26405508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26405508_01-09-2025_17_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26405508 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26405508_01-09-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26405595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26405596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26405597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26405598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26405599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26405600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26405601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26405602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26405603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26405604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26405605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26405606, 'pht': 3726}}" where mtr_portfolio_id = 26405508 and dashboard_run_id = 2218225 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`=26405508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541246, 0.055063317184447416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26405508_01-09-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26405595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26405596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26405597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26405598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26405599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26405600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26405601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26405602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26405603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26405604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26405605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26405606, '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 = 26406290 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': 3647256, 'mtr_portfolio_id': 26406290, 'created_at': datetime.datetime(2025, 9, 1, 18, 2, 31), 'result': '0.07867262891220039', 'result_long': None, 'result_double': None}] Qualite : 0.07867262891220039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26406290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26406290_01-09-2025_18_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26406290 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26406290_01-09-2025_18_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26406295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26406296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26406299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26406300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26406301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26406302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26406303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26406305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26406306, 'pht': 3726}}" where mtr_portfolio_id = 26406290 and dashboard_run_id = 2218229 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`=26406290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541247, 0.07867262891220039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26406290_01-09-2025_18_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26406295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26406296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26406299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26406300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26406301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26406302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26406303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26406305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26406306, '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 = 26407160 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26407160 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26407160 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26407160 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26407160 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26407160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407160_01-09-2025_17_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26407160 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407160_01-09-2025_17_43_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26407177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26407178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26407179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26407180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26407181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26407182, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26407183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26407184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26407185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26407186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26407187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26407188, 'pht': 3726}}" where mtr_portfolio_id = 26407160 and dashboard_run_id = 2218229 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26407596 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': 3647414, 'mtr_portfolio_id': 26407596, 'created_at': datetime.datetime(2025, 9, 1, 18, 14, 58), 'result': '0.0523285217751339', 'result_long': None, 'result_double': None}] Qualite : 0.0523285217751339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26407596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26407596 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_14_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26407604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26407605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26407606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26407607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26407608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26407609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26407610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26407611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26407612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26407613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26407614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26407615, 'pht': 3726}}" where mtr_portfolio_id = 26407596 and dashboard_run_id = 2218229 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`=26407596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14541249, 0.0523285217751339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26407596_01-09-2025_18_14_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26407604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26407605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26407606, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26407607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26407608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26407609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26407610, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26407611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26407612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26407613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26407614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26407615, '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 (26381713,26381992,26382385,26382722,26383234,26383579,26383975,26384208,26386618,26386622,26386640,26386642,26386863,26387398,26387972,26388987,26391494,26391828,26392416,26393010,26393441,26393979,26396562,26396691,26397189,26398006,26398774,26399538,26400115,26400781,26401432,26402133,26402924,26404064,26404151,26404830,26405508,26406290,26407160,26407596) result : ((1380555652,), (1380555787,), (1380555804,), (1380555805,), (1380555823,), (1380555824,), (1380555834,), (1380555835,), (1380555836,), (1380555837,), (1380555838,), (1380555850,), (1380555851,), (1380555852,), (1380555853,), (1380555854,), (1380555855,), (1380555857,), (1380555858,), (1380555859,), (1380555882,), (1380555883,), (1380555884,), (1380555929,), (1380555954,), (1380555955,), (1380555956,), (1380555958,), (1380555966,), (1380555967,), (1380555968,), (1380555969,), (1380555971,), (1380555972,), (1380555981,), (1380555982,), (1380555983,), (1380555984,), (1380555993,), (1380555994,), (1380555995,), (1380555996,), (1380556021,), (1380556040,), (1380556017,), (1380556018,), (1380556019,), (1380556020,), (1380556029,), (1380556030,), (1380556031,), (1380556032,), (1380556033,), (1380556034,), (1380556036,), (1380556038,), (1380556054,), (1380556055,), (1380556056,), (1380556057,), (1380556058,), (1380556072,), (1380556073,), (1380556087,), (1380556088,), (1380556089,), (1380556090,), (1380556091,), (1380556093,), (1380556143,), (1380556144,), (1380556145,), (1380556160,), (1380556161,), (1380556162,), (1380556163,), (1380556164,), (1380556165,), (1380556176,), (1380556251,), (1380556252,), (1380556253,), (1380556254,), (1380556268,), (1380556269,), (1380556270,), (1380556271,), (1380556272,), (1380556278,), (1380556279,), (1380556280,), (1380556281,), (1380556282,), (1380556283,), (1380556321,), (1380556322,), (1380556323,), (1380556324,), (1380556325,), (1380556326,), (1380556330,), (1380556331,), (1380556332,), (1380556353,), (1380556354,), (1380556355,), (1380556356,), (1380556379,), (1380556381,), (1380556382,), (1380556383,), (1380556384,), (1380556403,), (1380556404,), (1380556405,), (1380556407,), (1380556424,), (1380556421,), (1380556422,), (1380556423,), (1380556444,), (1380556453,), (1380556467,), (1380556468,), (1380556469,), (1380556480,), (1380556496,), (1380556497,), (1380556498,), (1380556513,), (1380556514,), (1380556515,), (1380556516,), (1380556517,), (1380556518,), (1380556519,), (1380556533,), (1380556538,), (1380556539,), (1380556540,), (1380556549,), (1380556550,), (1380556551,), (1380556571,), (1380556572,), (1380556583,), (1380556584,), (1380556598,), (1380556599,), (1380556611,), (1380556612,), (1380556613,), (1380556614,), (1380556630,), (1380556631,), (1380556632,), (1380556633,), (1380556648,), (1380556649,), (1380556650,), (1380556679,), (1380556706,), (1380556676,), (1380556677,), (1380556678,), (1380556695,), (1380556696,), (1380556697,), (1380556698,), (1380556699,), (1380556700,), (1380556704,), (1380556705,), (1380556721,), (1380556723,), (1380556724,), (1380556725,), (1380556726,), (1380556734,), (1380556735,), (1380556736,), (1380556737,), (1380556738,), (1380556759,), (1380556760,), (1380556761,), (1380556762,), (1380556763,), (1380556771,), (1380556772,), (1380556773,), (1380556774,), (1380556792,), (1380556793,), (1380556794,), (1380556795,), (1380556804,), (1380556805,), (1380556806,), (1380556807,), (1380556808,), (1380556827,), (1380556828,), (1380556829,), (1380556830,), (1380556841,), (1380556842,), (1380556843,), (1380556844,), (1380556859,), (1380556870,), (1380556871,), (1380556872,), (1380556877,), (1380556878,), (1380556879,), (1380556880,), (1380556897,), (1380556898,), (1380557224,), (1380557227,), (1380557230,), (1380557232,), (1380557234,), (1380557602,), (1380559388,), (1380559403,), (1380559405,), (1380559407,), (1380559440,), (1380559441,), (1380559442,), (1380559455,), (1380559456,), (1380559457,), (1380559458,), (1380559459,), (1380559460,), (1380559477,), (1380559478,), (1380559479,), (1380559480,), (1380559481,), (1380559502,), (1380559531,), (1380559532,), (1380559533,), (1380559553,), (1380559554,), (1380559555,), (1380559571,), (1380559572,), (1380559573,), (1380559574,), (1380559594,), (1380559595,), (1380559596,), (1380559597,), (1380559598,), (1380559599,), (1380559623,), (1380559624,), (1380559625,), (1380559626,), (1380559652,), (1380559672,), (1380559648,), (1380559649,), (1380559650,), (1380559651,), (1380559664,), (1380559665,), (1380559666,), (1380559667,), (1380559668,), (1380559669,), (1380559671,), (1380559702,), (1380559703,), (1380559704,), (1380559719,), (1380559720,), (1380559721,), (1380559737,), (1380559738,), (1380559739,), (1380559740,), (1380559741,), (1380559759,), (1380559760,), (1380559761,), (1380559762,), (1380559763,), (1380559783,), (1380559784,), (1380559785,), (1380559786,), (1380559787,), (1380559810,), (1380559811,), (1380559812,), (1380559813,), (1380559839,), (1380559840,), (1380559841,), (1380559842,), (1380559843,), (1380559852,), (1380559853,), (1380559854,), (1380559898,), (1380560062,), (1380560002,), (1380560061,), (1380560085,), (1380560088,), (1380560115,), (1380560116,), (1380560117,), (1380560118,), (1380560119,), (1380560120,), (1380560124,), (1380560157,), (1380560158,), (1380560159,), (1380560160,), (1380560183,), (1380560184,), (1380560185,), (1380560186,), (1380560187,), (1380560218,), (1380560219,), (1380560249,), (1380560250,), (1380560280,), (1380560281,), (1380560282,), (1380560304,), (1380560305,), (1380560306,), (1380560307,), (1380560334,), (1380560335,), (1380560336,), (1380560337,), (1380560338,), (1380560363,), (1380560364,), (1380560365,), (1380560395,), (1380560432,), (1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,), (1380561556,), (1380561558,), (1380561560,), (1380561562,), (1380561565,), (1380561978,), (1380561909,), (1380561972,), (1380561974,), (1380561976,), (1380562343,), (1380562345,), (1380562347,), (1380562349,), (1380562863,), (1380562865,), (1380562868,), (1380562871,), (1380563088,), (1380563089,), (1380563090,), (1380563091,), (1380563319,), (1380563321,), (1380563324,), (1380563326,), (1380563328,), (1380563441,), (1380563442,), (1380563443,), (1380563444,), (1380563445,), (1380563446,), (1380563461,), (1380563462,), (1380563463,), (1380563464,), (1380563465,), (1380563466,), (1380563470,), (1380563471,), (1380563473,), (1380563505,), (1380563506,), (1380563507,), (1380563508,), (1380563509,), (1380563526,), (1380563527,), (1380563528,), (1380563529,), (1380563530,), (1380563552,), (1380563553,), (1380563554,), (1380563555,), (1380563556,), (1380563557,), (1380563600,), (1380563601,), (1380563602,), (1380563603,), (1380563640,), (1380563641,), (1380563642,), (1380563643,), (1380563645,), (1380563662,), (1380563663,), (1380563664,), (1380563665,), (1380563666,), (1380563683,), (1380563684,), (1380563685,), (1380563686,), (1380563687,), (1380563688,), (1380563712,), (1380563713,), (1380563714,), (1380563756,), (1380563831,), (1380563751,), (1380563752,), (1380563753,), (1380563754,), (1380563755,), (1380563808,), (1380563809,), (1380563810,), (1380563811,), (1380563812,), (1380563813,), (1380563827,), (1380563828,), (1380563829,), (1380563830,), (1380563844,), (1380563845,), (1380563846,), (1380563882,), (1380563884,), (1380563886,), (1380563956,), (1380563957,), (1380563958,), (1380563959,), (1380563960,), (1380564085,), (1380564086,), (1380564087,), (1380564088,), (1380564089,), (1380564090,), (1380564120,), (1380564121,), (1380564122,), (1380564123,), (1380564202,), (1380564203,), (1380564204,), (1380564205,), (1380564206,), (1380564207,), (1380564352,), (1380564353,), (1380564354,), (1380564355,), (1380564436,), (1380564438,), (1380564440,), (1380564561,), (1380564562,), (1380564605,), (1380564606,), (1380564607,), (1380564638,), (1380564639,), (1380564640,), (1380564641,), (1380564727,), (1380564728,), (1380564729,), (1380564778,), (1380564780,), (1380564781,), (1380564782,), (1380564783,), (1380564895,), (1380564892,), (1380564893,), (1380564976,), (1380565025,), (1380565052,), (1380565053,), (1380565054,), (1380565055,), (1380565056,), (1380565106,), (1380565107,), (1380565108,), (1380565146,), (1380565147,), (1380565148,), (1380565149,), (1380565185,), (1380565186,), (1380565187,), (1380565188,), (1380565189,), (1380565213,), (1380565214,), (1380565215,), (1380565291,), (1380565292,), (1380565293,), (1380565294,), (1380565335,), (1380565336,), (1380565337,), (1380565338,), (1380565339,), (1380565340,), (1380565361,), (1380565362,), (1380565363,), (1380565364,), (1380565386,), (1380565387,), (1380565388,), (1380565389,), (1380565390,), (1380565391,), (1380565526,), (1380565529,), (1380565532,), (1380565535,), (1380565537,), (1380565668,), (1380565689,), (1380566071,), (1380566072,), (1380566073,), (1380566113,), (1380566465,), (1380566466,), (1380566516,), (1380566518,), (1380566520,), (1380566679,), (1380566680,), (1380566681,), (1380566682,), (1380566683,), (1380567451,), (1380567455,), (1380567459,), (1380567463,), (1380567466,), (1380567469,), (1380567650,), (1380567655,), (1380567658,), (1380567662,), (1380567666,), (1380568022,), (1380568023,), (1380568024,), (1380568025,), (1380568467,), (1380568469,), (1380568471,), (1380568473,), (1380568844,), (1380568846,), (1380568848,), (1380568850,), (1380568852,), (1380568854,), (1380569232,), (1380569234,), (1380569235,), (1380569237,), (1380569408,), (1380569410,), (1380569412,), (1380569414,), (1380569416,), (1380569418,), (1380569553,), (1380569554,), (1380569555,), (1380569556,), (1380569557,), (1380569651,), (1380569652,), (1380569653,), (1380569654,), (1380569655,), (1380569656,), (1380569669,), (1380569670,), (1380569671,), (1380569686,), (1380569687,), (1380569688,), (1380569689,), (1380569714,), (1380569715,), (1380569716,), (1380569717,), (1380569718,), (1380569719,), (1380569753,), (1380569754,), (1380569755,), (1380569756,), (1380569757,), (1380569801,), (1380569802,), (1380569803,), (1380569804,), (1380569872,), (1380569874,), (1380569876,), (1380569878,), (1380569880,), (1380569934,), (1380569935,), (1380569936,), (1380569937,), (1380570012,), (1380570013,), (1380570014,), (1380570015,), (1380570086,), (1380570168,), (1380570232,), (1380570165,), (1380570166,), (1380570167,), (1380570218,), (1380570219,), (1380570220,), (1380570221,), (1380570222,), (1380570223,), (1380570272,), (1380570273,), (1380570334,), (1380570335,), (1380570336,), (1380570379,), (1380570446,), (1380570447,), (1380570448,), (1380570477,), (1380570478,), (1380570503,), (1380570504,), (1380570505,), (1380570506,), (1380570527,), (1380570528,), (1380570562,), (1380570563,), (1380570564,), (1380570565,), (1380570598,), (1380570599,), (1380570600,), (1380570619,), (1380570620,), (1380570621,), (1380570653,), (1380570654,), (1380570685,), (1380570686,), (1380570687,), (1380570688,), (1380570714,), (1380570715,), (1380570716,), (1380570812,), (1380570924,), (1380570928,), (1380570932,), (1380571126,), (1380571577,), (1380572110,), (1380572111,), (1380572599,), (1380572602,), (1380572605,), (1380573030,), (1380573032,), (1380573034,), (1380573036,), (1380573039,), (1380573043,), (1380573219,), (1380573220,), (1380573521,), (1380573523,), (1380573525,), (1380573527,), (1380573529,), (1380573620,), (1380573621,), (1380573622,), (1380573623,), (1380573671,), (1380573675,), (1380573905,), (1380573906,), (1380573907,), (1380575321,), (1380575317,), (1380575319,), (1380575474,), (1380575549,), (1380575551,), (1380575553,), (1380575555,), (1380576702,), (1380593792,), (1380593959,), (1380593960,), (1380593990,), (1380593992,), (1380594113,), (1380594251,), (1380594347,), (1380594348,), (1380594484,), (1380594485,), (1380594985,), (1380594987,), (1380594989,), (1380595564,), (1380596233,), (1380597073,), (1380597076,), (1380597079,), (1380597608,), (1380597611,), (1380597614,), (1380597954,), (1380597957,), (1380597960,), (1380597963,), (1380598271,), (1380598273,), (1380598275,), (1380598277,), (1380598279,), (1380598281,), (1380598448,), (1380598449,), (1380598450,), (1380598452,), (1380598453,), (1380598454,), (1380598465,), (1380598466,), (1380598467,), (1380598468,), (1380598470,), (1380598471,), (1380598500,), (1380598501,), (1380598502,), (1380598503,), (1380598532,), (1380598533,), (1380598534,), (1380598535,), (1380598536,), (1380598645,), (1380598646,), (1380598647,), (1380598648,), (1380598649,), (1380598678,), (1380598679,), (1380598680,), (1380598681,), (1380598714,), (1380598715,), (1380598736,), (1380598737,), (1380598738,), (1380598739,), (1380598782,), (1380598783,), (1380598961,), (1380598963,), (1380599070,), (1380599126,), (1380599064,), (1380599065,), (1380599067,), (1380599068,), (1380599069,), (1380599107,), (1380599108,), (1380599109,), (1380599110,), (1380599112,), (1380599113,), (1380599124,), (1380599125,), (1380599173,), (1380599176,), (1380599177,), (1380599178,), (1380599219,), (1380599220,), (1380599306,), (1380599342,), (1380599343,), (1380599375,), (1380599376,), (1380599712,), (1380599714,), (1380599867,), (1380599868,), (1380599869,), (1380599975,), (1380599976,), (1380599977,), (1380600271,), (1380600272,), (1380600399,), (1380600400,), (1380600427,), (1380600428,), (1380600429,), (1380600466,), (1380600468,), (1380600469,), (1380600470,), (1380600502,), (1380600500,), (1380600501,), (1380600536,), (1380600685,), (1380600733,), (1380600734,), (1380600735,), (1380600736,), (1380600737,), (1380600761,), (1380600763,), (1380600764,), (1380600765,), (1380600766,), (1380600767,), (1380600776,), (1380600777,), (1380600778,), (1380600779,), (1380600780,), (1380600814,), (1380600815,), (1380600842,), (1380600843,), (1380600844,), (1380600894,), (1380600895,), (1380600896,), (1380600897,), (1380601233,), (1380601234,), (1380601235,), (1380601236,), (1380601237,), (1380601239,), (1380601278,), (1380601279,), (1380601281,), (1380601283,), (1380601313,), (1380601314,), (1380601316,), (1380601365,), (1380601394,), (1380601395,), (1380601396,), (1380601398,), (1380601399,), (1380601454,), (1380601502,), (1380601448,), (1380601449,), (1380601450,), (1380601452,), (1380601453,), (1380601486,), (1380601487,), (1380601488,), (1380601489,), (1380601490,), (1380601491,), (1380601497,), (1380601499,), (1380601501,), (1380601543,), (1380601544,), (1380601545,), (1380601546,), (1380601578,), (1380601579,), (1380601580,), (1380601621,), (1380601622,), (1380601623,), (1380601624,), (1380601625,), (1380601626,), (1380601661,), (1380601662,), (1380601663,), (1380601664,), (1380601698,), (1380601699,), (1380601700,), (1380601701,), (1380601752,), (1380601753,), (1380601754,), (1380601813,), (1380601814,), (1380601815,), (1380601842,), (1380601843,), (1380601844,), (1380601845,), (1380601846,), (1380601847,), (1380601892,), (1380601893,), (1380601894,), (1380601895,), (1380601896,), (1380601897,), (1380601930,), (1380601931,), (1380601933,), (1380601934,), (1380601935,), (1380601937,), (1380601947,), (1380601948,), (1380601949,), (1380601950,), (1380601989,), (1380601991,), (1380601992,), (1380601993,), (1380602329,), (1380602331,), (1380602333,), (1380602398,), (1380602401,), (1380602403,), (1380602792,), (1380602788,), (1380602790,), (1380603235,), (1380603238,), (1380603241,), (1380603244,), (1380603247,), (1380603250,), (1380604151,), (1380604153,), (1380604155,), (1380604157,), (1380604758,), (1380604760,), (1380604762,), (1380604764,), (1380605071,), (1380605072,), (1380605380,), (1380605383,), (1380605386,), (1380605738,), (1380605739,), (1380605740,), (1380605741,), (1380605742,), (1380605743,), (1380605847,), (1380605849,), (1380605851,), (1380605853,), (1380606118,), (1380606120,), (1380606122,), (1380621514,), (1380621189,), (1380621583,), (1380621778,), (1380621779,), (1380621916,), (1380621956,), (1380621957,), (1380622083,), (1380622084,), (1380622126,), (1380622152,), (1380622082,), (1380622121,), (1380622122,), (1380622123,), (1380622124,), (1380622125,), (1380622236,), (1380622237,), (1380622239,), (1380622241,), (1380622322,), (1380622323,), (1380622324,), (1380622424,), (1380622425,), (1380622426,), (1380622427,), (1380622531,), (1380622532,), (1380622533,), (1380622534,), (1380622535,), (1380622570,), (1380622652,), (1380622659,), (1380622660,), (1380622662,), (1380622700,), (1380622701,), (1380622702,), (1380622703,), (1380622736,), (1380622737,), (1380622738,), (1380622769,), (1380622770,), (1380622771,), (1380622772,), (1380622857,), (1380622858,), (1380622860,), (1380622861,), (1380622862,), (1380622863,), (1380622873,), (1380622978,), (1380622980,), (1380622982,), (1380622984,), (1380623732,), (1380623736,), (1380623739,), (1380623744,), (1380623747,), (1380623750,), (1380624635,), (1380624612,), (1380624618,), (1380624624,), (1380624630,), (1380625469,), (1380625472,), (1380625475,), (1380625478,), (1380625481,), (1380625485,), (1380625818,), (1380625877,), (1380625880,), (1380625883,), (1380625886,), (1380626396,), (1380626398,), (1380626400,), (1380626402,), (1380626404,), (1380626406,), (1380626464,), (1380626465,), (1380626466,), (1380626467,), (1380626514,), (1380626515,), (1380626516,), (1380626517,), (1380626518,), (1380626519,), (1380626553,), (1380626554,), (1380626556,), (1380626557,), (1380626558,), (1380626559,), (1380626568,), (1380626569,), (1380626570,), (1380626571,), (1380626597,), (1380626598,), (1380626599,), (1380626600,), (1380626601,), (1380626602,), (1380626804,), (1380626805,), (1380626806,), (1380626807,), (1380627010,), (1380627012,), (1380627013,), (1380627014,), (1380627015,), (1380627445,), (1380627447,), (1380627449,), (1380627451,), (1380627992,), (1380627994,), (1380627996,), (1380627998,), (1380628412,), (1380628414,), (1380628416,), (1380628418,), (1380628420,), (1380628638,), (1380628641,), (1380628644,), (1380628647,), (1380629242,), (1380629245,), (1380629247,), (1380629249,), (1380629251,), (1380629253,), (1380629528,), (1380630206,), (1380629525,), (1380629526,), (1380629527,), (1380630082,), (1380630084,), (1380630086,), (1380630088,), (1380630090,), (1380630092,), (1380630202,), (1380630836,), (1380630839,), (1380630842,), (1380630845,), (1380631169,), (1380631170,), (1380631171,), (1380631172,), (1380631173,), (1380631174,), (1380631261,), (1380631263,), (1380631265,), (1380631560,), (1380631562,), (1380631563,), (1380631564,), (1380631565,), (1380631701,), (1380631702,), (1380631703,), (1380631704,), (1380631705,), (1380631734,), (1380631735,), (1380631736,), (1380631738,), (1380631767,), (1380631768,), (1380631769,), (1380631770,), (1380631771,), (1380631833,), (1380631835,), (1380631837,), (1380631839,), (1380632060,), (1380632061,), (1380632062,), (1380632063,), (1380632064,), (1380632065,), (1380632093,), (1380632094,), (1380632095,), (1380632096,), (1380632097,), (1380632098,), (1380632106,), (1380632108,), (1380632109,), (1380632110,), (1380632111,), (1380632167,), (1380632168,), (1380632169,), (1380632170,), (1380632171,), (1380632172,), (1380632206,), (1380632207,), (1380632209,), (1380632210,), (1380632211,), (1380632212,), (1380632477,), (1380632478,), (1380632479,), (1380632480,), (1380632576,), (1380632571,), (1380632572,), (1380632573,), (1380632574,), (1380632575,), (1380632634,), (1380632635,), (1380632636,), (1380632637,), (1380632638,), (1380632691,), (1380632692,), (1380632693,), (1380632694,), (1380632815,), (1380632817,), (1380632818,), (1380632819,), (1380632820,), (1380632821,), (1380632852,), (1380632853,), (1380632854,), (1380632855,), (1380632856,), (1380632857,), (1380632912,), (1380632913,), (1380632914,), (1380632942,), (1380632943,), (1380632944,), (1380632945,), (1380632946,), (1380632947,), (1380632951,), (1380632952,), (1380632954,), (1380633021,), (1380633022,), (1380633023,), (1380633024,), (1380633025,), (1380633026,), (1380633137,), (1380633138,), (1380633139,), (1380633218,), (1380633219,), (1380633220,), (1380633221,), (1380633222,), (1380633223,), (1380633391,), (1380633393,), (1380633395,), (1380633397,), (1380633399,), (1380633401,), (1380633633,), (1380633634,), (1380633701,), (1380633702,), (1380633703,), (1380633704,), (1380633739,), (1380634206,), (1380634204,), (1380634205,), (1380634339,), (1380634340,), (1380634342,), (1380634343,), (1380634344,), (1380634475,), (1380634581,), (1380634582,), (1380634583,), (1380634584,), (1380634639,), (1380634640,), (1380634642,), (1380634643,), (1380634644,), (1380634672,), (1380634673,), (1380634674,), (1380634675,), (1380634676,), (1380634741,), (1380634743,), (1380634744,), (1380634745,), (1380634830,), (1380634832,), (1380634834,), (1380634836,), (1380634838,), (1380634840,), (1380634903,), (1380634905,), (1380634907,), (1380635286,), (1380635288,), (1380635290,), (1380635292,), (1380635980,), (1380635982,), (1380635984,), (1380635986,), (1380635989,), (1380636006,), (1380636007,), (1380636008,), (1380636009,), (1380636092,), (1380636089,), (1380636090,), (1380636091,), (1380636333,), (1380636335,), (1380636338,), (1380636340,), (1380636342,), (1380636344,), (1380636710,), (1380636712,), (1380636714,), (1380636716,), (1380636718,), (1380636720,), (1380637015,), (1380637017,), (1380637019,), (1380637021,), (1380637023,), (1380637122,), (1380637123,), (1380637149,), (1380637150,), (1380637151,), (1380637152,), (1380637192,), (1380637193,), (1380637194,), (1380637195,), (1380637196,), (1380637197,), (1380637203,), (1380637205,), (1380637254,), (1380637255,), (1380637256,), (1380637258,), (1380637260,), (1380637308,), (1380637309,), (1380637310,), (1380637311,), (1380637312,), (1380637313,), (1380637347,), (1380637348,), (1380637349,), (1380637532,), (1380637534,), (1380637536,), (1380637538,), (1380637540,), (1380637542,), (1380637707,), (1380637709,), (1380637711,), (1380637713,), (1380637715,), (1380637799,), (1380637800,), (1380637801,), (1380637802,), (1380637846,), (1380637847,), (1380637848,), (1380637849,), (1380637850,), (1380637851,), (1380637889,), (1380637890,), (1380637891,), (1380637892,), (1380637925,), (1380637909,), (1380637919,), (1380637920,), (1380637922,), (1380637924,), (1380637986,), (1380637988,), (1380637990,), (1380637992,), (1380637994,), (1380638086,), (1380638088,), (1380638090,), (1380638092,), (1380638094,), (1380638294,), (1380638296,), (1380638298,), (1380638300,), (1380638302,), (1380638304,), (1380638444,), (1380638445,), (1380638446,), (1380638447,), (1380638504,), (1380638505,), (1380638506,), (1380638507,), (1380638637,), (1380638638,), (1380638639,), (1380638640,), (1380638701,), (1380638702,), (1380638703,), (1380638704,), (1380638705,), (1380638773,), (1380638775,), (1380638777,), (1380639003,), (1380639004,), (1380639005,), (1380639006,), (1380639007,), (1380639008,), (1380639064,), (1380639067,), (1380639069,), (1380639071,), (1380639072,), (1380639205,), (1380639209,), (1380639213,), (1380639218,), (1380639222,), (1380639226,), (1380639278,), (1380639280,), (1380639282,), (1380639489,), (1380639490,), (1380639491,), (1380639492,), (1380639493,), (1380639494,), (1380639555,), (1380639556,), (1380639557,), (1380639558,), (1380639559,), (1380639594,), (1380639595,), (1380639596,), (1380639597,), (1380639661,), (1380639656,), (1380639657,), (1380639658,), (1380639659,), (1380639660,), (1380639701,), (1380639702,), (1380639703,), (1380639704,), (1380639705,), (1380639780,), (1380639781,), (1380639782,), (1380639783,), (1380639806,), (1380639809,), (1380639810,), (1380639811,), (1380639813,), (1380639856,), (1380639858,), (1380639859,), (1380639860,), (1380639861,), (1380639862,), (1380640113,), (1380640114,), (1380640115,), (1380640264,), (1380640265,), (1380640267,), (1380640268,), (1380640269,), (1380640270,), (1380640275,), (1380640276,), (1380640314,), (1380640315,), (1380640316,), (1380640357,), (1380640358,), (1380640359,), (1380640360,), (1380640361,), (1380640362,), (1380640396,), (1380640397,), (1380640398,), (1380640399,), (1380640799,), (1380640801,), (1380640803,), (1380640805,), (1380641299,), (1380641300,), (1380641301,), (1380641302,), (1380641303,), (1380641304,), (1380641870,), (1380641884,), (1380641885,), (1380641886,), (1380641887,), (1380641888,), (1380642424,), (1380642426,), (1380642953,), (1380642954,), (1380642955,), (1380642956,), (1380642957,), (1380643151,), (1380643321,), (1380643147,), (1380643148,), (1380643149,), (1380643150,), (1380643261,), (1380643262,), (1380643263,), (1380643264,), (1380643265,), (1380643267,), (1380643312,), (1380643315,), (1380643318,), (1380643415,), (1380643416,), (1380643417,), (1380643418,), (1380643419,), (1380643644,), (1380643646,), (1380643648,), (1380643650,), (1380643652,), (1380644590,), (1380644594,), (1380644598,), (1380644602,), (1380644606,), (1380645452,), (1380645455,), (1380645458,), (1380646111,), (1380646256,), (1380646260,), (1380646264,), (1380646268,), (1380647114,), (1380647116,), (1380647118,), (1380647120,), (1380647427,), (1380647429,), (1380647431,), (1380647433,), (1380647435,), (1380647882,), (1380647884,), (1380647886,), (1380647888,), (1380648318,), (1380648320,), (1380648322,), (1380648324,), (1380648326,), (1380648880,), (1380648882,), (1380648884,), (1380648886,), (1380648888,), (1380648890,), (1380648996,), (1380649000,), (1380649004,), (1380649008,), (1380649011,), (1380649196,), (1380649198,), (1380649200,), (1380649202,), (1380649873,), (1380649875,), (1380649877,), (1380649879,), (1380650177,), (1380650978,), (1380650981,), (1380650984,), (1380650987,), (1380650990,), (1380651616,), (1380651618,), (1380651620,), (1380651622,), (1380651624,), (1380651626,), (1380652078,), (1380652081,), (1380652084,), (1380652087,), (1380652090,), (1380652563,), (1380652565,), (1380657546,), (1380657543,), (1380657544,), (1380657545,), (1380657585,), (1380657586,), (1380657587,), (1380657588,), (1380657589,), (1380657648,), (1380657646,), (1380657647,), (1380657695,), (1380657696,), (1380657697,), (1380657698,), (1380658032,), (1380658034,), (1380658036,), (1380658038,), (1380658041,), (1380658368,), (1380658370,), (1380658372,), (1380658374,), (1380658376,), (1380658378,), (1380658574,), (1380658578,), (1380658582,), (1380658756,), (1380658757,), (1380658758,), (1380658759,), (1380658760,), (1380658863,), (1380658864,), (1380658865,), (1380658866,), (1380658867,), (1380658868,), (1380658871,), (1380658872,), (1380658873,), (1380658875,), (1380658940,), (1380659020,), (1380659025,), (1380659030,), (1380659034,), (1380659401,), (1380659406,), (1380659411,), (1380659416,), (1380659421,), (1380659426,), (1380659877,), (1380659879,), (1380659881,), (1380659883,), (1380659885,), (1380659887,), (1380660298,), (1380660299,), (1380660300,), (1380660301,), (1380660524,), (1380660525,), (1380660526,), (1380660527,), (1380660528,), (1380660529,), (1380660988,), (1380660990,), (1380660992,), (1380660994,), (1380660996,), (1380661094,), (1380661096,), (1380661098,), (1380661100,), (1380661102,), (1380661104,), (1380661350,), (1380661351,), (1380661352,), (1380661353,), (1380661354,), (1380661355,), (1380661597,), (1380661747,), (1380661593,), (1380661595,), (1380661707,), (1380661708,), (1380661709,), (1380661710,), (1380661712,), (1380661713,), (1380661745,), (1380661820,), (1380661821,), (1380661822,), (1380661823,), (1380661824,), (1380661825,), (1380661859,), (1380661860,), (1380661861,), (1380661903,), (1380661904,), (1380661905,), (1380661906,), (1380661907,), (1380661908,), (1380661960,), (1380661961,), (1380661962,), (1380661963,), (1380661965,), (1380661966,), (1380661998,), (1380661999,), (1380662000,), (1380662001,), (1380662061,), (1380662062,), (1380662063,), (1380662064,), (1380662109,), (1380662110,), (1380662111,), (1380662112,), (1380662113,), (1380662134,), (1380662135,), (1380662136,), (1380662137,), (1380662138,), (1380662320,), (1380662322,), (1380662324,), (1380662326,), (1380662328,), (1380662550,), (1380662551,), (1380662552,), (1380662553,), (1380662554,), (1380662555,), (1380662571,), (1380662572,), (1380662573,), (1380662950,), (1380662953,), (1380662956,), (1380662959,), (1380662962,), (1380664042,), (1380664044,), (1380664046,), (1380664048,), (1380664050,), (1380664056,), (1380664513,), (1380664504,), (1380664506,), (1380664509,), (1380664511,), (1380664791,), (1380664794,), (1380664797,), (1380664800,), (1380664802,), (1380665126,), (1380665127,), (1380665128,), (1380665129,), (1380665186,), (1380665187,), (1380665188,), (1380665189,), (1380665190,), (1380665191,), (1380665247,), (1380665248,), (1380665249,), (1380665250,), (1380665641,), (1380665642,), (1380665643,), (1380665644,), (1380665645,), (1380665782,), (1380665783,), (1380665784,), (1380665785,), (1380665786,), (1380665787,), (1380665792,), (1380665793,), (1380665794,), (1380665795,), (1380665845,), (1380665846,), (1380665847,), (1380665848,), (1380665849,), (1380665885,), (1380665886,), (1380665887,), (1380665888,), (1380665889,), (1380665890,), (1380666244,), (1380666246,), (1380666248,), (1380666404,), (1380666706,), (1380667125,), (1380667127,), (1380667340,), (1380667342,), (1380667509,), (1380667510,), (1380667511,), (1380667512,), (1380667513,), (1380667712,), (1380668237,), (1380667706,), (1380667708,), (1380667710,), (1380668159,), (1380668161,), (1380668163,), (1380668165,), (1380668167,), (1380668169,), (1380668231,), (1380668233,), (1380668235,), (1380668578,), (1380668710,), (1380669479,), (1380669480,), (1380669643,), (1380669644,), (1380669645,), (1380669890,), (1380669892,), (1380669894,), (1380669896,), (1380669898,), (1380670018,), (1380670019,), (1380670020,), (1380670021,), (1380670022,), (1380670123,), (1380670125,), (1380670127,), (1380670129,), (1380670131,), (1380670226,), (1380670228,), (1380670229,), (1380670230,), (1380670231,), (1380670232,), (1380670236,), (1380670238,), (1380670240,), (1380670242,), (1380670270,), (1380670271,), (1380670272,), (1380670273,), (1380670274,), (1380670275,), (1380675724,), (1380670689,), (1380671945,), (1380675155,), (1380676030,), (1380676031,), (1380676032,), (1380676033,), (1380676034,), (1380676035,), (1380676081,), (1380676082,), (1380676083,), (1380676084,), (1380676118,), (1380676119,), (1380676120,), (1380676354,), (1380676355,), (1380676356,), (1380676357,), (1380676358,), (1380676359,), (1380676498,), (1380676499,), (1380676500,), (1380676501,), (1380676502,), (1380676503,), (1380676508,), (1380676509,), (1380676510,), (1380676511,), (1380676512,), (1380676759,), (1380676762,), (1380676764,), (1380676766,), (1380677015,), (1380677016,), (1380677017,), (1380677018,), (1380677019,), (1380677098,), (1380677099,), (1380677100,), (1380677101,), (1380677102,), (1380677140,), (1380677142,), (1380677144,), (1380677390,), (1380677391,), (1380677392,), (1380677393,), (1380677394,), (1380677395,), (1380677774,), (1380677777,), (1380677780,), (1380677783,), (1380677786,), (1380677789,), (1380678158,), (1380678160,), (1380678162,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01092025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26407596]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] map_info['map_portfolio_photo'] : {26407596: [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774, 1380677395, 1380677394, 1380677393, 1380677392, 1380677391, 1380677390, 1380677144, 1380677142, 1380677140, 1380677102, 1380677101, 1380677100, 1380677099, 1380677098, 1380677019, 1380677018, 1380677017, 1380677016, 1380677015, 1380676766, 1380676764, 1380676762, 1380676759, 1380676512, 1380676511, 1380676510, 1380676509, 1380676508, 1380676503, 1380676502, 1380676501, 1380676500, 1380676499, 1380676498, 1380676359, 1380676358, 1380676357, 1380676356, 1380676355, 1380676354, 1380676120, 1380676119, 1380676118, 1380676084, 1380676083, 1380676082, 1380676081, 1380676035, 1380676034, 1380676033, 1380676032, 1380676031, 1380676030, 1380675155]} final : True mtd_id 4302 list_pids : [1380678162, 1380678160, 1380678158, 1380677789, 1380677786, 1380677783, 1380677780, 1380677777, 1380677774] Looping around the photos to save general results len do output : 1 /26407596Didn'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, '3647414') ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414') ('4302', None, None, None, None, None, None, None, '3647414') ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26407596', 'None', None, None, None, None, '3647414'), ('4302', '26407596', '1380678162', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678160', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380678158', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677789', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677786', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677783', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677780', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677777', None, None, None, None, None, '3647414'), ('4302', '26407596', '1380677774', None, None, None, None, None, '3647414')] time used for this insertion : 0.013489007949829102 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.571546792984009 time spend to save output : 0.01369476318359375 total time spend for step 5 : 2.5852415561676025 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 (3647414) 2.18user 2.49system 0:11.21elapsed 41%CPU (0avgtext+0avgdata 160028maxresident)k 160inputs+10456outputs (0major+72020minor)pagefaults 0swaps