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 : 3729246 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 (4235496) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4235496) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472066 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4235496'] with mtr_portfolio_ids : ['29472066'] and first list_photo_ids : [] new path : /proc/3729246/ Name: python3 Umask: 0002 State: R (running) Tgid: 3729246 Ngid: 0 Pid: 3729246 PPid: 3729245 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3729246 NSpid: 3729246 NSpgid: 3727577 NSsid: 3727577 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104868 kB VmRSS: 104868 kB RssAnon: 66292 kB RssFile: 38576 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 556 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: 45 nonvoluntary_ctxt_switches: 112 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3729246', 'Ngid': '0', 'Pid': '3729246', 'PPid': '3729245', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3729246', 'NSpid': '3729246', 'NSpgid': '3727577', 'NSsid': '3727577', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104868 kB', 'VmRSS': '104868 kB', 'RssAnon': '66292 kB', 'RssFile': '38576 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '556 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': '45', 'nonvoluntary_ctxt_switches': '112'} ('datou_batch_current', '3729246', '1113364', '0', '1113364', '872092', '104868', b'', 'marlene', '4235496') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29472066) 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 (4235496 ) ) 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 (29472066) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399665011, 'portfolio_id': 29472066}, {'photo_id': 1399665007, 'portfolio_id': 29472066}, {'photo_id': 1399665005, 'portfolio_id': 29472066}, {'photo_id': 1399665004, 'portfolio_id': 29472066}, {'photo_id': 1399665003, 'portfolio_id': 29472066}, {'photo_id': 1399664999, 'portfolio_id': 29472066}, {'photo_id': 1399664997, 'portfolio_id': 29472066}, {'photo_id': 1399664994, 'portfolio_id': 29472066}, {'photo_id': 1399664991, 'portfolio_id': 29472066}, {'photo_id': 1399664988, 'portfolio_id': 29472066}, {'photo_id': 1399664987, 'portfolio_id': 29472066}, {'photo_id': 1399664957, 'portfolio_id': 29472066}, {'photo_id': 1399664955, 'portfolio_id': 29472066}, {'photo_id': 1399664952, 'portfolio_id': 29472066}, {'photo_id': 1399664924, 'portfolio_id': 29472066}, {'photo_id': 1399664921, 'portfolio_id': 29472066}, {'photo_id': 1399664916, 'portfolio_id': 29472066}, {'photo_id': 1399664914, 'portfolio_id': 29472066}, {'photo_id': 1399664912, 'portfolio_id': 29472066}, {'photo_id': 1399664910, 'portfolio_id': 29472066}, {'photo_id': 1399664867, 'portfolio_id': 29472066}, {'photo_id': 1399664858, 'portfolio_id': 29472066}, {'photo_id': 1399664851, 'portfolio_id': 29472066}, {'photo_id': 1399664850, 'portfolio_id': 29472066}, {'photo_id': 1399664849, 'portfolio_id': 29472066}, {'photo_id': 1399664848, 'portfolio_id': 29472066}, {'photo_id': 1399664847, 'portfolio_id': 29472066}, {'photo_id': 1399664846, 'portfolio_id': 29472066}, {'photo_id': 1399664840, 'portfolio_id': 29472066}, {'photo_id': 1399664837, 'portfolio_id': 29472066}, {'photo_id': 1399664834, 'portfolio_id': 29472066}, {'photo_id': 1399664831, 'portfolio_id': 29472066}, {'photo_id': 1399664830, 'portfolio_id': 29472066}, {'photo_id': 1399664829, 'portfolio_id': 29472066}, {'photo_id': 1399664817, 'portfolio_id': 29472066}, {'photo_id': 1399664814, 'portfolio_id': 29472066}, {'photo_id': 1399664813, 'portfolio_id': 29472066}, {'photo_id': 1399664812, 'portfolio_id': 29472066}, {'photo_id': 1399664811, 'portfolio_id': 29472066}, {'photo_id': 1399664794, 'portfolio_id': 29472066}, {'photo_id': 1399664792, 'portfolio_id': 29472066}, {'photo_id': 1399664790, 'portfolio_id': 29472066}, {'photo_id': 1399664788, 'portfolio_id': 29472066}, {'photo_id': 1399664771, 'portfolio_id': 29472066}, {'photo_id': 1399664769, 'portfolio_id': 29472066}, {'photo_id': 1399664767, 'portfolio_id': 29472066}] map_portfolio_id_photo_id: {29472066: [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987, 1399664957, 1399664955, 1399664952, 1399664924, 1399664921, 1399664916, 1399664914, 1399664912, 1399664910, 1399664867, 1399664858, 1399664851, 1399664850, 1399664849, 1399664848, 1399664847, 1399664846, 1399664840, 1399664837, 1399664834, 1399664831, 1399664830, 1399664829, 1399664817, 1399664814, 1399664813, 1399664812, 1399664811, 1399664794, 1399664792, 1399664790, 1399664788, 1399664771, 1399664769, 1399664767]} ##### 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.01915287971496582 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 16 15:40: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 (29472066) 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 : 29472066 get user id for portfolio 29472066 get sub ptf for main ptf 29472066, type 3726 and hashtags ['Carton_brun', 'plastique', 'kraft', 'metal', 'Carton_gris', 'flou', 'mal_croppe', 'autre_refus', 'Teint_Dans_La_Masse', 'environnement', 'papier', 'cartonnette'] 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`=29472066 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','kraft','metal','Carton_gris','flou','mal_croppe','autre_refus','Teint_Dans_La_Masse','environnement','papier','cartonnette')) 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`=29472066 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','kraft','metal','Carton_gris','flou','mal_croppe','autre_refus','Teint_Dans_La_Masse','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29472066, 'sub_port_id': 29472101, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091982, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'metal': {'main_port_id': 29472066, 'sub_port_id': 29472102, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091983, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'mal_croppe': {'main_port_id': 29472066, 'sub_port_id': 29472103, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091984, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'cartonnette': {'main_port_id': 29472066, 'sub_port_id': 29472104, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091985, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'plastique': {'main_port_id': 29472066, 'sub_port_id': 29472105, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091986, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'flou': {'main_port_id': 29472066, 'sub_port_id': 29472106, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091987, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'Carton_brun': {'main_port_id': 29472066, 'sub_port_id': 29472107, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091988, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'Carton_gris': {'main_port_id': 29472066, 'sub_port_id': 29472108, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091989, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29472066, 'sub_port_id': 29472109, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091990, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'kraft': {'main_port_id': 29472066, 'sub_port_id': 29472110, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091991, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'environnement': {'main_port_id': 29472066, 'sub_port_id': 29472111, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091992, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}, 'autre_refus': {'main_port_id': 29472066, 'sub_port_id': 29472113, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091993, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472101 , 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=29472066 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 (29472101) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472102 , 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=29472066 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 (29472102) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472103 , 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=29472066 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 (29472103) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472104 , 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=29472066 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 (29472104) result : ((1399664981,), (1399664982,), (1399665079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472105 , 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=29472066 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 (29472105) result : ((1399664968,), (1399664985,), (1399665061,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472106 , 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=29472066 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 (29472106) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472107 , 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=29472066 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 (29472107) result : ((1399664967,), (1399664983,), (1399665059,), (1399665060,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472108 , 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=29472066 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 (29472108) result : ((1399664978,), (1399664979,), (1399664980,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472109 , 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=29472066 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 (29472109) result : ((1399665058,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472110 , 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=29472066 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 (29472110) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472111 , 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=29472066 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 (29472111) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29472113 , 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=29472066 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 (29472113) result : ((1399664966,), (1399664977,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29472066) result : ((1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29472066 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','kraft','metal','Carton_gris','flou','mal_croppe','autre_refus','Teint_Dans_La_Masse','environnement','papier','cartonnette')) 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`=29472066 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','kraft','metal','Carton_gris','flou','mal_croppe','autre_refus','Teint_Dans_La_Masse','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29472066, 'sub_port_id': 29472114, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091994, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'metal': {'main_port_id': 29472066, 'sub_port_id': 29472115, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091995, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'mal_croppe': {'main_port_id': 29472066, 'sub_port_id': 29472116, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091996, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'cartonnette': {'main_port_id': 29472066, 'sub_port_id': 29472117, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091997, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'plastique': {'main_port_id': 29472066, 'sub_port_id': 29472118, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091998, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'flou': {'main_port_id': 29472066, 'sub_port_id': 29472119, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20091999, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'Carton_brun': {'main_port_id': 29472066, 'sub_port_id': 29472120, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092000, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'Carton_gris': {'main_port_id': 29472066, 'sub_port_id': 29472121, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092001, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 29472066, 'sub_port_id': 29472122, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092002, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'kraft': {'main_port_id': 29472066, 'sub_port_id': 29472123, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092003, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'environnement': {'main_port_id': 29472066, 'sub_port_id': 29472124, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092004, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}, 'autre_refus': {'main_port_id': 29472066, 'sub_port_id': 29472125, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20092005, 'last_updated_at': datetime.datetime(2025, 12, 16, 15, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 15, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 15, 33, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472114,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472101 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472115,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472102 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472116,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472103 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472117,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472104 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472105 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29472125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29472113 lien utilise dans velours : https://marlene.fotonower.com/velours/29472114,29472115,29472116,29472117,29472118,29472119,29472120,29472121,29472122,29472123,29472124,29472125?tags=papier,metal,mal_croppe,cartonnette,plastique,flou,Carton_brun,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29472066]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] map_info['map_portfolio_photo'] : {29472066: [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987, 1399664957, 1399664955, 1399664952, 1399664924, 1399664921, 1399664916, 1399664914, 1399664912, 1399664910, 1399664867, 1399664858, 1399664851, 1399664850, 1399664849, 1399664848, 1399664847, 1399664846, 1399664840, 1399664837, 1399664834, 1399664831, 1399664830, 1399664829, 1399664817, 1399664814, 1399664813, 1399664812, 1399664811, 1399664794, 1399664792, 1399664790, 1399664788, 1399664771, 1399664769, 1399664767]} final : False mtd_id 4302 list_pids : [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] Looping around the photos to save general results len do output : 1 /29472066. 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, '4235496') ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29472066', "{'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113}", None, None, None, None, '4235496'), ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496')] time used for this insertion : 0.016685962677001953 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7708275318145752 time spend to save output : 0.016968727111816406 total time spend for step 1 : 1.7877962589263916 step2:final Tue Dec 16 15:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (29472066) 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 29472066 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399664771,1399664769,1399664767,1399664794,1399664792,1399664790,1399664788,1399664817,1399664850,1399664814,1399664849,1399664813,1399664848,1399664812,1399664847,1399664811,1399664846,1399664840,1399664837,1399664834,1399664831,1399664830,1399664829,1399664867,1399664858,1399664851,1399664924,1399664921,1399664916,1399664910,1399664914,1399664912,1399664957,1399665004,1399664955,1399665003,1399664952,1399664999,1399664997,1399664994,1399664991,1399664988,1399664987,1399665011,1399665007,1399665005); 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([29472066]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} new output for save of step final : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] map_info['map_portfolio_photo'] : {29472066: [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987, 1399664957, 1399664955, 1399664952, 1399664924, 1399664921, 1399664916, 1399664914, 1399664912, 1399664910, 1399664867, 1399664858, 1399664851, 1399664850, 1399664849, 1399664848, 1399664847, 1399664846, 1399664840, 1399664837, 1399664834, 1399664831, 1399664830, 1399664829, 1399664817, 1399664814, 1399664813, 1399664812, 1399664811, 1399664794, 1399664792, 1399664790, 1399664788, 1399664771, 1399664769, 1399664767]} final : False mtd_id 4302 list_pids : [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] Looping around the photos to save general results len do output : 11 /1399665011.Didn't retrieve data . /1399665007.Didn't retrieve data . /1399665005.Didn't retrieve data . /1399665004.Didn't retrieve data . /1399665003.Didn't retrieve data . /1399664999.Didn't retrieve data . /1399664997.Didn't retrieve data . /1399664994.Didn't retrieve data . /1399664991.Didn't retrieve data . /1399664988.Didn't retrieve data . /1399664987.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, '4235496') ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '29472066', '1399665011', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399665007', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399665005', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399665004', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399665003', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664999', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664997', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664994', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664991', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664988', '0.04228141787738014', None, None, None, None, '4235496'), ('4302', '29472066', '1399664987', '0.04228141787738014', None, None, None, None, '4235496')] time used for this insertion : 0.018308162689208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08315205574035645 time spend to save output : 0.018862247467041016 total time spend for step 2 : 0.10201430320739746 step3:velours_tree Tue Dec 16 15:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29472066: [{'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113}]} input_args_next_step : {29472066: ()} output_args : {29472066: [{'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113}]} args : 29472066 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29472066) 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([29472066]) 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.3242061138153076 time spend to save output : 6.723403930664062e-05 total time spend for step 3 : 0.32427334785461426 step4:send_mail_cod Tue Dec 16 15:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} input_args_next_step : {1399665011: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399665011 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399665007 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399665005 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399665004 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399665003 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664999 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664997 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664994 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664991 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664988 depend.output_id : 0 input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ()} output_args : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',)} args : 1399664987 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 : {29472066: [{'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113}]} input_args_next_step : {1399665011: ('0.04228141787738014',), 1399665007: ('0.04228141787738014',), 1399665005: ('0.04228141787738014',), 1399665004: ('0.04228141787738014',), 1399665003: ('0.04228141787738014',), 1399664999: ('0.04228141787738014',), 1399664997: ('0.04228141787738014',), 1399664994: ('0.04228141787738014',), 1399664991: ('0.04228141787738014',), 1399664988: ('0.04228141787738014',), 1399664987: ('0.04228141787738014',), 29472066: ()} output_args : {29472066: [{'papier': 29472101, 'metal': 29472102, 'mal_croppe': 29472103, 'cartonnette': 29472104, 'plastique': 29472105, 'flou': 29472106, 'Carton_brun': 29472107, 'Carton_gris': 29472108, 'Teint_Dans_La_Masse': 29472109, 'kraft': 29472110, 'environnement': 29472111, 'autre_refus': 29472113}]} args : 29472066 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 :12, first value : ('0.04228141787738014',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29472066) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1399665011,1399665007,1399665005,1399665004,1399665003,1399664999,1399664997,1399664994,1399664991,1399664988,1399664987) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399664987 begin to download photo : 1399664994 begin to download photo : 1399665003 begin to download photo : 1399665007 download finish for photo 1399665007 begin to download photo : 1399665011 download finish for photo 1399664987 begin to download photo : 1399664988 download finish for photo 1399665003 begin to download photo : 1399665004 download finish for photo 1399664994 begin to download photo : 1399664997 download finish for photo 1399665011 download finish for photo 1399665004 begin to download photo : 1399665005 download finish for photo 1399664997 begin to download photo : 1399664999 download finish for photo 1399664988 begin to download photo : 1399664991 download finish for photo 1399664999 download finish for photo 1399665005 download finish for photo 1399664991 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette294721021765896061/ imagette294721031765896061/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29472066_16-12-2025_15_41_01.pdf 29472102 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472102 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294721021765896061 29472103 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472103 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294721031765896061 29472104 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472104 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399664981: '1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968084_0.png', 1399664982: '1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968087_0.png', 1399665079: '1765896027_950824_1399664955_2b70964a19748154788956acec7c2a4e_rle_crop_4071971122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/1089b2c213c71ee1322786d70ffa5c17_63148916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f3b434e05f70874d1e986f0a4b0252f3_45290203.png change filename to text .imagette294721041765896061/ imagette294721041765896061/1765896027_950824_1399664955_2b70964a19748154788956acec7c2a4e_rle_crop_4071971122_0.png.png imagette294721041765896061/1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968084_0.png.png imagette294721041765896061/1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968087_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/02fca46581e56723e80f9304fe31e304_26515312.png imagette294721041765896061 29472105 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472105 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399664968: '1765895827_940200_1399664811_59d1b4019093e6f2ebabf4f24bf7d737_rle_crop_4071967938_0.png', 1399664985: '1765895846_940697_1399664817_f2edde17b4051ff881d5416fae1c9f64_rle_crop_4071968055_0.png', 1399665061: '1765895967_946239_1399664769_3b5de61bd2ddf9ea541a656829bcaf22_rle_crop_4071969689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0afc5f1dd913b2e5b55802d079294ca9_52727528.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4f04664b93817d128f50e08a36658157_99940696.png change filename to text .imagette294721051765896061/ imagette294721051765896061/1765895967_946239_1399664769_3b5de61bd2ddf9ea541a656829bcaf22_rle_crop_4071969689_0.png.png imagette294721051765896061/1765895846_940697_1399664817_f2edde17b4051ff881d5416fae1c9f64_rle_crop_4071968055_0.png.png imagette294721051765896061/1765895827_940200_1399664811_59d1b4019093e6f2ebabf4f24bf7d737_rle_crop_4071967938_0.png.png imagette294721061765896061/ imagette294721101765896061/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e9917c15df1de15cf35c6f1e5e54711a_37556636.png imagette294721051765896061 29472106 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294721061765896061 29472110 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294721101765896061 29472113 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399664966: '1765895827_940200_1399664813_8dab6550eacd83d2edd5c885ccbeb69d_rle_crop_4071967917_0.png', 1399664977: '1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d8b44800fa9228d8cbd91b1dd6a47b09_54361694.png change filename to text .imagette294721131765896061/ imagette294721131765896061/1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968075_0.png.png imagette294721131765896061/1765895827_940200_1399664813_8dab6550eacd83d2edd5c885ccbeb69d_rle_crop_4071967917_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/49d8b97833cea63d284d0ce1c620cb66_78387407.png imagette294721131765896061 29472107 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399664967: '1765895827_940200_1399664813_8dab6550eacd83d2edd5c885ccbeb69d_rle_crop_4071967916_0.png', 1399664983: '1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968072_0.png', 1399665059: '1765895967_946239_1399664769_3b5de61bd2ddf9ea541a656829bcaf22_rle_crop_4071969693_0.png', 1399665060: '1765895967_946239_1399664767_702690565e02ef16ec78057ad317b37f_rle_crop_4071969702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fd63d7381f5ff63a08ac9a9a228b96bf_63844278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/84a842fe05b6f5a4125eac5152bbc90f_17371947.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4f4ad78de6d2014f7095a83afeca9665_90223109.png change filename to text .imagette294721071765896062/ imagette294721071765896062/1765895827_940200_1399664813_8dab6550eacd83d2edd5c885ccbeb69d_rle_crop_4071967916_0.png.png imagette294721071765896062/1765895967_946239_1399664769_3b5de61bd2ddf9ea541a656829bcaf22_rle_crop_4071969693_0.png.png imagette294721071765896062/1765895967_946239_1399664767_702690565e02ef16ec78057ad317b37f_rle_crop_4071969702_0.png.png imagette294721071765896062/1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968072_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d6d3bf7309e74119c37459fe9054de7c_43653998.png imagette294721071765896062 29472108 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472108 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399664978: '1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968069_0.png', 1399664979: '1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968088_0.png', 1399664980: '1765895846_940697_1399664788_e54b82a77e115aea9204b73cfa96a3af_rle_crop_4071968098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fa9cbe9dca96aed0e72c454d9d893b03_80427165.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c67584cbb5cfda618a62c9c95934f55c_12886827.png change filename to text .imagette294721081765896062/ imagette294721081765896062/1765895846_940697_1399664788_e54b82a77e115aea9204b73cfa96a3af_rle_crop_4071968098_0.png.png imagette294721081765896062/1765895846_940697_1399664790_b8c5bf6a07f3c1020a4eddf660e2f0e9_rle_crop_4071968088_0.png.png imagette294721081765896062/1765895846_940697_1399664792_76c215188911b0dfd8f7a885b2d2939e_rle_crop_4071968069_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/34ab15d3a28d4bb885b2667465213304_85332936.png imagette294721081765896062 29472109 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399665058: '1765895967_946239_1399664771_5d421f1d294a520857ec22aabeb621d7_rle_crop_4071969681_0.png'} change filename to text .imagette294721091765896062/ imagette294721091765896062/1765895967_946239_1399664771_5d421f1d294a520857ec22aabeb621d7_rle_crop_4071969681_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/517b2134ab863f1a1e8046a80f19ecab_71307880.png imagette294721091765896062 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29472066 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29472114,29472115,29472116,29472117,29472118,29472119,29472120,29472121,29472122,29472123,29472124,29472125?tags=papier,metal,mal_croppe,cartonnette,plastique,flou,Carton_brun,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,autre_refus your option no_mail is active, we will not send the real mail to your client args[1399665011] : ('0.04228141787738014',) no score found for photo 1399665011 We are sending mail with results at report@fotonower.com args[1399665007] : ('0.04228141787738014',) no score found for photo 1399665007 We are sending mail with results at report@fotonower.com args[1399665005] : ('0.04228141787738014',) no score found for photo 1399665005 We are sending mail with results at report@fotonower.com args[1399665004] : ('0.04228141787738014',) no score found for photo 1399665004 We are sending mail with results at report@fotonower.com args[1399665003] : ('0.04228141787738014',) no score found for photo 1399665003 We are sending mail with results at report@fotonower.com args[1399664999] : ('0.04228141787738014',) no score found for photo 1399664999 We are sending mail with results at report@fotonower.com args[1399664997] : ('0.04228141787738014',) no score found for photo 1399664997 We are sending mail with results at report@fotonower.com args[1399664994] : ('0.04228141787738014',) no score found for photo 1399664994 We are sending mail with results at report@fotonower.com args[1399664991] : ('0.04228141787738014',) no score found for photo 1399664991 We are sending mail with results at report@fotonower.com args[1399664988] : ('0.04228141787738014',) no score found for photo 1399664988 We are sending mail with results at report@fotonower.com args[1399664987] : ('0.04228141787738014',) no score found for photo 1399664987 We are sending mail with results at report@fotonower.com refus_total : 0.04228141787738014 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472066 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_P29472066_16-12-2025_15_41_01.pdf results_Auto_P29472066_16-12-2025_15_41_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_41_01.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','29472066','results_Auto_P29472066_16-12-2025_15_41_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_41_01.pdf','pdf','','0.16','0.04228141787738014') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29472066]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] map_info['map_portfolio_photo'] : {29472066: [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987, 1399664957, 1399664955, 1399664952, 1399664924, 1399664921, 1399664916, 1399664914, 1399664912, 1399664910, 1399664867, 1399664858, 1399664851, 1399664850, 1399664849, 1399664848, 1399664847, 1399664846, 1399664840, 1399664837, 1399664834, 1399664831, 1399664830, 1399664829, 1399664817, 1399664814, 1399664813, 1399664812, 1399664811, 1399664794, 1399664792, 1399664790, 1399664788, 1399664771, 1399664769, 1399664767]} final : False mtd_id 4302 list_pids : [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] 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, '4235496') ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '29472066', '1399665011', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496')] time used for this insertion : 0.015636205673217773 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2541892528533936 time spend to save output : 0.01586318016052246 total time spend for step 4 : 3.270052433013916 step5:split_time_score Tue Dec 16 15:41: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 : ['29472066'] 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 : [('29472066',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29472066) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399665007: {'path': 'temp/1765896060_3729246_1399665007_bfb635cc19db6fe8a10da2fa18e4e426.jpg', 'extension': 'jpg'}, 1399665011: {'path': 'temp/1765896060_3729246_1399665011_eefd101519576196b016a04495bb2f2f.jpg', 'extension': 'jpg'}, 1399664994: {'path': 'temp/1765896060_3729246_1399664994_5da64611975f58d2e78b84909ee900d7.jpg', 'extension': 'jpg'}, 1399664997: {'path': 'temp/1765896060_3729246_1399664997_b35de63a7dba785a716e428880aa3a97.jpg', 'extension': 'jpg'}, 1399664999: {'path': 'temp/1765896060_3729246_1399664999_08509c4a53de6bc785456c135ae7f0ce.jpg', 'extension': 'jpg'}, 1399665003: {'path': 'temp/1765896060_3729246_1399665003_a080539cd09e9c2b3733f18b7ed5a9dd.jpg', 'extension': 'jpg'}, 1399665004: {'path': 'temp/1765896060_3729246_1399665004_d90a649f6fb6d6f509be7e1144572df3.jpg', 'extension': 'jpg'}, 1399665005: {'path': 'temp/1765896060_3729246_1399665005_ee7d66ac009e816e18cde933fc2bef1a.jpg', 'extension': 'jpg'}, 1399664987: {'path': 'temp/1765896060_3729246_1399664987_5e27d9a7131eb03c03e41a557f713cb9.jpg', 'extension': 'jpg'}, 1399664988: {'path': 'temp/1765896060_3729246_1399664988_a270a951b7dd07f06ceb64f91dc9f52e.jpg', 'extension': 'jpg'}, 1399664991: {'path': 'temp/1765896060_3729246_1399664991_c071d1aed67b72c23fb6bcb073004d9d.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 = 29472066; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29472066 group by h (('15', 46),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29472066 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 (29472066) 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 (29472066) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16122025 29472066 Nombre de photos uploadées : 46 / 23040 (0%) 16122025 29472066 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 16122025 29472066 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1399664771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5d421f1d294a520857ec22aabeb621d7.jpg', 'username': None, 'uploaded_at': 1765895467, 'text': 'image_16122025_15_30_14_10139.jpg'}, {'photo_id': 1399664769, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3b5de61bd2ddf9ea541a656829bcaf22.jpg', 'username': None, 'uploaded_at': 1765895467, 'text': 'image_16122025_15_30_24_10136.jpg'}, {'photo_id': 1399664767, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/702690565e02ef16ec78057ad317b37f.jpg', 'username': None, 'uploaded_at': 1765895467, 'text': 'image_16122025_15_30_34_10136.jpg'}, {'photo_id': 1399664794, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b357e5cd7a814691999d9ff788c89314.jpg', 'username': None, 'uploaded_at': 1765895527, 'text': 'image_16122025_15_30_44_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002384662628173828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29472066, '2025-12-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2742047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2450573444366455 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= 2742047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29450388, 'dashboard_result_id': 18425636, '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_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29450996, 'dashboard_result_id': 18425637, '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_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29451566, 'dashboard_result_id': 18425638, '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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29452103, 'dashboard_result_id': 18425639, '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_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29453332, 'dashboard_result_id': 18425640, '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_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29453728, 'dashboard_result_id': 18425641, '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_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29454116, 'dashboard_result_id': 18425642, '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_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29454690, 'dashboard_result_id': 18425643, '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_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29455111, 'dashboard_result_id': 18425644, '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_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29455589, 'dashboard_result_id': 18425646, '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_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29455995, 'dashboard_result_id': 18425647, '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_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29456570, 'dashboard_result_id': 18425648, '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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29456741, 'dashboard_result_id': 18425650, '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_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29457104, 'dashboard_result_id': 18425651, '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_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29457750, 'dashboard_result_id': 18425652, '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_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29459040, 'dashboard_result_id': 18425653, '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_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29459313, 'dashboard_result_id': 18425655, '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_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29459681, 'dashboard_result_id': 18425656, '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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29460076, 'dashboard_result_id': 18425657, '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_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29460421, 'dashboard_result_id': 18425658, '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_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29460888, 'dashboard_result_id': 18425659, '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_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29461351, 'dashboard_result_id': 18425661, '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_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29461970, 'dashboard_result_id': 18425662, '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_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29462429, 'dashboard_result_id': 18425663, '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_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29462984, 'dashboard_result_id': 18425664, '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_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29463487, 'dashboard_result_id': 18425665, '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_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29464019, 'dashboard_result_id': 18425666, '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_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29464427, 'dashboard_result_id': 18425667, '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_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29464951, 'dashboard_result_id': 18425668, '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_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29465543, 'dashboard_result_id': 18425669, '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_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29466080, 'dashboard_result_id': 18425670, '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_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29470041, 'dashboard_result_id': 18425671, '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_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29470258, 'dashboard_result_id': 18425672, '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_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29470785, 'dashboard_result_id': 18425673, '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_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29471232, 'dashboard_result_id': 18425674, '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_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29471637, 'dashboard_result_id': 18425675, '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_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2752760, 'mtr_portfolio_id': 29472066, 'dashboard_result_id': 18425676, '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_P29472066_16-12-2025_15_38_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, '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 = 29450388 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': 4233576, 'mtr_portfolio_id': 29450388, 'created_at': datetime.datetime(2025, 12, 16, 6, 9, 59), 'result': '0.05352721734894388', 'result_long': None, 'result_double': None}] Qualite : 0.05352721734894388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450388 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_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}" where mtr_portfolio_id = 29450388 and dashboard_run_id = 2752760 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`=29450388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425636, 0.05352721734894388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, '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 = 29450996 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': 4233577, 'mtr_portfolio_id': 29450996, 'created_at': datetime.datetime(2025, 12, 16, 6, 10, 29), 'result': '0.05662294738168372', 'result_long': None, 'result_double': None}] Qualite : 0.05662294738168372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450996 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_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}" where mtr_portfolio_id = 29450996 and dashboard_run_id = 2752760 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`=29450996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425637, 0.05662294738168372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, '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 = 29451566 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': 4233578, 'mtr_portfolio_id': 29451566, 'created_at': datetime.datetime(2025, 12, 16, 6, 11, 9), 'result': '0.0515832125030124', 'result_long': None, 'result_double': None}] Qualite : 0.0515832125030124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29451566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29451566 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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}" where mtr_portfolio_id = 29451566 and dashboard_run_id = 2752760 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`=29451566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425638, 0.0515832125030124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, '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 = 29452103 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': 4233579, 'mtr_portfolio_id': 29452103, 'created_at': datetime.datetime(2025, 12, 16, 6, 11, 30), 'result': '0.043638697663322325', 'result_long': None, 'result_double': None}] Qualite : 0.043638697663322325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29452103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29452103 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_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}" where mtr_portfolio_id = 29452103 and dashboard_run_id = 2752760 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`=29452103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425639, 0.043638697663322325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, '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 = 29453332 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': 4233580, 'mtr_portfolio_id': 29453332, 'created_at': datetime.datetime(2025, 12, 16, 6, 12, 1), 'result': '0.03181138666987177', 'result_long': None, 'result_double': None}] Qualite : 0.03181138666987177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453332 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_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}" where mtr_portfolio_id = 29453332 and dashboard_run_id = 2752760 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`=29453332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425640, 0.03181138666987177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, '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 = 29453728 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': 4233581, 'mtr_portfolio_id': 29453728, 'created_at': datetime.datetime(2025, 12, 16, 6, 12, 32), 'result': '0.049330479444664566', 'result_long': None, 'result_double': None}] Qualite : 0.049330479444664566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453728 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_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}" where mtr_portfolio_id = 29453728 and dashboard_run_id = 2752760 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`=29453728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425641, 0.049330479444664566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, '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 = 29454116 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': 4233582, 'mtr_portfolio_id': 29454116, 'created_at': datetime.datetime(2025, 12, 16, 6, 13, 30), 'result': '0.052327176590350855', 'result_long': None, 'result_double': None}] Qualite : 0.052327176590350855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454116 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_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}" where mtr_portfolio_id = 29454116 and dashboard_run_id = 2752760 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`=29454116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425642, 0.052327176590350855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, '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 = 29454690 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': 4233583, 'mtr_portfolio_id': 29454690, 'created_at': datetime.datetime(2025, 12, 16, 6, 13, 57), 'result': '0.045000515561407765', 'result_long': None, 'result_double': None}] Qualite : 0.045000515561407765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_06_13_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454690 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_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}" where mtr_portfolio_id = 29454690 and dashboard_run_id = 2752760 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`=29454690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425643, 0.045000515561407765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, '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 = 29455111 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': 4233584, 'mtr_portfolio_id': 29455111, 'created_at': datetime.datetime(2025, 12, 16, 6, 14, 57), 'result': '0.050983437450019924', 'result_long': None, 'result_double': None}] Qualite : 0.050983437450019924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_06_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455111 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_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}" where mtr_portfolio_id = 29455111 and dashboard_run_id = 2752760 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`=29455111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425644, 0.050983437450019924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, '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 = 29455589 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': 4233585, 'mtr_portfolio_id': 29455589, 'created_at': datetime.datetime(2025, 12, 16, 6, 15, 31), 'result': '0.04823967860108579', 'result_long': None, 'result_double': None}] Qualite : 0.04823967860108579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455589 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_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}" where mtr_portfolio_id = 29455589 and dashboard_run_id = 2752760 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`=29455589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425646, 0.04823967860108579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, '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 = 29455995 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': 4233586, 'mtr_portfolio_id': 29455995, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 1), 'result': '0.03987484468013755', 'result_long': None, 'result_double': None}] Qualite : 0.03987484468013755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_06_16_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455995 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_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}" where mtr_portfolio_id = 29455995 and dashboard_run_id = 2752760 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`=29455995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425647, 0.03987484468013755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, '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 = 29456570 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': 4233587, 'mtr_portfolio_id': 29456570, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 9), 'result': '0.06229824789838939', 'result_long': None, 'result_double': None}] Qualite : 0.06229824789838939 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29456570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456570_16-12-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456570 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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}" where mtr_portfolio_id = 29456570 and dashboard_run_id = 2752760 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`=29456570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425648, 0.06229824789838939, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, '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 = 29456741 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': 4233588, 'mtr_portfolio_id': 29456741, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 30), 'result': '0.03812794991804252', 'result_long': None, 'result_double': None}] Qualite : 0.03812794991804252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29456741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456741 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_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}" where mtr_portfolio_id = 29456741 and dashboard_run_id = 2752760 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`=29456741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425650, 0.03812794991804252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, '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 = 29457104 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': 4233589, 'mtr_portfolio_id': 29457104, 'created_at': datetime.datetime(2025, 12, 16, 6, 17, 31), 'result': '0.03516507863229614', 'result_long': None, 'result_double': None}] Qualite : 0.03516507863229614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457104 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_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}" where mtr_portfolio_id = 29457104 and dashboard_run_id = 2752760 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`=29457104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425651, 0.03516507863229614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, '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 = 29457750 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': 4233590, 'mtr_portfolio_id': 29457750, 'created_at': datetime.datetime(2025, 12, 16, 6, 18), 'result': '0.05781912331212533', 'result_long': None, 'result_double': None}] Qualite : 0.05781912331212533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_06_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457750 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_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}" where mtr_portfolio_id = 29457750 and dashboard_run_id = 2752760 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`=29457750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425652, 0.05781912331212533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, '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 = 29459040 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': 4233591, 'mtr_portfolio_id': 29459040, 'created_at': datetime.datetime(2025, 12, 16, 6, 18, 27), 'result': '0.052621194332741525', 'result_long': None, 'result_double': None}] Qualite : 0.052621194332741525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_06_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459040 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_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}" where mtr_portfolio_id = 29459040 and dashboard_run_id = 2752760 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`=29459040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425653, 0.052621194332741525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, '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 = 29459313 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': 4233592, 'mtr_portfolio_id': 29459313, 'created_at': datetime.datetime(2025, 12, 16, 6, 19, 29), 'result': '0.055558643199874046', 'result_long': None, 'result_double': None}] Qualite : 0.055558643199874046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459313 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_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}" where mtr_portfolio_id = 29459313 and dashboard_run_id = 2752760 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`=29459313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425655, 0.055558643199874046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, '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 = 29459681 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': 4233512, 'mtr_portfolio_id': 29459681, 'created_at': datetime.datetime(2025, 12, 16, 5, 49, 30), 'result': '0.049235597093003', 'result_long': None, 'result_double': None}] Qualite : 0.049235597093003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459681 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459681 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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}" where mtr_portfolio_id = 29459681 and dashboard_run_id = 2752760 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`=29459681 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425656, 0.049235597093003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, '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 = 29460076 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': 4233689, 'mtr_portfolio_id': 29460076, 'created_at': datetime.datetime(2025, 12, 16, 6, 3, 29), 'result': '0.05960082337941962', 'result_long': None, 'result_double': None}] Qualite : 0.05960082337941962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460076 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_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, 'pht': 3726}}" where mtr_portfolio_id = 29460076 and dashboard_run_id = 2752760 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`=29460076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425657, 0.05960082337941962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, '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 = 29460421 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': 4233751, 'mtr_portfolio_id': 29460421, 'created_at': datetime.datetime(2025, 12, 16, 6, 19, 27), 'result': '0.07299457359816738', 'result_long': None, 'result_double': None}] Qualite : 0.07299457359816738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460421_16-12-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460421 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_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, 'pht': 3726}}" where mtr_portfolio_id = 29460421 and dashboard_run_id = 2752760 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`=29460421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425658, 0.07299457359816738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, '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 = 29460888 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': 4233834, 'mtr_portfolio_id': 29460888, 'created_at': datetime.datetime(2025, 12, 16, 6, 33), 'result': '0.05773347832716938', 'result_long': None, 'result_double': None}] Qualite : 0.05773347832716938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460888_16-12-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460888 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_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, 'pht': 3726}}" where mtr_portfolio_id = 29460888 and dashboard_run_id = 2752760 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`=29460888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425659, 0.05773347832716938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, '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 = 29461351 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': 4233917, 'mtr_portfolio_id': 29461351, 'created_at': datetime.datetime(2025, 12, 16, 6, 48, 58), 'result': '0.07161656644445627', 'result_long': None, 'result_double': None}] Qualite : 0.07161656644445627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29461351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461351_16-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29461351 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_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, 'pht': 3726}}" where mtr_portfolio_id = 29461351 and dashboard_run_id = 2752760 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`=29461351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425661, 0.07161656644445627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, '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 = 29461970 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': 4234000, 'mtr_portfolio_id': 29461970, 'created_at': datetime.datetime(2025, 12, 16, 7, 5), 'result': '0.04957080176986008', 'result_long': None, 'result_double': None}] Qualite : 0.04957080176986008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29461970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461970_16-12-2025_07_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29461970 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_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, 'pht': 3726}}" where mtr_portfolio_id = 29461970 and dashboard_run_id = 2752760 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`=29461970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425662, 0.04957080176986008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, '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 = 29462429 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': 4234079, 'mtr_portfolio_id': 29462429, 'created_at': datetime.datetime(2025, 12, 16, 7, 18, 57), 'result': '0.061044049128407336', 'result_long': None, 'result_double': None}] Qualite : 0.061044049128407336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29462429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462429_16-12-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29462429 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_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, 'pht': 3726}}" where mtr_portfolio_id = 29462429 and dashboard_run_id = 2752760 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`=29462429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425663, 0.061044049128407336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, '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 = 29462984 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': 4234142, 'mtr_portfolio_id': 29462984, 'created_at': datetime.datetime(2025, 12, 16, 7, 33, 29), 'result': '0.05587924139226646', 'result_long': None, 'result_double': None}] Qualite : 0.05587924139226646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29462984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462984_16-12-2025_07_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29462984 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_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, 'pht': 3726}}" where mtr_portfolio_id = 29462984 and dashboard_run_id = 2752760 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`=29462984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425664, 0.05587924139226646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, '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 = 29463487 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': 4234198, 'mtr_portfolio_id': 29463487, 'created_at': datetime.datetime(2025, 12, 16, 7, 48, 59), 'result': '0.036952601507341136', 'result_long': None, 'result_double': None}] Qualite : 0.036952601507341136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29463487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29463487_16-12-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29463487 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_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, 'pht': 3726}}" where mtr_portfolio_id = 29463487 and dashboard_run_id = 2752760 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`=29463487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425665, 0.036952601507341136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, '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 = 29464019 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': 4234256, 'mtr_portfolio_id': 29464019, 'created_at': datetime.datetime(2025, 12, 16, 8, 3, 29), 'result': '0.04712234716675099', 'result_long': None, 'result_double': None}] Qualite : 0.04712234716675099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464019_16-12-2025_08_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464019 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_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, 'pht': 3726}}" where mtr_portfolio_id = 29464019 and dashboard_run_id = 2752760 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`=29464019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425666, 0.04712234716675099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, '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 = 29464427 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': 4234316, 'mtr_portfolio_id': 29464427, 'created_at': datetime.datetime(2025, 12, 16, 8, 16, 59), 'result': '0.037517306858330234', 'result_long': None, 'result_double': None}] Qualite : 0.037517306858330234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464427_16-12-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464427 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_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, 'pht': 3726}}" where mtr_portfolio_id = 29464427 and dashboard_run_id = 2752760 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`=29464427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425667, 0.037517306858330234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, '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 = 29464951 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': 4234377, 'mtr_portfolio_id': 29464951, 'created_at': datetime.datetime(2025, 12, 16, 8, 33), 'result': '0.05789469809338633', 'result_long': None, 'result_double': None}] Qualite : 0.05789469809338633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464951_16-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464951 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_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, 'pht': 3726}}" where mtr_portfolio_id = 29464951 and dashboard_run_id = 2752760 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`=29464951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425668, 0.05789469809338633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, '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 = 29465543 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': 4234456, 'mtr_portfolio_id': 29465543, 'created_at': datetime.datetime(2025, 12, 16, 8, 46, 30), 'result': '0.07784109613843306', 'result_long': None, 'result_double': None}] Qualite : 0.07784109613843306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29465543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29465543_16-12-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29465543 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_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, 'pht': 3726}}" where mtr_portfolio_id = 29465543 and dashboard_run_id = 2752760 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`=29465543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425669, 0.07784109613843306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, '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 = 29466080 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': 4234518, 'mtr_portfolio_id': 29466080, 'created_at': datetime.datetime(2025, 12, 16, 15, 0, 59), 'result': '0.06759115814493749', 'result_long': None, 'result_double': None}] Qualite : 0.06759115814493749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29466080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29466080_16-12-2025_15_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29466080 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_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, 'pht': 3726}}" where mtr_portfolio_id = 29466080 and dashboard_run_id = 2752760 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`=29466080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425670, 0.06759115814493749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, '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 = 29470041 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': 4235227, 'mtr_portfolio_id': 29470041, 'created_at': datetime.datetime(2025, 12, 16, 14, 36, 59), 'result': '0.022454741465041957', 'result_long': None, 'result_double': None}] Qualite : 0.022454741465041957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470041_16-12-2025_14_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470041 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_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, 'pht': 3726}}" where mtr_portfolio_id = 29470041 and dashboard_run_id = 2752760 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`=29470041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425671, 0.022454741465041957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, '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 = 29470258 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': 4235276, 'mtr_portfolio_id': 29470258, 'created_at': datetime.datetime(2025, 12, 16, 14, 48, 57), 'result': '0.05433634818256105', 'result_long': None, 'result_double': None}] Qualite : 0.05433634818256105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470258_16-12-2025_14_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470258 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_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, 'pht': 3726}}" where mtr_portfolio_id = 29470258 and dashboard_run_id = 2752760 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`=29470258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425672, 0.05433634818256105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, '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 = 29470785 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': 4235310, 'mtr_portfolio_id': 29470785, 'created_at': datetime.datetime(2025, 12, 16, 15, 3, 30), 'result': '0.05749847750807046', 'result_long': None, 'result_double': None}] Qualite : 0.05749847750807046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470785_16-12-2025_15_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470785 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_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, 'pht': 3726}}" where mtr_portfolio_id = 29470785 and dashboard_run_id = 2752760 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`=29470785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425673, 0.05749847750807046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, '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 = 29471232 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': 4235363, 'mtr_portfolio_id': 29471232, 'created_at': datetime.datetime(2025, 12, 16, 15, 17), 'result': '0.053062620065214436', 'result_long': None, 'result_double': None}] Qualite : 0.053062620065214436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29471232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471232_16-12-2025_15_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29471232 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_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, 'pht': 3726}}" where mtr_portfolio_id = 29471232 and dashboard_run_id = 2752760 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`=29471232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425674, 0.053062620065214436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, '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 = 29471637 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': 4235412, 'mtr_portfolio_id': 29471637, 'created_at': datetime.datetime(2025, 12, 16, 15, 32, 59), 'result': '0.053312480759833476', 'result_long': None, 'result_double': None}] Qualite : 0.053312480759833476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29471637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471637_16-12-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29471637 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_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, 'pht': 3726}}" where mtr_portfolio_id = 29471637 and dashboard_run_id = 2752760 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`=29471637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425675, 0.053312480759833476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, '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 = 29472066 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': 4235496, 'mtr_portfolio_id': 29472066, 'created_at': datetime.datetime(2025, 12, 16, 15, 41), 'result': '0.04228141787738014', 'result_long': None, 'result_double': None}] Qualite : 0.04228141787738014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29472066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29472066 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_P29472066_16-12-2025_15_41_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, 'pht': 3726}}" where mtr_portfolio_id = 29472066 and dashboard_run_id = 2752760 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`=29472066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18425676, 0.04228141787738014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_41_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, '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 (29450388,29450996,29451566,29452103,29453332,29453728,29454116,29454690,29455111,29455589,29455995,29456570,29456741,29457104,29457750,29459040,29459313,29459681,29460076,29460421,29460888,29461351,29461970,29462429,29462984,29463487,29464019,29464427,29464951,29465543,29466080,29470041,29470258,29470785,29471232,29471637,29472066) result : ((1399569775,), (1399569840,), (1399569914,), (1399569963,), (1399570004,), (1399570079,), (1399570082,), (1399570115,), (1399570158,), (1399570440,), (1399570473,), (1399570509,), (1399570540,), (1399570781,), (1399570794,), (1399570799,), (1399570816,), (1399570840,), (1399570850,), (1399570857,), (1399570858,), (1399570859,), (1399570860,), (1399570863,), (1399570873,), (1399570874,), (1399570875,), (1399570876,), (1399570879,), (1399571005,), (1399571039,), (1399571074,), (1399571109,), (1399571144,), (1399571180,), (1399571473,), (1399571474,), (1399571475,), (1399571476,), (1399571629,), (1399571630,), (1399571631,), (1399571632,), (1399571634,), (1399571636,), (1399571669,), (1399571670,), (1399571671,), (1399571701,), (1399571758,), (1399571822,), (1399571881,), (1399571945,), (1399572326,), (1399572363,), (1399572393,), (1399572424,), (1399572457,), (1399572701,), (1399572702,), (1399572703,), (1399572792,), (1399572827,), (1399572856,), (1399572888,), (1399572921,), (1399573118,), (1399573152,), (1399573155,), (1399573156,), (1399573186,), (1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,), (1399573487,), (1399573488,), (1399573489,), (1399573490,), (1399573492,), (1399573494,), (1399573505,), (1399573507,), (1399573509,), (1399573510,), (1399573512,), (1399573514,), (1399573528,), (1399573530,), (1399573531,), (1399573532,), (1399573558,), (1399573560,), (1399573571,), (1399573572,), (1399573576,), (1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,), (1399575433,), (1399575444,), (1399575446,), (1399575447,), (1399575608,), (1399575643,), (1399575646,), (1399575649,), (1399575652,), (1399575655,), (1399575677,), (1399575679,), (1399575681,), (1399575695,), (1399575696,), (1399575697,), (1399575698,), (1399575701,), (1399575728,), (1399575729,), (1399575757,), (1399575788,), (1399575827,), (1399576183,), (1399576216,), (1399576249,), (1399576628,), (1399576629,), (1399576630,), (1399576631,), (1399576634,), (1399576637,), (1399576852,), (1399576860,), (1399576861,), (1399576983,), (1399576984,), (1399577593,), (1399579074,), (1399579221,), (1399579223,), (1399579264,), (1399581480,), (1399581479,), (1399581490,), (1399581491,), (1399581492,), (1399581493,), (1399581504,), (1399581505,), (1399581506,), (1399581509,), (1399581514,), (1399581528,), (1399581543,), (1399581544,), (1399581545,), (1399581559,), (1399581560,), (1399581561,), (1399581562,), (1399581578,), (1399581579,), (1399581580,), (1399581581,), (1399581584,), (1399581596,), (1399581597,), (1399581598,), (1399581599,), (1399581619,), (1399581620,), (1399581621,), (1399581622,), (1399581625,), (1399581633,), (1399581634,), (1399581635,), (1399581636,), (1399581638,), (1399581670,), (1399581671,), (1399581672,), (1399581673,), (1399581691,), (1399581692,), (1399581693,), (1399581694,), (1399581695,), (1399581714,), (1399581715,), (1399581716,), (1399581727,), (1399581728,), (1399581729,), (1399581730,), (1399581733,), (1399581735,), (1399581748,), (1399581749,), (1399581750,), (1399581751,), (1399581753,), (1399581756,), (1399581766,), (1399581767,), (1399581768,), (1399581807,), (1399581801,), (1399581802,), (1399581803,), (1399581804,), (1399581818,), (1399581819,), (1399581820,), (1399581821,), (1399581844,), (1399581845,), (1399581846,), (1399581847,), (1399581860,), (1399581862,), (1399581864,), (1399581868,), (1399581890,), (1399581891,), (1399581892,), (1399581893,), (1399581903,), (1399581904,), (1399581905,), (1399581906,), (1399581930,), (1399581931,), (1399581932,), (1399581933,), (1399581935,), (1399581953,), (1399581954,), (1399581955,), (1399581956,), (1399581958,), (1399581961,), (1399581971,), (1399581972,), (1399581973,), (1399581974,), (1399581987,), (1399581989,), (1399581991,), (1399581996,), (1399581999,), (1399582008,), (1399582009,), (1399582010,), (1399582011,), (1399582014,), (1399582029,), (1399582034,), (1399582035,), (1399582036,), (1399582095,), (1399582126,), (1399582160,), (1399582825,), (1399582829,), (1399582832,), (1399582835,), (1399582838,), (1399582861,), (1399582860,), (1399582882,), (1399582906,), (1399582938,), (1399582971,), (1399583005,), (1399583041,), (1399583356,), (1399583390,), (1399583423,), (1399583457,), (1399583492,), (1399583527,), (1399583718,), (1399583719,), (1399583949,), (1399583950,), (1399583964,), (1399583997,), (1399584007,), (1399584020,), (1399584075,), (1399584076,), (1399584077,), (1399584078,), (1399584081,), (1399584365,), (1399584399,), (1399584433,), (1399584466,), (1399584504,), (1399584541,), (1399584677,), (1399584714,), (1399584874,), (1399584907,), (1399584947,), (1399584985,), (1399585026,), (1399585184,), (1399585200,), (1399585214,), (1399585229,), (1399585235,), (1399585238,), (1399585245,), (1399585246,), (1399585247,), (1399585267,), (1399585277,), (1399585278,), (1399585279,), (1399585282,), (1399585306,), (1399585308,), (1399585309,), (1399585310,), (1399585334,), (1399585335,), (1399585336,), (1399585337,), (1399585351,), (1399585353,), (1399585355,), (1399585359,), (1399585397,), (1399585388,), (1399585390,), (1399585392,), (1399585394,), (1399585413,), (1399585414,), (1399585415,), (1399585416,), (1399585418,), (1399585451,), (1399585452,), (1399585453,), (1399585454,), (1399585473,), (1399585474,), (1399585475,), (1399585505,), (1399585506,), (1399585507,), (1399585526,), (1399585527,), (1399585528,), (1399585529,), (1399585532,), (1399585567,), (1399585568,), (1399585569,), (1399585570,), (1399585572,), (1399585585,), (1399585700,), (1399585701,), (1399585702,), (1399585703,), (1399585738,), (1399585739,), (1399585756,), (1399585758,), (1399585786,), (1399585787,), (1399585789,), (1399585790,), (1399585817,), (1399585813,), (1399585815,), (1399585816,), (1399585846,), (1399585847,), (1399585848,), (1399585849,), (1399585868,), (1399585869,), (1399585870,), (1399585899,), (1399585900,), (1399585901,), (1399585902,), (1399585905,), (1399585918,), (1399585919,), (1399585920,), (1399585921,), (1399585953,), (1399585954,), (1399585955,), (1399585956,), (1399585971,), (1399585972,), (1399585976,), (1399585980,), (1399585990,), (1399585991,), (1399586011,), (1399586012,), (1399586013,), (1399586036,), (1399586037,), (1399586038,), (1399586039,), (1399586042,), (1399586061,), (1399586063,), (1399586065,), (1399586069,), (1399586073,), (1399586095,), (1399586096,), (1399586097,), (1399586113,), (1399586114,), (1399586115,), (1399586116,), (1399586137,), (1399586138,), (1399586139,), (1399586140,), (1399586142,), (1399586144,), (1399586160,), (1399586163,), (1399586165,), (1399586202,), (1399586198,), (1399586199,), (1399586200,), (1399586201,), (1399586214,), (1399586216,), (1399586218,), (1399586222,), (1399586226,), (1399586229,), (1399586237,), (1399586238,), (1399586239,), (1399586240,), (1399586243,), (1399586246,), (1399586264,), (1399586265,), (1399586266,), (1399586300,), (1399586301,), (1399586302,), (1399586303,), (1399586305,), (1399586307,), (1399586324,), (1399586325,), (1399586326,), (1399586327,), (1399586329,), (1399586330,), (1399586350,), (1399586353,), (1399586354,), (1399586367,), (1399586368,), (1399586369,), (1399586370,), (1399586373,), (1399586392,), (1399586393,), (1399586394,), (1399586395,), (1399586398,), (1399586411,), (1399586412,), (1399586413,), (1399586430,), (1399586432,), (1399586433,), (1399586434,), (1399586437,), (1399586453,), (1399586454,), (1399586455,), (1399586456,), (1399586459,), (1399586484,), (1399586486,), (1399586487,), (1399586504,), (1399586537,), (1399586575,), (1399586933,), (1399586968,), (1399587094,), (1399587133,), (1399587171,), (1399587718,), (1399587614,), (1399587648,), (1399587683,), (1399588157,), (1399588176,), (1399588178,), (1399588203,), (1399588246,), (1399588325,), (1399588327,), (1399588329,), (1399588331,), (1399588360,), (1399588362,), (1399588363,), (1399588364,), (1399588366,), (1399588367,), (1399588379,), (1399588380,), (1399588381,), (1399588382,), (1399588385,), (1399588388,), (1399588406,), (1399588408,), (1399588409,), (1399588436,), (1399588437,), (1399588438,), (1399588439,), (1399588442,), (1399588444,), (1399588464,), (1399588466,), (1399588467,), (1399588468,), (1399588471,), (1399588480,), (1399588482,), (1399588484,), (1399588488,), (1399588509,), (1399588510,), (1399588511,), (1399588512,), (1399588515,), (1399588518,), (1399588532,), (1399588533,), (1399588534,), (1399588554,), (1399588555,), (1399588556,), (1399588557,), (1399588560,), (1399588578,), (1399588579,), (1399588580,), (1399588581,), (1399588583,), (1399588585,), (1399588610,), (1399588614,), (1399588615,), (1399588616,), (1399588636,), (1399588638,), (1399588640,), (1399588643,), (1399588681,), (1399588676,), (1399588679,), (1399588680,), (1399588695,), (1399588697,), (1399588699,), (1399588701,), (1399588704,), (1399588716,), (1399588717,), (1399588718,), (1399588719,), (1399588735,), (1399588736,), (1399588737,), (1399588738,), (1399588741,), (1399588744,), (1399588754,), (1399588755,), (1399588756,), (1399588757,), (1399588771,), (1399588773,), (1399588775,), (1399588779,), (1399588791,), (1399588792,), (1399588793,), (1399588794,), (1399588796,), (1399588808,), (1399588809,), (1399588810,), (1399588811,), (1399588823,), (1399588824,), (1399588825,), (1399588826,), (1399588828,), (1399588842,), (1399588843,), (1399588844,), (1399588845,), (1399588848,), (1399588851,), (1399588862,), (1399588863,), (1399588864,), (1399588865,), (1399588878,), (1399588879,), (1399588880,), (1399588881,), (1399588894,), (1399588895,), (1399588896,), (1399588897,), (1399588900,), (1399588910,), (1399588911,), (1399588912,), (1399588913,), (1399588925,), (1399588926,), (1399588927,), (1399588930,), (1399588933,), (1399588936,), (1399588940,), (1399588941,), (1399588950,), (1399588942,), (1399588943,), (1399588944,), (1399588947,), (1399588961,), (1399588962,), (1399588963,), (1399588964,), (1399588975,), (1399588976,), (1399588977,), (1399588978,), (1399588981,), (1399588983,), (1399588991,), (1399588992,), (1399588993,), (1399588994,), (1399588997,), (1399589009,), (1399589010,), (1399589011,), (1399589012,), (1399589022,), (1399589023,), (1399589024,), (1399589025,), (1399589028,), (1399589041,), (1399589042,), (1399589043,), (1399589044,), (1399589047,), (1399589059,), (1399589060,), (1399589061,), (1399589062,), (1399589064,), (1399589076,), (1399589077,), (1399589078,), (1399589079,), (1399589082,), (1399589085,), (1399589092,), (1399589093,), (1399589104,), (1399589105,), (1399589106,), (1399589107,), (1399589124,), (1399589126,), (1399589127,), (1399589128,), (1399589131,), (1399589167,), (1399589171,), (1399589172,), (1399589173,), (1399589199,), (1399589200,), (1399589201,), (1399589202,), (1399589205,), (1399589218,), (1399589223,), (1399589225,), (1399589226,), (1399589229,), (1399589271,), (1399589269,), (1399589270,), (1399589288,), (1399589289,), (1399589291,), (1399589292,), (1399589295,), (1399589298,), (1399589315,), (1399589316,), (1399589317,), (1399589318,), (1399589321,), (1399589324,), (1399589345,), (1399589346,), (1399589347,), (1399589365,), (1399589366,), (1399589367,), (1399589368,), (1399589371,), (1399589374,), (1399589386,), (1399589387,), (1399589388,), (1399589389,), (1399589392,), (1399589417,), (1399589418,), (1399589419,), (1399589420,), (1399589449,), (1399589450,), (1399589451,), (1399589452,), (1399589455,), (1399589473,), (1399589474,), (1399589475,), (1399589476,), (1399589502,), (1399589503,), (1399589504,), (1399589505,), (1399589522,), (1399589523,), (1399589524,), (1399589525,), (1399589528,), (1399589538,), (1399589540,), (1399589542,), (1399589546,), (1399589550,), (1399589583,), (1399589584,), (1399589585,), (1399589586,), (1399589589,), (1399589592,), (1399589813,), (1399589815,), (1399589818,), (1399589822,), (1399589824,), (1399589829,), (1399589831,), (1399589839,), (1399589842,), (1399589875,), (1399589856,), (1399589860,), (1399589864,), (1399589868,), (1399589872,), (1399589889,), (1399589895,), (1399589897,), (1399589923,), (1399589924,), (1399589925,), (1399589926,), (1399589960,), (1399589961,), (1399589962,), (1399589963,), (1399589979,), (1399590005,), (1399590031,), (1399590062,), (1399590093,), (1399590415,), (1399590443,), (1399590468,), (1399590496,), (1399590758,), (1399590788,), (1399590809,), (1399590829,), (1399590860,), (1399591336,), (1399591365,), (1399591368,), (1399591369,), (1399591390,), (1399591458,), (1399591622,), (1399591623,), (1399591624,), (1399591625,), (1399591628,), (1399591630,), (1399591660,), (1399591663,), (1399591664,), (1399591686,), (1399593533,), (1399593851,), (1399594824,), (1399594825,), (1399594826,), (1399594840,), (1399594841,), (1399594843,), (1399594845,), (1399594848,), (1399594850,), (1399594863,), (1399594865,), (1399594867,), (1399594871,), (1399594874,), (1399594877,), (1399594894,), (1399594896,), (1399594898,), (1399594909,), (1399594910,), (1399594911,), (1399594912,), (1399594914,), (1399594944,), (1399594945,), (1399594946,), (1399594947,), (1399594950,), (1399594953,), (1399594971,), (1399594972,), (1399594973,), (1399594974,), (1399594997,), (1399594998,), (1399594999,), (1399595000,), (1399595003,), (1399595006,), (1399595016,), (1399595017,), (1399595018,), (1399595019,), (1399595022,), (1399595025,), (1399595049,), (1399595043,), (1399595044,), (1399595045,), (1399595046,), (1399595059,), (1399595060,), (1399595061,), (1399595062,), (1399595064,), (1399595066,), (1399595100,), (1399595106,), (1399595108,), (1399595109,), (1399595130,), (1399595131,), (1399595132,), (1399595133,), (1399595136,), (1399595139,), (1399595170,), (1399595183,), (1399595186,), (1399595198,), (1399595199,), (1399595200,), (1399595227,), (1399595228,), (1399595246,), (1399595305,), (1399595315,), (1399595339,), (1399595340,), (1399595342,), (1399595344,), (1399595375,), (1399595377,), (1399595379,), (1399595393,), (1399595395,), (1399595420,), (1399595421,), (1399595423,), (1399595450,), (1399595446,), (1399595448,), (1399595483,), (1399595484,), (1399595496,), (1399595497,), (1399595498,), (1399595499,), (1399595502,), (1399595526,), (1399595527,), (1399595528,), (1399595529,), (1399595532,), (1399595540,), (1399595541,), (1399595542,), (1399595543,), (1399595545,), (1399595574,), (1399595576,), (1399595577,), (1399595578,), (1399595580,), (1399595598,), (1399595599,), (1399595600,), (1399595601,), (1399595604,), (1399595622,), (1399595624,), (1399595626,), (1399595642,), (1399595643,), (1399595644,), (1399595645,), (1399595683,), (1399595684,), (1399595685,), (1399595686,), (1399595689,), (1399595704,), (1399595705,), (1399595706,), (1399595707,), (1399595733,), (1399595734,), (1399595735,), (1399595756,), (1399595757,), (1399595758,), (1399595777,), (1399595832,), (1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,), (1399596118,), (1399596119,), (1399596137,), (1399596170,), (1399596201,), (1399596335,), (1399596337,), (1399596338,), (1399596340,), (1399596343,), (1399596346,), (1399596363,), (1399596367,), (1399596370,), (1399596374,), (1399596376,), (1399596399,), (1399596393,), (1399596395,), (1399596397,), (1399596605,), (1399596637,), (1399596672,), (1399596704,), (1399596737,), (1399596770,), (1399597090,), (1399597122,), (1399597154,), (1399597186,), (1399597341,), (1399597342,), (1399597343,), (1399597595,), (1399597628,), (1399597641,), (1399597643,), (1399597666,), (1399597700,), (1399597701,), (1399597702,), (1399597703,), (1399597706,), (1399597730,), (1399597731,), (1399597757,), (1399597758,), (1399597759,), (1399597774,), (1399597776,), (1399597777,), (1399597779,), (1399597782,), (1399597802,), (1399597803,), (1399597804,), (1399597805,), (1399597808,), (1399597820,), (1399597821,), (1399597822,), (1399597845,), (1399597846,), (1399597847,), (1399597848,), (1399597850,), (1399597876,), (1399597877,), (1399597878,), (1399597879,), (1399597881,), (1399597900,), (1399597901,), (1399597902,), (1399597903,), (1399597906,), (1399597909,), (1399597926,), (1399597930,), (1399597933,), (1399597956,), (1399597950,), (1399597951,), (1399597952,), (1399597953,), (1399597975,), (1399597976,), (1399597977,), (1399597978,), (1399598006,), (1399598008,), (1399598010,), (1399598011,), (1399598027,), (1399598028,), (1399598029,), (1399598030,), (1399598032,), (1399598064,), (1399598066,), (1399598082,), (1399598083,), (1399598116,), (1399598119,), (1399598121,), (1399598123,), (1399598126,), (1399598140,), (1399598141,), (1399598142,), (1399598143,), (1399598146,), (1399598172,), (1399598173,), (1399598174,), (1399598175,), (1399598209,), (1399598213,), (1399598214,), (1399598215,), (1399598235,), (1399598236,), (1399598237,), (1399598266,), (1399598268,), (1399598270,), (1399598274,), (1399598278,), (1399598329,), (1399598332,), (1399598334,), (1399598338,), (1399598356,), (1399598357,), (1399598358,), (1399598392,), (1399598393,), (1399598395,), (1399598396,), (1399598438,), (1399598415,), (1399598418,), (1399598426,), (1399598432,), (1399598435,), (1399598442,), (1399598444,), (1399598446,), (1399598469,), (1399598470,), (1399598471,), (1399598472,), (1399598524,), (1399598527,), (1399598529,), (1399598531,), (1399598534,), (1399598535,), (1399598550,), (1399598552,), (1399598553,), (1399598556,), (1399598559,), (1399598562,), (1399598583,), (1399598591,), (1399598622,), (1399598624,), (1399598626,), (1399598661,), (1399598663,), (1399598665,), (1399598688,), (1399598689,), (1399598690,), (1399598691,), (1399598725,), (1399598745,), (1399598747,), (1399598749,), (1399598785,), (1399598787,), (1399598789,), (1399598791,), (1399598794,), (1399598807,), (1399598808,), (1399598809,), (1399598810,), (1399598836,), (1399598841,), (1399598863,), (1399598866,), (1399598868,), (1399598872,), (1399598877,), (1399598919,), (1399598903,), (1399598905,), (1399598907,), (1399598911,), (1399598916,), (1399598933,), (1399598934,), (1399598935,), (1399598975,), (1399598976,), (1399598977,), (1399598997,), (1399598999,), (1399599001,), (1399599002,), (1399599004,), (1399599027,), (1399599029,), (1399599031,), (1399599032,), (1399599035,), (1399599056,), (1399599057,), (1399599058,), (1399599059,), (1399599062,), (1399599105,), (1399599126,), (1399599128,), (1399599155,), (1399599157,), (1399599181,), (1399599183,), (1399599185,), (1399599189,), (1399599193,), (1399599201,), (1399599203,), (1399599205,), (1399599235,), (1399599236,), (1399599251,), (1399599255,), (1399599260,), (1399599294,), (1399599282,), (1399599284,), (1399599287,), (1399599290,), (1399599308,), (1399599310,), (1399599312,), (1399599314,), (1399599335,), (1399599337,), (1399599341,), (1399599345,), (1399599350,), (1399599361,), (1399599370,), (1399599371,), (1399599373,), (1399599375,), (1399599381,), (1399599382,), (1399599384,), (1399599396,), (1399599397,), (1399599398,), (1399599399,), (1399599401,), (1399599633,), (1399599665,), (1399599679,), (1399599729,), (1399599735,), (1399599736,), (1399599737,), (1399599740,), (1399599741,), (1399599758,), (1399599760,), (1399599762,), (1399599799,), (1399599800,), (1399599801,), (1399599802,), (1399599804,), (1399599814,), (1399600046,), (1399602790,), (1399602770,), (1399602787,), (1399602812,), (1399602814,), (1399602816,), (1399602818,), (1399602821,), (1399602835,), (1399602836,), (1399602841,), (1399602875,), (1399602885,), (1399602889,), (1399602892,), (1399602928,), (1399602941,), (1399602960,), (1399602961,), (1399602964,), (1399602981,), (1399602982,), (1399602983,), (1399602986,), (1399602989,), (1399602992,), (1399602999,), (1399603000,), (1399603023,), (1399603025,), (1399603031,), (1399603034,), (1399603037,), (1399603039,), (1399603051,), (1399603053,), (1399603055,), (1399603057,), (1399603061,), (1399603098,), (1399603099,), (1399603100,), (1399603415,), (1399603418,), (1399603421,), (1399603425,), (1399603429,), (1399603432,), (1399603646,), (1399603651,), (1399603653,), (1399603676,), (1399603798,), (1399603817,), (1399603854,), (1399604120,), (1399604122,), (1399604125,), (1399604127,), (1399604129,), (1399604383,), (1399604216,), (1399604246,), (1399604278,), (1399604309,), (1399604348,), (1399604442,), (1399604443,), (1399604444,), (1399604445,), (1399604448,), (1399604468,), (1399604471,), (1399604754,), (1399604755,), (1399604756,), (1399604921,), (1399604922,), (1399604923,), (1399604924,), (1399604927,), (1399605083,), (1399605085,), (1399605110,), (1399605119,), (1399605137,), (1399605138,), (1399605139,), (1399605165,), (1399605166,), (1399605167,), (1399605168,), (1399605184,), (1399605186,), (1399605188,), (1399605190,), (1399605223,), (1399605225,), (1399605227,), (1399605230,), (1399605234,), (1399605238,), (1399605249,), (1399605256,), (1399605258,), (1399605260,), (1399605262,), (1399605305,), (1399605306,), (1399605307,), (1399605308,), (1399605453,), (1399605455,), (1399605457,), (1399605483,), (1399605516,), (1399605536,), (1399605581,), (1399605586,), (1399605597,), (1399605598,), (1399605599,), (1399605602,), (1399605605,), (1399605620,), (1399605622,), (1399605625,), (1399605627,), (1399605668,), (1399605662,), (1399605663,), (1399605664,), (1399605665,), (1399605688,), (1399605697,), (1399605700,), (1399605730,), (1399605731,), (1399605732,), (1399605733,), (1399605748,), (1399605749,), (1399605750,), (1399605751,), (1399605770,), (1399605771,), (1399605772,), (1399605793,), (1399605795,), (1399605825,), (1399605828,), (1399605830,), (1399605832,), (1399605847,), (1399605849,), (1399605852,), (1399605856,), (1399605861,), (1399605869,), (1399605880,), (1399605885,), (1399605887,), (1399605895,), (1399605898,), (1399605903,), (1399605907,), (1399605912,), (1399605917,), (1399605919,), (1399605921,), (1399605949,), (1399605950,), (1399605951,), (1399605952,), (1399605968,), (1399605970,), (1399605972,), (1399605973,), (1399605975,), (1399605992,), (1399605993,), (1399605994,), (1399605995,), (1399605998,), (1399606835,), (1399606838,), (1399606848,), (1399606960,), (1399606962,), (1399607007,), (1399607017,), (1399607055,), (1399607063,), (1399607092,), (1399607099,), (1399607113,), (1399607114,), (1399607227,), (1399607163,), (1399607188,), (1399607190,), (1399607199,), (1399607247,), (1399607249,), (1399607610,), (1399607644,), (1399607674,), (1399607708,), (1399608099,), (1399608131,), (1399608143,), (1399608144,), (1399608242,), (1399608275,), (1399608308,), (1399608339,), (1399608371,), (1399608529,), (1399608544,), (1399608550,), (1399608551,), (1399608553,), (1399608575,), (1399608576,), (1399608578,), (1399608607,), (1399608623,), (1399608624,), (1399608625,), (1399608647,), (1399608649,), (1399608651,), (1399608652,), (1399608665,), (1399608667,), (1399608669,), (1399608671,), (1399608674,), (1399608703,), (1399608705,), (1399608706,), (1399608708,), (1399608712,), (1399608736,), (1399608738,), (1399608740,), (1399608778,), (1399608779,), (1399608780,), (1399608781,), (1399608783,), (1399608784,), (1399608804,), (1399608806,), (1399608808,), (1399608810,), (1399608813,), (1399608837,), (1399608831,), (1399608833,), (1399608835,), (1399608854,), (1399608855,), (1399608856,), (1399608857,), (1399608880,), (1399608882,), (1399608884,), (1399608887,), (1399608908,), (1399608909,), (1399608910,), (1399608911,), (1399608938,), (1399608940,), (1399608942,), (1399608960,), (1399608961,), (1399609006,), (1399609009,), (1399609011,), (1399609013,), (1399609031,), (1399609032,), (1399609033,), (1399609036,), (1399609039,), (1399609042,), (1399609113,), (1399609146,), (1399609179,), (1399609327,), (1399609342,), (1399609344,), (1399609347,), (1399609356,), (1399609511,), (1399609512,), (1399609514,), (1399609552,), (1399609553,), (1399609554,), (1399609555,), (1399609575,), (1399609577,), (1399609579,), (1399609581,), (1399609623,), (1399609625,), (1399609627,), (1399609629,), (1399609653,), (1399609655,), (1399609657,), (1399609659,), (1399609685,), (1399609687,), (1399609689,), (1399609690,), (1399609692,), (1399609741,), (1399609733,), (1399609735,), (1399609737,), (1399609739,), (1399609772,), (1399609774,), (1399609775,), (1399609776,), (1399609778,), (1399609794,), (1399609795,), (1399609796,), (1399609797,), (1399609800,), (1399609831,), (1399609836,), (1399609838,), (1399609853,), (1399609855,), (1399609857,), (1399609861,), (1399609877,), (1399609878,), (1399609879,), (1399609898,), (1399609899,), (1399609901,), (1399609934,), (1399610047,), (1399610233,), (1399610442,), (1399610476,), (1399610481,), (1399610580,), (1399610581,), (1399611077,), (1399611193,), (1399611224,), (1399611253,), (1399611518,), (1399611520,), (1399611536,), (1399611538,), (1399611540,), (1399611542,), (1399611545,), (1399611559,), (1399611560,), (1399611561,), (1399611587,), (1399611588,), (1399611590,), (1399611635,), (1399611642,), (1399611683,), (1399611685,), (1399611687,), (1399611689,), (1399611692,), (1399611706,), (1399611708,), (1399611710,), (1399611714,), (1399611718,), (1399611748,), (1399611750,), (1399611752,), (1399611754,), (1399611757,), (1399611767,), (1399658660,), (1399658658,), (1399658880,), (1399658883,), (1399659048,), (1399659084,), (1399659563,), (1399659616,), (1399659617,), (1399659992,), (1399659990,), (1399660246,), (1399660248,), (1399660275,), (1399660276,), (1399660357,), (1399660360,), (1399660363,), (1399660420,), (1399660452,), (1399660485,), (1399660522,), (1399660961,), (1399661068,), (1399661070,), (1399661072,), (1399661074,), (1399661149,), (1399661182,), (1399661218,), (1399661371,), (1399661373,), (1399661375,), (1399661377,), (1399661627,), (1399661630,), (1399661632,), (1399661640,), (1399661664,), (1399661668,), (1399661682,), (1399661726,), (1399661787,), (1399662004,), (1399662034,), (1399662046,), (1399662287,), (1399662346,), (1399662324,), (1399662326,), (1399662328,), (1399662330,), (1399662339,), (1399662356,), (1399662358,), (1399662360,), (1399662363,), (1399662366,), (1399662375,), (1399662377,), (1399662378,), (1399662380,), (1399662383,), (1399662720,), (1399662754,), (1399663096,), (1399663124,), (1399663156,), (1399663192,), (1399663258,), (1399663474,), (1399663475,), (1399663476,), (1399663477,), (1399663480,), (1399663516,), (1399663517,), (1399663518,), (1399663519,), (1399663534,), (1399663536,), (1399663538,), (1399663540,), (1399663570,), (1399663572,), (1399663597,), (1399663599,), (1399663601,), (1399663603,), (1399663638,), (1399663639,), (1399663641,), (1399663643,), (1399663646,), (1399663649,), (1399663660,), (1399663662,), (1399663664,), (1399663666,), (1399663670,), (1399663692,), (1399663694,), (1399663696,), (1399663698,), (1399663731,), (1399663735,), (1399663738,), (1399663777,), (1399663769,), (1399663771,), (1399663773,), (1399663796,), (1399663798,), (1399663800,), (1399663802,), (1399663805,), (1399663819,), (1399663820,), (1399663850,), (1399663856,), (1399663858,), (1399663860,), (1399663863,), (1399663866,), (1399663879,), (1399663880,), (1399663881,), (1399663882,), (1399663884,), (1399663886,), (1399663949,), (1399663952,), (1399663976,), (1399663977,), (1399663978,), (1399663979,), (1399663982,), (1399663984,), (1399664010,), (1399664012,), (1399664014,), (1399664016,), (1399664029,), (1399664030,), (1399664032,), (1399664034,), (1399664065,), (1399664067,), (1399664069,), (1399664087,), (1399664088,), (1399664089,), (1399664090,), (1399664093,), (1399664096,), (1399664139,), (1399664141,), (1399664142,), (1399664144,), (1399664147,), (1399664175,), (1399664176,), (1399664178,), (1399664180,), (1399664183,), (1399664185,), (1399664215,), (1399664219,), (1399664258,), (1399664261,), (1399664262,), (1399664263,), (1399664266,), (1399664280,), (1399664282,), (1399664285,), (1399664287,), (1399664290,), (1399664294,), (1399664309,), (1399664307,), (1399664308,), (1399664324,), (1399664325,), (1399664326,), (1399664327,), (1399664330,), (1399664333,), (1399664361,), (1399664362,), (1399664364,), (1399664368,), (1399664371,), (1399664374,), (1399664384,), (1399664386,), (1399664388,), (1399664390,), (1399664391,), (1399664393,), (1399664396,), (1399664399,), (1399664425,), (1399664426,), (1399664427,), (1399664428,), (1399664431,), (1399664448,), (1399664449,), (1399664450,), (1399664451,), (1399664454,), (1399664457,), (1399664515,), (1399664516,), (1399664517,), (1399664518,), (1399664521,), (1399664523,), (1399664536,), (1399664537,), (1399664538,), (1399664568,), (1399664569,), (1399664570,), (1399664573,), (1399664576,), (1399664579,), (1399664591,), (1399664594,), (1399664597,), (1399664601,), (1399664602,), (1399664603,), (1399664606,), (1399664632,), (1399664633,), (1399664634,), (1399664635,), (1399664638,), (1399664650,), (1399664651,), (1399664652,), (1399664653,), (1399664656,), (1399664677,), (1399664678,), (1399664685,), (1399664690,), (1399664700,), (1399664703,), (1399664707,), (1399664708,), (1399664709,), (1399664710,), (1399664711,), (1399664712,), (1399664713,), (1399664737,), (1399664744,), (1399664746,), (1399664747,), (1399664750,), (1399664754,), (1399664772,), (1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16122025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29472066]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] map_info['map_portfolio_photo'] : {29472066: [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987, 1399664957, 1399664955, 1399664952, 1399664924, 1399664921, 1399664916, 1399664914, 1399664912, 1399664910, 1399664867, 1399664858, 1399664851, 1399664850, 1399664849, 1399664848, 1399664847, 1399664846, 1399664840, 1399664837, 1399664834, 1399664831, 1399664830, 1399664829, 1399664817, 1399664814, 1399664813, 1399664812, 1399664811, 1399664794, 1399664792, 1399664790, 1399664788, 1399664771, 1399664769, 1399664767]} final : True mtd_id 4302 list_pids : [1399665011, 1399665007, 1399665005, 1399665004, 1399665003, 1399664999, 1399664997, 1399664994, 1399664991, 1399664988, 1399664987] Looping around the photos to save general results len do output : 1 /29472066Didn'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, '4235496') ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496') ('4302', None, None, None, None, None, None, None, '4235496') ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29472066', 'None', None, None, None, None, '4235496'), ('4302', '29472066', '1399665011', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665007', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665005', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665004', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399665003', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664999', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664997', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664994', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664991', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664988', None, None, None, None, None, '4235496'), ('4302', '29472066', '1399664987', None, None, None, None, None, '4235496')] time used for this insertion : 0.015784263610839844 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8219962120056152 time spend to save output : 0.016005516052246094 total time spend for step 5 : 3.8380017280578613 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 (4235496) 2.20user 2.28system 0:12.53elapsed 35%CPU (0avgtext+0avgdata 166380maxresident)k 13128inputs+10632outputs (108major+81964minor)pagefaults 0swaps