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 : 4050159 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 (4291015) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4291015) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823135 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4291015'] with mtr_portfolio_ids : ['29823135'] and first list_photo_ids : [] new path : /proc/4050159/ Name: python3 Umask: 0002 State: R (running) Tgid: 4050159 Ngid: 0 Pid: 4050159 PPid: 4050158 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4050159 NSpid: 4050159 NSpgid: 4048599 NSsid: 4048599 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105364 kB VmRSS: 105364 kB RssAnon: 66304 kB RssFile: 39060 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 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: 62 nonvoluntary_ctxt_switches: 161 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4050159', 'Ngid': '0', 'Pid': '4050159', 'PPid': '4050158', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4050159', 'NSpid': '4050159', 'NSpgid': '4048599', 'NSsid': '4048599', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105364 kB', 'VmRSS': '105364 kB', 'RssAnon': '66304 kB', 'RssFile': '39060 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 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': '62', 'nonvoluntary_ctxt_switches': '161'} ('datou_batch_current', '4050159', '1113368', '0', '1113368', '872096', '105364', b'', 'marlene', '4291015') 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 (29823135) 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 (4291015 ) ) 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 (29823135) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401743178, 'portfolio_id': 29823135}, {'photo_id': 1401743175, 'portfolio_id': 29823135}, {'photo_id': 1401743172, 'portfolio_id': 29823135}, {'photo_id': 1401743141, 'portfolio_id': 29823135}, {'photo_id': 1401743138, 'portfolio_id': 29823135}, {'photo_id': 1401743137, 'portfolio_id': 29823135}, {'photo_id': 1401743136, 'portfolio_id': 29823135}, {'photo_id': 1401743111, 'portfolio_id': 29823135}, {'photo_id': 1401743108, 'portfolio_id': 29823135}, {'photo_id': 1401743105, 'portfolio_id': 29823135}, {'photo_id': 1401743099, 'portfolio_id': 29823135}, {'photo_id': 1401743096, 'portfolio_id': 29823135}, {'photo_id': 1401743092, 'portfolio_id': 29823135}, {'photo_id': 1401743090, 'portfolio_id': 29823135}, {'photo_id': 1401743081, 'portfolio_id': 29823135}, {'photo_id': 1401743079, 'portfolio_id': 29823135}, {'photo_id': 1401743075, 'portfolio_id': 29823135}, {'photo_id': 1401743071, 'portfolio_id': 29823135}, {'photo_id': 1401743069, 'portfolio_id': 29823135}, {'photo_id': 1401743067, 'portfolio_id': 29823135}, {'photo_id': 1401743047, 'portfolio_id': 29823135}, {'photo_id': 1401743044, 'portfolio_id': 29823135}, {'photo_id': 1401743042, 'portfolio_id': 29823135}, {'photo_id': 1401743040, 'portfolio_id': 29823135}, {'photo_id': 1401743009, 'portfolio_id': 29823135}, {'photo_id': 1401743006, 'portfolio_id': 29823135}, {'photo_id': 1401743005, 'portfolio_id': 29823135}, {'photo_id': 1401743003, 'portfolio_id': 29823135}, {'photo_id': 1401743000, 'portfolio_id': 29823135}, {'photo_id': 1401742976, 'portfolio_id': 29823135}, {'photo_id': 1401742945, 'portfolio_id': 29823135}, {'photo_id': 1401742911, 'portfolio_id': 29823135}, {'photo_id': 1401742762, 'portfolio_id': 29823135}, {'photo_id': 1401742761, 'portfolio_id': 29823135}, {'photo_id': 1401742624, 'portfolio_id': 29823135}, {'photo_id': 1401742621, 'portfolio_id': 29823135}, {'photo_id': 1401742406, 'portfolio_id': 29823135}, {'photo_id': 1401742404, 'portfolio_id': 29823135}, {'photo_id': 1401742401, 'portfolio_id': 29823135}, {'photo_id': 1401742345, 'portfolio_id': 29823135}, {'photo_id': 1401742342, 'portfolio_id': 29823135}, {'photo_id': 1401742340, 'portfolio_id': 29823135}, {'photo_id': 1401742338, 'portfolio_id': 29823135}] map_portfolio_id_photo_id: {29823135: [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105, 1401743099, 1401743096, 1401743092, 1401743090, 1401743081, 1401743079, 1401743075, 1401743071, 1401743069, 1401743067, 1401743047, 1401743044, 1401743042, 1401743040, 1401743009, 1401743006, 1401743005, 1401743003, 1401743000, 1401742976, 1401742945, 1401742911, 1401742762, 1401742761, 1401742624, 1401742621, 1401742406, 1401742404, 1401742401, 1401742345, 1401742342, 1401742340, 1401742338]} ##### 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.019075870513916016 #### 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 30 21:26: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 (29823135) 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 : 29823135 get user id for portfolio 29823135 get sub ptf for main ptf 29823135, type 3726 and hashtags ['environnement', 'papier', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'cartonnette', 'flou', 'kraft', 'metal', 'autre_refus', 'plastique'] 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`=29823135 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','cartonnette','flou','kraft','metal','autre_refus','plastique')) 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`=29823135 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','cartonnette','flou','kraft','metal','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29823135, 'sub_port_id': 29823141, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393441, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'kraft': {'main_port_id': 29823135, 'sub_port_id': 29823142, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393442, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'flou': {'main_port_id': 29823135, 'sub_port_id': 29823143, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393443, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'metal': {'main_port_id': 29823135, 'sub_port_id': 29823144, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393444, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'papier': {'main_port_id': 29823135, 'sub_port_id': 29823145, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393445, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'Carton_gris': {'main_port_id': 29823135, 'sub_port_id': 29823146, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393446, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'mal_croppe': {'main_port_id': 29823135, 'sub_port_id': 29823147, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393447, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'cartonnette': {'main_port_id': 29823135, 'sub_port_id': 29823148, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393448, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'autre_refus': {'main_port_id': 29823135, 'sub_port_id': 29823149, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393449, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'Carton_brun': {'main_port_id': 29823135, 'sub_port_id': 29823150, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393450, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'environnement': {'main_port_id': 29823135, 'sub_port_id': 29823151, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393451, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29823135, 'sub_port_id': 29823152, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393452, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823141 , 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=29823135 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 (29823141) result : ((1401743038,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823142 , 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=29823135 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 (29823142) result : ((1401743157,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823143 , 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=29823135 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 (29823143) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823144 , 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=29823135 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 (29823144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823145 , 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=29823135 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 (29823145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823146 , 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=29823135 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 (29823146) result : ((1401743017,), (1401743153,), (1401743154,), (1401743155,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823147 , 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=29823135 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 (29823147) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823148 , 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=29823135 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 (29823148) result : ((1401743019,), (1401743020,), (1401743033,), (1401743034,), (1401743035,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823149 , 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=29823135 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 (29823149) result : ((1401743015,), (1401743032,), (1401743080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823150 , 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=29823135 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 (29823150) result : ((1401743021,), (1401743022,), (1401743036,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823151 , 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=29823135 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 (29823151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29823152 , 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=29823135 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 (29823152) result : ((1401743013,), (1401743014,), (1401743030,), (1401743031,), (1401743078,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29823135) result : ((1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) 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 (1401743000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29823135 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','cartonnette','flou','kraft','metal','autre_refus','plastique')) 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`=29823135 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','Teint_Dans_La_Masse','Carton_brun','mal_croppe','Carton_gris','cartonnette','flou','kraft','metal','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29823135, 'sub_port_id': 29823160, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393453, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'kraft': {'main_port_id': 29823135, 'sub_port_id': 29823162, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393454, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'flou': {'main_port_id': 29823135, 'sub_port_id': 29823163, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393455, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'metal': {'main_port_id': 29823135, 'sub_port_id': 29823164, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393456, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'papier': {'main_port_id': 29823135, 'sub_port_id': 29823166, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393457, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'Carton_gris': {'main_port_id': 29823135, 'sub_port_id': 29823167, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393458, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'mal_croppe': {'main_port_id': 29823135, 'sub_port_id': 29823168, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393459, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'cartonnette': {'main_port_id': 29823135, 'sub_port_id': 29823170, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393460, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'autre_refus': {'main_port_id': 29823135, 'sub_port_id': 29823171, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393461, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'Carton_brun': {'main_port_id': 29823135, 'sub_port_id': 29823172, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393462, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'environnement': {'main_port_id': 29823135, 'sub_port_id': 29823174, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393463, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29823135, 'sub_port_id': 29823175, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20393464, 'last_updated_at': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 21, 24, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 21, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29823175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29823152 lien utilise dans velours : https://marlene.fotonower.com/velours/29823160,29823162,29823163,29823164,29823166,29823167,29823168,29823170,29823171,29823172,29823174,29823175?tags=plastique,kraft,flou,metal,papier,Carton_gris,mal_croppe,cartonnette,autre_refus,Carton_brun,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29823135]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] map_info['map_portfolio_photo'] : {29823135: [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105, 1401743099, 1401743096, 1401743092, 1401743090, 1401743081, 1401743079, 1401743075, 1401743071, 1401743069, 1401743067, 1401743047, 1401743044, 1401743042, 1401743040, 1401743009, 1401743006, 1401743005, 1401743003, 1401743000, 1401742976, 1401742945, 1401742911, 1401742762, 1401742761, 1401742624, 1401742621, 1401742406, 1401742404, 1401742401, 1401742345, 1401742342, 1401742340, 1401742338]} final : False mtd_id 4302 list_pids : [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] Looping around the photos to save general results len do output : 1 /29823135. 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, '4291015') ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015') 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', None, '29823135', "{'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152}", None, None, None, None, '4291015'), ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015')] time used for this insertion : 0.019650936126708984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5336413383483887 time spend to save output : 0.01992034912109375 total time spend for step 1 : 0.5535616874694824 step2:final Tue Dec 30 21:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29823135) 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 29823135 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401742345,1401742342,1401742340,1401742338,1401742406,1401742404,1401742401,1401742624,1401742621,1401742762,1401742761,1401742976,1401742945,1401742911,1401743009,1401743006,1401743005,1401743003,1401743000,1401743099,1401743047,1401743096,1401743044,1401743092,1401743042,1401743090,1401743040,1401743081,1401743079,1401743075,1401743071,1401743069,1401743067,1401743111,1401743108,1401743105,1401743141,1401743138,1401743137,1401743136,1401743178,1401743175,1401743172); 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([29823135]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} new output for save of step final : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] map_info['map_portfolio_photo'] : {29823135: [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105, 1401743099, 1401743096, 1401743092, 1401743090, 1401743081, 1401743079, 1401743075, 1401743071, 1401743069, 1401743067, 1401743047, 1401743044, 1401743042, 1401743040, 1401743009, 1401743006, 1401743005, 1401743003, 1401743000, 1401742976, 1401742945, 1401742911, 1401742762, 1401742761, 1401742624, 1401742621, 1401742406, 1401742404, 1401742401, 1401742345, 1401742342, 1401742340, 1401742338]} final : False mtd_id 4302 list_pids : [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] Looping around the photos to save general results len do output : 10 /1401743178.Didn't retrieve data . /1401743175.Didn't retrieve data . /1401743172.Didn't retrieve data . /1401743141.Didn't retrieve data . /1401743138.Didn't retrieve data . /1401743137.Didn't retrieve data . /1401743136.Didn't retrieve data . /1401743111.Didn't retrieve data . /1401743108.Didn't retrieve data . /1401743105.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, '4291015') ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29823135', '1401743178', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743175', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743172', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743141', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743138', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743137', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743136', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743111', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743108', '0.040405325064409366', None, None, None, None, '4291015'), ('4302', '29823135', '1401743105', '0.040405325064409366', None, None, None, None, '4291015')] time used for this insertion : 0.01713252067565918 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08220124244689941 time spend to save output : 0.017748117446899414 total time spend for step 2 : 0.09994935989379883 step3:velours_tree Tue Dec 30 21:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29823135: [{'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152}]} input_args_next_step : {29823135: ()} output_args : {29823135: [{'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152}]} args : 29823135 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 : ({'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29823135) 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([29823135]) 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.3473215103149414 time spend to save output : 7.748603820800781e-05 total time spend for step 3 : 0.3473989963531494 step4:send_mail_cod Tue Dec 30 21:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} input_args_next_step : {1401743178: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743178 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743175 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743172 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743141 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743138 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743137 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743136 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743111 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743108 depend.output_id : 0 input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ()} output_args : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',)} args : 1401743105 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 : {29823135: [{'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152}]} input_args_next_step : {1401743178: ('0.040405325064409366',), 1401743175: ('0.040405325064409366',), 1401743172: ('0.040405325064409366',), 1401743141: ('0.040405325064409366',), 1401743138: ('0.040405325064409366',), 1401743137: ('0.040405325064409366',), 1401743136: ('0.040405325064409366',), 1401743111: ('0.040405325064409366',), 1401743108: ('0.040405325064409366',), 1401743105: ('0.040405325064409366',), 29823135: ()} output_args : {29823135: [{'plastique': 29823141, 'kraft': 29823142, 'flou': 29823143, 'metal': 29823144, 'papier': 29823145, 'Carton_gris': 29823146, 'mal_croppe': 29823147, 'cartonnette': 29823148, 'autre_refus': 29823149, 'Carton_brun': 29823150, 'environnement': 29823151, 'Teint_Dans_La_Masse': 29823152}]} args : 29823135 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 :11, first value : ('0.040405325064409366',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29823135) 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 (1401743178,1401743175,1401743172,1401743141,1401743138,1401743137,1401743136,1401743111,1401743108,1401743105) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401743105 begin to download photo : 1401743136 begin to download photo : 1401743141 begin to download photo : 1401743178 download finish for photo 1401743136 begin to download photo : 1401743137 download finish for photo 1401743105 begin to download photo : 1401743108 download finish for photo 1401743178 download finish for photo 1401743141 begin to download photo : 1401743172 download finish for photo 1401743137 begin to download photo : 1401743138 download finish for photo 1401743108 begin to download photo : 1401743111 download finish for photo 1401743172 begin to download photo : 1401743175 download finish for photo 1401743138 download finish for photo 1401743175 download finish for photo 1401743111 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29823135_30-12-2025_21_27_00.pdf 29823141 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=29823141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743038: '1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901449_0.png'} change filename to text .imagette298231411767126420/ imagette298231411767126420/1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901449_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/ff8a57753a33e42ad8e34f51b457ec6f_59948338.png imagette298231411767126420 29823142 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=29823142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743157: '1767126308_218848_1401743044_c145f8c79a6f0def7c0ab26c7cb89383_rle_crop_4085901717_0.png'} change filename to text .imagette298231421767126420/ imagette298231421767126420/1767126308_218848_1401743044_c145f8c79a6f0def7c0ab26c7cb89383_rle_crop_4085901717_0.png.png imagette298231431767126420/ imagette298231441767126420/ imagette298231471767126420/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/1c376cb5ea0ed2b0afdae7f5e0e58e9c_21254942.png imagette298231421767126420 29823143 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=29823143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298231431767126420 29823144 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=29823144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298231441767126420 29823147 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=29823147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298231471767126420 29823148 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=29823148 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743019: '1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901269_0.png', 1401743020: '1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901281_0.png', 1401743033: '1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901439_0.png', 1401743034: '1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901442_0.png', 1401743035: '1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/3e0db2b9ac8d144c022f19ee7cebe5ff_49565509.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/fdad497006b443378e8bcfa2968dbd5e_73003152.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f6a449c8f7aa7ea28fb22414198a7abf_76734820.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/df4615c479546b6b02388bf5cf1b82c7_24178964.png change filename to text .imagette298231481767126420/ imagette298231481767126420/1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901459_0.png.png imagette298231481767126420/1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901439_0.png.png imagette298231481767126420/1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901281_0.png.png imagette298231481767126420/1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901269_0.png.png imagette298231481767126420/1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901442_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/6a8cf77a63b75e97229778f59209fc36_356618.png imagette298231481767126420 29823149 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=29823149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743015: '1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901268_0.png', 1401743032: '1767126088_207576_1401742406_57edad4400f62ad8bb33eb6e4751815d_rle_crop_4085901427_0.png', 1401743080: '1767126185_213329_1401742911_9f429ced97bc286fc87998e7f78f44d8_rle_crop_4085901564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/7f2cfb26f927568d224114eaff75d2fe_66476245.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/fb5a98703222b098ad94bdea2a95b3f5_44786049.png change filename to text .imagette298231491767126420/ imagette298231491767126420/1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901268_0.png.png imagette298231491767126420/1767126088_207576_1401742406_57edad4400f62ad8bb33eb6e4751815d_rle_crop_4085901427_0.png.png imagette298231491767126420/1767126185_213329_1401742911_9f429ced97bc286fc87998e7f78f44d8_rle_crop_4085901564_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/198a24bb1e5dc9e11db60c4e9fb6fbcf_46326903.png imagette298231491767126420 29823146 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=29823146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743017: '1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901267_0.png', 1401743153: '1767126308_218848_1401743044_c145f8c79a6f0def7c0ab26c7cb89383_rle_crop_4085901720_0.png', 1401743154: '1767126308_218848_1401743042_44d271045443144ee00e59ca8ca62ff0_rle_crop_4085901727_0.png', 1401743155: '1767126308_218848_1401743042_44d271045443144ee00e59ca8ca62ff0_rle_crop_4085901734_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/99ecceb1ae56baffc21a492dfd415663_88770481.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b934eb6c59122af7a3b7207cdec9e95e_63772429.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f3eebbf2baba2240a7fa898679f6a29d_90479064.png change filename to text .imagette298231461767126420/ imagette298231461767126420/1767126308_218848_1401743042_44d271045443144ee00e59ca8ca62ff0_rle_crop_4085901734_0.png.png imagette298231461767126420/1767126308_218848_1401743042_44d271045443144ee00e59ca8ca62ff0_rle_crop_4085901727_0.png.png imagette298231461767126420/1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901267_0.png.png imagette298231461767126420/1767126308_218848_1401743044_c145f8c79a6f0def7c0ab26c7cb89383_rle_crop_4085901720_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/56281a14b71632b4b57be85fa1358eb4_41568502.png imagette298231461767126420 29823150 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=29823150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743021: '1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901270_0.png', 1401743022: '1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901286_0.png', 1401743036: '1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901460_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/2a3706b3df871791fa433df468322c45_82696169.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/5fa94c560ece112e84f57a1e0ded0823_39034665.png change filename to text .imagette298231501767126421/ imagette298231501767126421/1767126066_206976_1401742404_6581716f881de2115c9e42e96dba8781_rle_crop_4085901270_0.png.png imagette298231501767126421/1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901286_0.png.png imagette298231501767126421/1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901460_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b6e7e15b9a631c64a02c7a6b65974039_38745473.png imagette298231501767126421 29823152 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=29823152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401743013: '1767126066_206976_1401742624_eb06d07c57b52beeed54a9eaea472e08_rle_crop_4085901249_0.png', 1401743014: '1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901284_0.png', 1401743030: '1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901446_0.png', 1401743031: '1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901461_0.png', 1401743078: '1767126185_213329_1401742911_9f429ced97bc286fc87998e7f78f44d8_rle_crop_4085901563_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/936f996972f0a3bf230e0f3f240e848d_58168423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/9e14ebcfa0690cb67a9d275666d9c0d2_92584730.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/7df0f11c511f0e7c1ee6a2974d810c0c_36189651.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/89b83482f5dc9ed79346a87b8760aabf_47720209.png change filename to text .imagette298231521767126421/ imagette298231521767126421/1767126066_206976_1401742624_eb06d07c57b52beeed54a9eaea472e08_rle_crop_4085901249_0.png.png imagette298231521767126421/1767126066_206976_1401742401_258e501cc45d28299024f47d8e971c0b_rle_crop_4085901284_0.png.png imagette298231521767126421/1767126185_213329_1401742911_9f429ced97bc286fc87998e7f78f44d8_rle_crop_4085901563_0.png.png imagette298231521767126421/1767126088_207576_1401742342_ae52ce0e6ecb50fc21c8b6b9c76231a2_rle_crop_4085901461_0.png.png imagette298231521767126421/1767126088_207576_1401742345_8104692494c71974f9a6c08f4bc47d16_rle_crop_4085901446_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/d1c6659d6fb03ca809b44a5fa77b14ec_53498893.png imagette298231521767126421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29823135 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29823160,29823162,29823163,29823164,29823166,29823167,29823168,29823170,29823171,29823172,29823174,29823175?tags=plastique,kraft,flou,metal,papier,Carton_gris,mal_croppe,cartonnette,autre_refus,Carton_brun,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1401743178] : ('0.040405325064409366',) no score found for photo 1401743178 We are sending mail with results at report@fotonower.com args[1401743175] : ('0.040405325064409366',) no score found for photo 1401743175 We are sending mail with results at report@fotonower.com args[1401743172] : ('0.040405325064409366',) no score found for photo 1401743172 We are sending mail with results at report@fotonower.com args[1401743141] : ('0.040405325064409366',) no score found for photo 1401743141 We are sending mail with results at report@fotonower.com args[1401743138] : ('0.040405325064409366',) no score found for photo 1401743138 We are sending mail with results at report@fotonower.com args[1401743137] : ('0.040405325064409366',) no score found for photo 1401743137 We are sending mail with results at report@fotonower.com args[1401743136] : ('0.040405325064409366',) no score found for photo 1401743136 We are sending mail with results at report@fotonower.com args[1401743111] : ('0.040405325064409366',) no score found for photo 1401743111 We are sending mail with results at report@fotonower.com args[1401743108] : ('0.040405325064409366',) no score found for photo 1401743108 We are sending mail with results at report@fotonower.com args[1401743105] : ('0.040405325064409366',) no score found for photo 1401743105 We are sending mail with results at report@fotonower.com refus_total : 0.040405325064409366 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=29823135 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_P29823135_30-12-2025_21_27_00.pdf results_Auto_P29823135_30-12-2025_21_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29823135_30-12-2025_21_27_00.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','29823135','results_Auto_P29823135_30-12-2025_21_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29823135_30-12-2025_21_27_00.pdf','pdf','','0.15','0.040405325064409366') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29823135]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] map_info['map_portfolio_photo'] : {29823135: [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105, 1401743099, 1401743096, 1401743092, 1401743090, 1401743081, 1401743079, 1401743075, 1401743071, 1401743069, 1401743067, 1401743047, 1401743044, 1401743042, 1401743040, 1401743009, 1401743006, 1401743005, 1401743003, 1401743000, 1401742976, 1401742945, 1401742911, 1401742762, 1401742761, 1401742624, 1401742621, 1401742406, 1401742404, 1401742401, 1401742345, 1401742342, 1401742340, 1401742338]} final : False mtd_id 4302 list_pids : [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] 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, '4291015') ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29823135', '1401743178', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015')] time used for this insertion : 0.017496824264526367 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3578710556030273 time spend to save output : 0.017755746841430664 total time spend for step 4 : 3.375626802444458 step5:split_time_score Tue Dec 30 21:27:02 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 : ['29823135'] 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 : [('29823135',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29823135) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401743178: {'path': 'temp/1767126419_4050159_1401743178_f851455debb518c0ac80679574d0a60a.jpg', 'extension': 'jpg'}, 1401743136: {'path': 'temp/1767126419_4050159_1401743136_65f98f2d003018ccf722f6a4d99bc2bf.jpg', 'extension': 'jpg'}, 1401743137: {'path': 'temp/1767126419_4050159_1401743137_fd648f7fbd78c8787db709621e815642.jpg', 'extension': 'jpg'}, 1401743138: {'path': 'temp/1767126419_4050159_1401743138_c1626900da45054da1d366e50352e8e8.jpg', 'extension': 'jpg'}, 1401743141: {'path': 'temp/1767126419_4050159_1401743141_4b9470d95e2f87cffe15de2c189b4931.jpg', 'extension': 'jpg'}, 1401743172: {'path': 'temp/1767126419_4050159_1401743172_f0ee7cf83f418d820d9f716fcba630b7.jpg', 'extension': 'jpg'}, 1401743175: {'path': 'temp/1767126419_4050159_1401743175_2b10bb198a83ce66d261ec9714aae753.jpg', 'extension': 'jpg'}, 1401743105: {'path': 'temp/1767126419_4050159_1401743105_bf6a96d39021c98457195b41894dc1ec.jpg', 'extension': 'jpg'}, 1401743108: {'path': 'temp/1767126419_4050159_1401743108_b0a3390abc16152f985d252f0dcfddab.jpg', 'extension': 'jpg'}, 1401743111: {'path': 'temp/1767126419_4050159_1401743111_b2755a4376bda10150b4be35251637ac.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 = 29823135; (('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 = 29823135 group by h (('21', 43),) 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=29823135 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 (29823135) 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 (29823135) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29823135 Nombre de photos uploadées : 43 / 23040 (0%) 30122025 29823135 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 30122025 29823135 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1401742345, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8104692494c71974f9a6c08f4bc47d16.jpg', 'username': None, 'uploaded_at': 1767125767, 'text': 'image_30122025_21_15_04_010138m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1401742342, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/ae52ce0e6ecb50fc21c8b6b9c76231a2.jpg', 'username': None, 'uploaded_at': 1767125767, 'text': 'image_30122025_21_15_14_010133m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1401742340, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/9164ae753b251be786f6ea7658dee0b0.jpg', 'username': None, 'uploaded_at': 1767125767, 'text': 'image_30122025_21_15_25_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401742338, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f1b418c11d193269908884b8155d5442.jpg', 'username': None, 'uploaded_at': 1767125767, 'text': 'image_30122025_21_15_44_009126m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001996755599975586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29823135, '2025-12-30' ) 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-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2487497329711914 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18860285, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18860286, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18860287, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18860288, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18860289, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18860290, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18860291, '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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18860292, '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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29798325, 'dashboard_result_id': 18860293, '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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29799025, 'dashboard_result_id': 18860294, '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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29799682, 'dashboard_result_id': 18860295, '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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29800360, 'dashboard_result_id': 18860296, '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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29800908, 'dashboard_result_id': 18860297, '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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29801565, 'dashboard_result_id': 18860298, '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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29802386, 'dashboard_result_id': 18860299, '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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29803120, 'dashboard_result_id': 18860300, '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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29803763, 'dashboard_result_id': 18860301, '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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29804529, 'dashboard_result_id': 18860302, '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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29804985, 'dashboard_result_id': 18860303, '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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29805655, 'dashboard_result_id': 18860304, '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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29806068, 'dashboard_result_id': 18860305, '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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29806405, 'dashboard_result_id': 18860306, '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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29807136, 'dashboard_result_id': 18860307, '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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29807749, 'dashboard_result_id': 18860308, '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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29807975, 'dashboard_result_id': 18860309, '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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29808572, 'dashboard_result_id': 18860310, '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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29809267, 'dashboard_result_id': 18860311, '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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29809890, 'dashboard_result_id': 18860312, '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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29810418, 'dashboard_result_id': 18860313, '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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29810954, 'dashboard_result_id': 18860314, '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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29811670, 'dashboard_result_id': 18860315, '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_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29812294, 'dashboard_result_id': 18860316, '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_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29813176, 'dashboard_result_id': 18860317, '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_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29813444, 'dashboard_result_id': 18860318, '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_P29813444_30-12-2025_17_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29814043, 'dashboard_result_id': 18860319, '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_P29814043_30-12-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29814052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29814053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29814054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29814055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29814056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29814057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29814058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29814059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29814060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29814061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29814062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29814063, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29815306, 'dashboard_result_id': 18860320, '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_P29815306_30-12-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29815319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815330, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29815968, 'dashboard_result_id': 18860322, '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_P29815968_30-12-2025_18_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29815992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815996, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29816463, 'dashboard_result_id': 18860323, '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_P29816463_30-12-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29816500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29816501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29816502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29816503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29816504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29816505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29816506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29816507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29816508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29816509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29816510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29816511, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29817125, 'dashboard_result_id': 18860325, '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_P29817125_30-12-2025_19_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817168, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29817702, 'dashboard_result_id': 18860327, '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_P29817702_30-12-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817757, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29818208, 'dashboard_result_id': 18860328, '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_P29818208_30-12-2025_19_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818246, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29818895, 'dashboard_result_id': 18860329, '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_P29818895_30-12-2025_19_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818964, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29819642, 'dashboard_result_id': 18860330, '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_P29819642_30-12-2025_20_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29819676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29819677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29819678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29819679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29819680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29819681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29819682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29819683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29819684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29819685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29819686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29819687, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29820238, 'dashboard_result_id': 18860331, '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_P29820238_30-12-2025_20_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29820274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29820275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29820276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29820277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29820278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29820279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29820280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29820281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29820282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29820283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29820284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29820285, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29820968, 'dashboard_result_id': 18860332, '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_P29820968_30-12-2025_20_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29821038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821046, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29821713, 'dashboard_result_id': 18860333, '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_P29821713_30-12-2025_21_07_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29821761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821773, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29822911, 'dashboard_result_id': 18860334, '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_P29822911_30-12-2025_21_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29822914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29822915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29822916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29822917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29822918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29822919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29822920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29822921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29822922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29822923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29822924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29822925, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2821873, 'mtr_portfolio_id': 29823135, 'dashboard_result_id': 18860335, '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_P29823135_30-12-2025_21_22_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29823141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29823142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29823143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29823144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29823145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29823146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29823147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29823148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29823149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29823150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29823151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29823152, '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 = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2821873 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860285, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2821873 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860286, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2821873 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860287, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2821873 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860288, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2821873 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860289, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2821873 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860290, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 38, 59), 'result': '0.033921253396910656', 'result_long': None, 'result_double': None}] Qualite : 0.033921253396910656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2821873 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860291, 0.033921253396910656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 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': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 46, 59), 'result': '0.02814284116711131', 'result_long': None, 'result_double': None}] Qualite : 0.02814284116711131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2821873 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860292, 0.02814284116711131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29798325 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': 4287497, 'mtr_portfolio_id': 29798325, 'created_at': datetime.datetime(2025, 12, 30, 11, 3), 'result': '0.04468246908718581', 'result_long': None, 'result_double': None}] Qualite : 0.04468246908718581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29798325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29798325 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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}" where mtr_portfolio_id = 29798325 and dashboard_run_id = 2821873 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`=29798325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860293, 0.04468246908718581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, '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 = 29799025 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': 4287585, 'mtr_portfolio_id': 29799025, 'created_at': datetime.datetime(2025, 12, 30, 11, 16, 59), 'result': '0.08667658362391771', 'result_long': None, 'result_double': None}] Qualite : 0.08667658362391771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799025 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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}" where mtr_portfolio_id = 29799025 and dashboard_run_id = 2821873 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`=29799025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860294, 0.08667658362391771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, '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 = 29799682 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': 4287640, 'mtr_portfolio_id': 29799682, 'created_at': datetime.datetime(2025, 12, 30, 11, 34, 59), 'result': '0.06698004484459952', 'result_long': None, 'result_double': None}] Qualite : 0.06698004484459952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799682 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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}" where mtr_portfolio_id = 29799682 and dashboard_run_id = 2821873 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`=29799682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860295, 0.06698004484459952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, '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 = 29800360 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': 4287740, 'mtr_portfolio_id': 29800360, 'created_at': datetime.datetime(2025, 12, 30, 11, 46, 59), 'result': '0.09044129800279434', 'result_long': None, 'result_double': None}] Qualite : 0.09044129800279434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800360 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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}" where mtr_portfolio_id = 29800360 and dashboard_run_id = 2821873 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`=29800360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860296, 0.09044129800279434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, '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 = 29800908 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': 4287857, 'mtr_portfolio_id': 29800908, 'created_at': datetime.datetime(2025, 12, 30, 12, 5, 30), 'result': '0.04178504958311081', 'result_long': None, 'result_double': None}] Qualite : 0.04178504958311081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800908 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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}" where mtr_portfolio_id = 29800908 and dashboard_run_id = 2821873 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`=29800908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860297, 0.04178504958311081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, '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 = 29801565 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': 4287995, 'mtr_portfolio_id': 29801565, 'created_at': datetime.datetime(2025, 12, 30, 12, 16, 30), 'result': '0.061738346351304985', 'result_long': None, 'result_double': None}] Qualite : 0.061738346351304985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29801565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29801565 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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}" where mtr_portfolio_id = 29801565 and dashboard_run_id = 2821873 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`=29801565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860298, 0.061738346351304985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, '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 = 29802386 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': 4288100, 'mtr_portfolio_id': 29802386, 'created_at': datetime.datetime(2025, 12, 30, 12, 32, 58), 'result': '0.10020094194934427', 'result_long': None, 'result_double': None}] Qualite : 0.10020094194934427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29802386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29802386 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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}" where mtr_portfolio_id = 29802386 and dashboard_run_id = 2821873 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`=29802386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860299, 0.10020094194934427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, '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 = 29803120 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': 4288207, 'mtr_portfolio_id': 29803120, 'created_at': datetime.datetime(2025, 12, 30, 12, 46, 57), 'result': '0.06914954905671847', 'result_long': None, 'result_double': None}] Qualite : 0.06914954905671847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803120 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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}" where mtr_portfolio_id = 29803120 and dashboard_run_id = 2821873 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`=29803120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860300, 0.06914954905671847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, '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 = 29803763 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': 4288276, 'mtr_portfolio_id': 29803763, 'created_at': datetime.datetime(2025, 12, 30, 13, 7), 'result': '0.060443862108655634', 'result_long': None, 'result_double': None}] Qualite : 0.060443862108655634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803763 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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}" where mtr_portfolio_id = 29803763 and dashboard_run_id = 2821873 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`=29803763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860301, 0.060443862108655634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, '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 = 29804529 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': 4288429, 'mtr_portfolio_id': 29804529, 'created_at': datetime.datetime(2025, 12, 30, 13, 18, 59), 'result': '0.0690374605124261', 'result_long': None, 'result_double': None}] Qualite : 0.0690374605124261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804529 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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}" where mtr_portfolio_id = 29804529 and dashboard_run_id = 2821873 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`=29804529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860302, 0.0690374605124261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, '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 = 29804985 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': 4288482, 'mtr_portfolio_id': 29804985, 'created_at': datetime.datetime(2025, 12, 30, 13, 38, 59), 'result': '0.07868173997295111', 'result_long': None, 'result_double': None}] Qualite : 0.07868173997295111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804985 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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}" where mtr_portfolio_id = 29804985 and dashboard_run_id = 2821873 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`=29804985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860303, 0.07868173997295111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, '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 = 29805655 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': 4288574, 'mtr_portfolio_id': 29805655, 'created_at': datetime.datetime(2025, 12, 30, 13, 46, 29), 'result': '0.07467653211303711', 'result_long': None, 'result_double': None}] Qualite : 0.07467653211303711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29805655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29805655 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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}" where mtr_portfolio_id = 29805655 and dashboard_run_id = 2821873 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`=29805655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860304, 0.07467653211303711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, '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 = 29806068 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': 4288620, 'mtr_portfolio_id': 29806068, 'created_at': datetime.datetime(2025, 12, 30, 14, 2, 58), 'result': '0.041353131115149946', 'result_long': None, 'result_double': None}] Qualite : 0.041353131115149946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806068 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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}" where mtr_portfolio_id = 29806068 and dashboard_run_id = 2821873 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`=29806068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860305, 0.041353131115149946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, '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 = 29806405 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': 4288693, 'mtr_portfolio_id': 29806405, 'created_at': datetime.datetime(2025, 12, 30, 14, 19, 1), 'result': '0.05856573578394818', 'result_long': None, 'result_double': None}] Qualite : 0.05856573578394818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806405 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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}" where mtr_portfolio_id = 29806405 and dashboard_run_id = 2821873 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`=29806405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860306, 0.05856573578394818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, '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 = 29807136 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': 4288763, 'mtr_portfolio_id': 29807136, 'created_at': datetime.datetime(2025, 12, 30, 14, 36, 57), 'result': '0.0666570528973185', 'result_long': None, 'result_double': None}] Qualite : 0.0666570528973185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807136 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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}" where mtr_portfolio_id = 29807136 and dashboard_run_id = 2821873 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`=29807136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860307, 0.0666570528973185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, '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 = 29807749 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': 4288856, 'mtr_portfolio_id': 29807749, 'created_at': datetime.datetime(2025, 12, 30, 14, 46, 58), 'result': '0.0822214256802385', 'result_long': None, 'result_double': None}] Qualite : 0.0822214256802385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807749 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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}" where mtr_portfolio_id = 29807749 and dashboard_run_id = 2821873 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`=29807749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860308, 0.0822214256802385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, '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 = 29807975 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': 4288885, 'mtr_portfolio_id': 29807975, 'created_at': datetime.datetime(2025, 12, 30, 15, 2, 59), 'result': '0.05405081722722423', 'result_long': None, 'result_double': None}] Qualite : 0.05405081722722423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807975 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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}" where mtr_portfolio_id = 29807975 and dashboard_run_id = 2821873 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`=29807975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860309, 0.05405081722722423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, '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 = 29808572 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': 4288972, 'mtr_portfolio_id': 29808572, 'created_at': datetime.datetime(2025, 12, 30, 15, 16, 59), 'result': '0.050320479973079126', 'result_long': None, 'result_double': None}] Qualite : 0.050320479973079126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29808572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29808572 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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}" where mtr_portfolio_id = 29808572 and dashboard_run_id = 2821873 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`=29808572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860310, 0.050320479973079126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, '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 = 29809267 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': 4289079, 'mtr_portfolio_id': 29809267, 'created_at': datetime.datetime(2025, 12, 30, 15, 33, 59), 'result': '0.057795355547802296', 'result_long': None, 'result_double': None}] Qualite : 0.057795355547802296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809267 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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}" where mtr_portfolio_id = 29809267 and dashboard_run_id = 2821873 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`=29809267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860311, 0.057795355547802296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, '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 = 29809890 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': 4289165, 'mtr_portfolio_id': 29809890, 'created_at': datetime.datetime(2025, 12, 30, 15, 49), 'result': '0.048586920997346045', 'result_long': None, 'result_double': None}] Qualite : 0.048586920997346045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809890 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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}" where mtr_portfolio_id = 29809890 and dashboard_run_id = 2821873 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`=29809890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860312, 0.048586920997346045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, '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 = 29810418 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': 4289248, 'mtr_portfolio_id': 29810418, 'created_at': datetime.datetime(2025, 12, 30, 16, 2, 57), 'result': '0.03607667162220529', 'result_long': None, 'result_double': None}] Qualite : 0.03607667162220529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810418 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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}" where mtr_portfolio_id = 29810418 and dashboard_run_id = 2821873 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`=29810418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860313, 0.03607667162220529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, '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 = 29810954 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': 4289335, 'mtr_portfolio_id': 29810954, 'created_at': datetime.datetime(2025, 12, 30, 16, 19, 31), 'result': '0.047599694348580475', 'result_long': None, 'result_double': None}] Qualite : 0.047599694348580475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810954 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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}" where mtr_portfolio_id = 29810954 and dashboard_run_id = 2821873 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`=29810954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860314, 0.047599694348580475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, '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 = 29811670 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': 4289408, 'mtr_portfolio_id': 29811670, 'created_at': datetime.datetime(2025, 12, 30, 16, 32, 57), 'result': '0.06764653363058412', 'result_long': None, 'result_double': None}] Qualite : 0.06764653363058412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29811670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29811670 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_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, 'pht': 3726}}" where mtr_portfolio_id = 29811670 and dashboard_run_id = 2821873 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`=29811670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860315, 0.06764653363058412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, '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 = 29812294 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': 4289500, 'mtr_portfolio_id': 29812294, 'created_at': datetime.datetime(2025, 12, 30, 16, 56, 59), 'result': '0.04012791333373889', 'result_long': None, 'result_double': None}] Qualite : 0.04012791333373889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29812294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29812294_30-12-2025_16_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29812294 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_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, 'pht': 3726}}" where mtr_portfolio_id = 29812294 and dashboard_run_id = 2821873 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`=29812294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860316, 0.04012791333373889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, '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 = 29813176 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': 4289624, 'mtr_portfolio_id': 29813176, 'created_at': datetime.datetime(2025, 12, 30, 17, 5, 1), 'result': '0.036882932692840806', 'result_long': None, 'result_double': None}] Qualite : 0.036882932692840806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29813176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813176_30-12-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29813176 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_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, 'pht': 3726}}" where mtr_portfolio_id = 29813176 and dashboard_run_id = 2821873 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`=29813176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860317, 0.036882932692840806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, '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 = 29813444 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': 4289654, 'mtr_portfolio_id': 29813444, 'created_at': datetime.datetime(2025, 12, 30, 17, 16, 59), 'result': '0.03431500636901027', 'result_long': None, 'result_double': None}] Qualite : 0.03431500636901027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29813444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29813444 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_P29813444_30-12-2025_17_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, 'pht': 3726}}" where mtr_portfolio_id = 29813444 and dashboard_run_id = 2821873 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`=29813444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860318, 0.03431500636901027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, '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 = 29814043 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': 4289721, 'mtr_portfolio_id': 29814043, 'created_at': datetime.datetime(2025, 12, 30, 18, 2, 59), 'result': '0.060327131277192934', 'result_long': None, 'result_double': None}] Qualite : 0.060327131277192934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29814043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29814043_30-12-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29814043 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_P29814043_30-12-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29814052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29814053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29814054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29814055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29814056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29814057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29814058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29814059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29814060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29814061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29814062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29814063, 'pht': 3726}}" where mtr_portfolio_id = 29814043 and dashboard_run_id = 2821873 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`=29814043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860319, 0.060327131277192934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29814043_30-12-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29814052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29814053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29814054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29814055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29814056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29814057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29814058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29814059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29814060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29814061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29814062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29814063, '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 = 29815306 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': 4289897, 'mtr_portfolio_id': 29815306, 'created_at': datetime.datetime(2025, 12, 30, 18, 18, 59), 'result': '0.04292941675134892', 'result_long': None, 'result_double': None}] Qualite : 0.04292941675134892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29815306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29815306_30-12-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29815306 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_P29815306_30-12-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29815319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815330, 'pht': 3726}}" where mtr_portfolio_id = 29815306 and dashboard_run_id = 2821873 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`=29815306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860320, 0.04292941675134892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29815306_30-12-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29815319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815330, '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 = 29815968 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': 4289972, 'mtr_portfolio_id': 29815968, 'created_at': datetime.datetime(2025, 12, 30, 18, 32, 56), 'result': '0.0434544621794479', 'result_long': None, 'result_double': None}] Qualite : 0.0434544621794479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29815968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29815968_30-12-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29815968 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_P29815968_30-12-2025_18_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29815992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815996, 'pht': 3726}}" where mtr_portfolio_id = 29815968 and dashboard_run_id = 2821873 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`=29815968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860322, 0.0434544621794479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29815968_30-12-2025_18_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29815985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29815986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29815987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29815988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29815989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29815990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29815991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29815992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29815993, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29815994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29815995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29815996, '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 = 29816463 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': 4290057, 'mtr_portfolio_id': 29816463, 'created_at': datetime.datetime(2025, 12, 30, 18, 48, 59), 'result': '0.0366811286956555', 'result_long': None, 'result_double': None}] Qualite : 0.0366811286956555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29816463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29816463_30-12-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29816463 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_P29816463_30-12-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29816500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29816501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29816502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29816503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29816504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29816505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29816506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29816507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29816508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29816509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29816510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29816511, 'pht': 3726}}" where mtr_portfolio_id = 29816463 and dashboard_run_id = 2821873 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`=29816463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860323, 0.0366811286956555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29816463_30-12-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29816500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29816501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29816502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29816503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29816504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29816505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29816506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29816507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29816508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29816509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29816510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29816511, '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 = 29817125 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': 4290158, 'mtr_portfolio_id': 29817125, 'created_at': datetime.datetime(2025, 12, 30, 19, 2, 58), 'result': '0.0483024198487743', 'result_long': None, 'result_double': None}] Qualite : 0.0483024198487743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29817125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29817125_30-12-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29817125 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_P29817125_30-12-2025_19_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817168, 'pht': 3726}}" where mtr_portfolio_id = 29817125 and dashboard_run_id = 2821873 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`=29817125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860325, 0.0483024198487743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29817125_30-12-2025_19_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817168, '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 = 29817702 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': 4290242, 'mtr_portfolio_id': 29817702, 'created_at': datetime.datetime(2025, 12, 30, 19, 16, 59), 'result': '0.07943357566325365', 'result_long': None, 'result_double': None}] Qualite : 0.07943357566325365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29817702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29817702_30-12-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29817702 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_P29817702_30-12-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817757, 'pht': 3726}}" where mtr_portfolio_id = 29817702 and dashboard_run_id = 2821873 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`=29817702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860327, 0.07943357566325365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29817702_30-12-2025_19_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29817745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29817746, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29817747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29817748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29817749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29817750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29817751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29817752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29817753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29817754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29817755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29817757, '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 = 29818208 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': 4290316, 'mtr_portfolio_id': 29818208, 'created_at': datetime.datetime(2025, 12, 30, 19, 33, 1), 'result': '0.057509787704686316', 'result_long': None, 'result_double': None}] Qualite : 0.057509787704686316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29818208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29818208_30-12-2025_19_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29818208 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_P29818208_30-12-2025_19_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818246, 'pht': 3726}}" where mtr_portfolio_id = 29818208 and dashboard_run_id = 2821873 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`=29818208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860328, 0.057509787704686316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29818208_30-12-2025_19_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818246, '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 = 29818895 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': 4290405, 'mtr_portfolio_id': 29818895, 'created_at': datetime.datetime(2025, 12, 30, 19, 46, 58), 'result': '0.050564004977042665', 'result_long': None, 'result_double': None}] Qualite : 0.050564004977042665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29818895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29818895_30-12-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29818895 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_P29818895_30-12-2025_19_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818964, 'pht': 3726}}" where mtr_portfolio_id = 29818895 and dashboard_run_id = 2821873 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`=29818895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860329, 0.050564004977042665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29818895_30-12-2025_19_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29818951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29818952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29818953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29818954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29818955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29818956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29818957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29818959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29818960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29818961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29818962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29818964, '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 = 29819642 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': 4290515, 'mtr_portfolio_id': 29819642, 'created_at': datetime.datetime(2025, 12, 30, 20, 2, 59), 'result': '0.040052775914528244', 'result_long': None, 'result_double': None}] Qualite : 0.040052775914528244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29819642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29819642_30-12-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29819642 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_P29819642_30-12-2025_20_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29819676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29819677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29819678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29819679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29819680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29819681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29819682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29819683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29819684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29819685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29819686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29819687, 'pht': 3726}}" where mtr_portfolio_id = 29819642 and dashboard_run_id = 2821873 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`=29819642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860330, 0.040052775914528244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29819642_30-12-2025_20_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29819676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29819677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29819678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29819679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29819680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29819681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29819682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29819683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29819684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29819685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29819686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29819687, '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 = 29820238 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': 4290632, 'mtr_portfolio_id': 29820238, 'created_at': datetime.datetime(2025, 12, 30, 20, 16, 58), 'result': '0.05076584629025712', 'result_long': None, 'result_double': None}] Qualite : 0.05076584629025712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29820238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29820238_30-12-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29820238 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_P29820238_30-12-2025_20_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29820274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29820275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29820276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29820277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29820278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29820279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29820280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29820281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29820282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29820283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29820284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29820285, 'pht': 3726}}" where mtr_portfolio_id = 29820238 and dashboard_run_id = 2821873 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`=29820238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860331, 0.05076584629025712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29820238_30-12-2025_20_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29820274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29820275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29820276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29820277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29820278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29820279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29820280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29820281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29820282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29820283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29820284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29820285, '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 = 29820968 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': 4290719, 'mtr_portfolio_id': 29820968, 'created_at': datetime.datetime(2025, 12, 30, 20, 33), 'result': '0.05759512944187309', 'result_long': None, 'result_double': None}] Qualite : 0.05759512944187309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29820968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29820968_30-12-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29820968 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_P29820968_30-12-2025_20_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29821038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821046, 'pht': 3726}}" where mtr_portfolio_id = 29820968 and dashboard_run_id = 2821873 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`=29820968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860332, 0.05759512944187309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29820968_30-12-2025_20_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29821038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821046, '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 = 29821713 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': 4290830, 'mtr_portfolio_id': 29821713, 'created_at': datetime.datetime(2025, 12, 30, 21, 7, 32), 'result': '0.05563373697672542', 'result_long': None, 'result_double': None}] Qualite : 0.05563373697672542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29821713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29821713_30-12-2025_21_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29821713 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_P29821713_30-12-2025_21_07_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29821761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821773, 'pht': 3726}}" where mtr_portfolio_id = 29821713 and dashboard_run_id = 2821873 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`=29821713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860333, 0.05563373697672542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29821713_30-12-2025_21_07_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29821761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29821762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29821763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29821764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29821765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29821767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29821768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29821769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29821770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29821771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29821772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29821773, '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 = 29822911 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': 4290994, 'mtr_portfolio_id': 29822911, 'created_at': datetime.datetime(2025, 12, 30, 21, 16, 59), 'result': '0.2204733270305445', 'result_long': None, 'result_double': None}] Qualite : 0.2204733270305445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29822911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29822911_30-12-2025_21_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29822911 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_P29822911_30-12-2025_21_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29822914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29822915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29822916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29822917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29822918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29822919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29822920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29822921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29822922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29822923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29822924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29822925, 'pht': 3726}}" where mtr_portfolio_id = 29822911 and dashboard_run_id = 2821873 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`=29822911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860334, 0.2204733270305445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29822911_30-12-2025_21_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29822914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29822915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29822916, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29822917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29822918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29822919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29822920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29822921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29822922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29822923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29822924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29822925, '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 = 29823135 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': 4291015, 'mtr_portfolio_id': 29823135, 'created_at': datetime.datetime(2025, 12, 30, 21, 26, 59), 'result': '0.040405325064409366', 'result_long': None, 'result_double': None}] Qualite : 0.040405325064409366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29823135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29823135_30-12-2025_21_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29823135 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_P29823135_30-12-2025_21_27_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29823141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29823142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29823143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29823144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29823145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29823146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29823147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29823148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29823149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29823150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29823151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29823152, 'pht': 3726}}" where mtr_portfolio_id = 29823135 and dashboard_run_id = 2821873 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`=29823135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18860335, 0.040405325064409366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29823135_30-12-2025_21_27_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29823141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29823142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29823143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29823144, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29823145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29823146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29823147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29823148, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29823149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29823150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29823151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29823152, '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 (29790877,29790983,29791397,29791790,29792732,29795877,29797237,29797610,29798325,29799025,29799682,29800360,29800908,29801565,29802386,29803120,29803763,29804529,29804985,29805655,29806068,29806405,29807136,29807749,29807975,29808572,29809267,29809890,29810418,29810954,29811670,29812294,29813176,29813444,29814043,29815306,29815968,29816463,29817125,29817702,29818208,29818895,29819642,29820238,29820968,29821713,29822911,29823135) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650522,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,), (1401650493,), (1401650494,), (1401650495,), (1401650498,), (1401650501,), (1401650504,), (1401650526,), (1401650527,), (1401650529,), (1401650536,), (1401650546,), (1401650563,), (1401650565,), (1401650567,), (1401650577,), (1401650584,), (1401650587,), (1401650624,), (1401650626,), (1401650628,), (1401650630,), (1401650632,), (1401650897,), (1401650927,), (1401650958,), (1401650997,), (1401651286,), (1401651309,), (1401651318,), (1401651616,), (1401651651,), (1401651688,), (1401651726,), (1401651768,), (1401652104,), (1401652151,), (1401652191,), (1401652228,), (1401652265,), (1401652305,), (1401652397,), (1401652433,), (1401652571,), (1401652578,), (1401652597,), (1401652601,), (1401653110,), (1401653595,), (1401653555,), (1401653731,), (1401653732,), (1401653754,), (1401653762,), (1401654123,), (1401654184,), (1401654246,), (1401654278,), (1401654311,), (1401654470,), (1401654473,), (1401654478,), (1401654480,), (1401654520,), (1401654523,), (1401654533,), (1401654806,), (1401654834,), (1401654836,), (1401655017,), (1401655020,), (1401655028,), (1401655061,), (1401655063,), (1401655066,), (1401655068,), (1401655071,), (1401655074,), (1401655100,), (1401655137,), (1401655173,), (1401655204,), (1401655241,), (1401655276,), (1401655440,), (1401655473,), (1401655505,), (1401655536,), (1401655548,), (1401655585,), (1401655688,), (1401655726,), (1401655747,), (1401655750,), (1401656085,), (1401656086,), (1401656106,), (1401656122,), (1401656131,), (1401656245,), (1401656248,), (1401656251,), (1401656254,), (1401656257,), (1401656497,), (1401656532,), (1401656568,), (1401656603,), (1401656955,), (1401656842,), (1401656877,), (1401656909,), (1401656925,), (1401657487,), (1401657549,), (1401657667,), (1401657713,), (1401657767,), (1401657841,), (1401658014,), (1401658018,), (1401658032,), (1401658067,), (1401658100,), (1401658138,), (1401658471,), (1401658474,), (1401658507,), (1401658524,), (1401658529,), (1401658532,), (1401658538,), (1401658539,), (1401658541,), (1401658543,), (1401658545,), (1401658546,), (1401658557,), (1401658559,), (1401658562,), (1401658572,), (1401658580,), (1401658591,), (1401658606,), (1401658616,), (1401658880,), (1401658914,), (1401658946,), (1401658989,), (1401659029,), (1401659382,), (1401659406,), (1401659597,), (1401659631,), (1401659672,), (1401659712,), (1401659716,), (1401659720,), (1401659850,), (1401659853,), (1401659857,), (1401659861,), (1401659864,), (1401659902,), (1401659904,), (1401659907,), (1401659909,), (1401659913,), (1401660087,), (1401660088,), (1401660089,), (1401660149,), (1401660151,), (1401660152,), (1401660189,), (1401660226,), (1401660257,), (1401660267,), (1401660283,), (1401660296,), (1401660309,), (1401660325,), (1401660353,), (1401660384,), (1401660387,), (1401660430,), (1401660423,), (1401660425,), (1401660426,), (1401660480,), (1401660482,), (1401660519,), (1401660643,), (1401660761,), (1401660861,), (1401661666,), (1401661697,), (1401661730,), (1401661762,), (1401661799,), (1401661985,), (1401662038,), (1401662134,), (1401662223,), (1401662315,), (1401662584,), (1401662599,), (1401662628,), (1401662632,), (1401662644,), (1401662655,), (1401662673,), (1401662696,), (1401662733,), (1401662771,), (1401662807,), (1401663076,), (1401663088,), (1401663096,), (1401663100,), (1401663105,), (1401663180,), (1401663213,), (1401663246,), (1401663279,), (1401663290,), (1401663292,), (1401663297,), (1401663299,), (1401663302,), (1401663305,), (1401663308,), (1401663312,), (1401663314,), (1401663317,), (1401663319,), (1401663324,), (1401663350,), (1401663352,), (1401663354,), (1401663358,), (1401663426,), (1401663431,), (1401663434,), (1401663438,), (1401663443,), (1401663447,), (1401663460,), (1401663463,), (1401663465,), (1401663468,), (1401663472,), (1401663499,), (1401663501,), (1401663504,), (1401663508,), (1401663531,), (1401663534,), (1401663537,), (1401663579,), (1401663591,), (1401663594,), (1401663597,), (1401663628,), (1401663610,), (1401663614,), (1401663647,), (1401663650,), (1401663653,), (1401663658,), (1401663663,), (1401663667,), (1401663686,), (1401663715,), (1401663749,), (1401663764,), (1401663777,), (1401663785,), (1401663809,), (1401663813,), (1401663815,), (1401663816,), (1401663819,), (1401663821,), (1401663831,), (1401663833,), (1401663838,), (1401663840,), (1401663842,), (1401663845,), (1401663855,), (1401663856,), (1401663859,), (1401663860,), (1401663863,), (1401663864,), (1401663865,), (1401663866,), (1401663869,), (1401663878,), (1401663882,), (1401663886,), (1401664027,), (1401664033,), (1401664040,), (1401664043,), (1401664096,), (1401664099,), (1401664102,), (1401664106,), (1401664109,), (1401664111,), (1401664123,), (1401664142,), (1401664144,), (1401664145,), (1401664146,), (1401664331,), (1401664362,), (1401664392,), (1401664424,), (1401664456,), (1401664522,), (1401664554,), (1401664556,), (1401664558,), (1401664560,), (1401664592,), (1401664594,), (1401664597,), (1401664600,), (1401664604,), (1401664606,), (1401664617,), (1401664620,), (1401664633,), (1401664678,), (1401664677,), (1401664710,), (1401664713,), (1401664716,), (1401664718,), (1401664737,), (1401664738,), (1401664857,), (1401664927,), (1401664930,), (1401664932,), (1401664935,), (1401664939,), (1401664966,), (1401664967,), (1401664968,), (1401665001,), (1401665089,), (1401665289,), (1401665293,), (1401665298,), (1401665534,), (1401665536,), (1401665538,), (1401665541,), (1401665544,), (1401665549,), (1401665557,), (1401665566,), (1401665568,), (1401665569,), (1401665570,), (1401665573,), (1401665575,), (1401665599,), (1401665600,), (1401665603,), (1401665606,), (1401665609,), (1401665632,), (1401665636,), (1401665640,), (1401665644,), (1401665647,), (1401665663,), (1401665665,), (1401665692,), (1401665695,), (1401665698,), (1401665752,), (1401665758,), (1401665764,), (1401665769,), (1401665777,), (1401665778,), (1401665780,), (1401665781,), (1401665782,), (1401665783,), (1401665807,), (1401665802,), (1401665804,), (1401665840,), (1401666405,), (1401666475,), (1401666541,), (1401667232,), (1401667263,), (1401667294,), (1401667470,), (1401667533,), (1401667601,), (1401668029,), (1401668076,), (1401668110,), (1401668707,), (1401668742,), (1401668841,), (1401670023,), (1401670105,), (1401670559,), (1401670560,), (1401670563,), (1401670621,), (1401670683,), (1401670685,), (1401670713,), (1401670808,), (1401670818,), (1401671089,), (1401671091,), (1401671093,), (1401671097,), (1401671124,), (1401671126,), (1401671128,), (1401671130,), (1401671160,), (1401671477,), (1401671440,), (1401671839,), (1401671894,), (1401672166,), (1401672226,), (1401672276,), (1401672309,), (1401672432,), (1401672438,), (1401672471,), (1401672710,), (1401672722,), (1401672739,), (1401672762,), (1401673017,), (1401673031,), (1401673033,), (1401673063,), (1401673065,), (1401673067,), (1401673119,), (1401673129,), (1401673152,), (1401673160,), (1401673165,), (1401673193,), (1401673196,), (1401673225,), (1401673227,), (1401673264,), (1401673267,), (1401673394,), (1401673408,), (1401673409,), (1401673412,), (1401673536,), (1401673537,), (1401673539,), (1401673543,), (1401673564,), (1401673567,), (1401673570,), (1401673694,), (1401673711,), (1401673721,), (1401673798,), (1401673786,), (1401673791,), (1401673842,), (1401673850,), (1401673852,), (1401673872,), (1401673922,), (1401673924,), (1401673926,), (1401673929,), (1401673932,), (1401673937,), (1401673962,), (1401673981,), (1401673993,), (1401674123,), (1401674131,), (1401674134,), (1401674138,), (1401674144,), (1401674146,), (1401674158,), (1401674159,), (1401674165,), (1401674167,), (1401674170,), (1401674171,), (1401674174,), (1401674176,), (1401674178,), (1401674179,), (1401674185,), (1401674188,), (1401674215,), (1401674217,), (1401674257,), (1401674293,), (1401674295,), (1401674296,), (1401674297,), (1401674349,), (1401674358,), (1401674362,), (1401674446,), (1401674479,), (1401674492,), (1401674494,), (1401674526,), (1401674530,), (1401674593,), (1401674594,), (1401674595,), (1401674598,), (1401674600,), (1401674603,), (1401674638,), (1401674640,), (1401674642,), (1401674644,), (1401674668,), (1401674669,), (1401674671,), (1401674673,), (1401674677,), (1401674707,), (1401674698,), (1401674701,), (1401674704,), (1401674736,), (1401674738,), (1401674740,), (1401674742,), (1401674841,), (1401674850,), (1401674852,), (1401674875,), (1401674878,), (1401674881,), (1401674886,), (1401674920,), (1401674922,), (1401674924,), (1401674926,), (1401674955,), (1401674957,), (1401674961,), (1401674966,), (1401674970,), (1401674979,), (1401674988,), (1401674990,), (1401674994,), (1401675002,), (1401675005,), (1401675009,), (1401675012,), (1401675014,), (1401675181,), (1401675185,), (1401675187,), (1401675190,), (1401675193,), (1401675197,), (1401675205,), (1401675207,), (1401675210,), (1401675213,), (1401675218,), (1401675222,), (1401675226,), (1401675242,), (1401675245,), (1401675248,), (1401675345,), (1401678620,), (1401678559,), (1401678592,), (1401678971,), (1401678975,), (1401678979,), (1401678982,), (1401678987,), (1401678991,), (1401679011,), (1401679013,), (1401679015,), (1401679017,), (1401679045,), (1401679048,), (1401679050,), (1401679053,), (1401679057,), (1401679076,), (1401679079,), (1401679080,), (1401679081,), (1401679084,), (1401679105,), (1401679108,), (1401679111,), (1401679114,), (1401679117,), (1401679136,), (1401679138,), (1401679140,), (1401679142,), (1401679145,), (1401679149,), (1401679179,), (1401679180,), (1401679181,), (1401679184,), (1401679221,), (1401679224,), (1401679226,), (1401679230,), (1401679233,), (1401679235,), (1401679257,), (1401679259,), (1401679272,), (1401679300,), (1401679305,), (1401679306,), (1401679309,), (1401679312,), (1401679316,), (1401679336,), (1401679338,), (1401679341,), (1401679344,), (1401679392,), (1401679375,), (1401679377,), (1401679379,), (1401679383,), (1401679388,), (1401679407,), (1401679409,), (1401679411,), (1401679415,), (1401679477,), (1401679480,), (1401679482,), (1401679485,), (1401679489,), (1401679511,), (1401679513,), (1401679514,), (1401679518,), (1401679523,), (1401679527,), (1401679572,), (1401679575,), (1401679578,), (1401679582,), (1401679613,), (1401679614,), (1401679615,), (1401679617,), (1401679621,), (1401679623,), (1401679940,), (1401679977,), (1401680009,), (1401680044,), (1401680077,), (1401680478,), (1401680513,), (1401680543,), (1401680578,), (1401680614,), (1401680649,), (1401680773,), (1401680806,), (1401680837,), (1401680850,), (1401680852,), (1401680861,), (1401680865,), (1401680868,), (1401680873,), (1401680955,), (1401680996,), (1401681037,), (1401681098,), (1401681161,), (1401681226,), (1401681645,), (1401681674,), (1401681707,), (1401681744,), (1401681872,), (1401681875,), (1401681878,), (1401681882,), (1401681886,), (1401681888,), (1401681904,), (1401681906,), (1401681908,), (1401681911,), (1401681935,), (1401681937,), (1401681939,), (1401681942,), (1401681945,), (1401682408,), (1401682369,), (1401682393,), (1401682464,), (1401682465,), (1401682466,), (1401682468,), (1401682473,), (1401682566,), (1401682589,), (1401682600,), (1401682603,), (1401682628,), (1401682629,), (1401682631,), (1401682632,), (1401682635,), (1401682639,), (1401682663,), (1401682672,), (1401682678,), (1401682681,), (1401682709,), (1401682723,), (1401682729,), (1401682744,), (1401682754,), (1401682770,), (1401682811,), (1401682812,), (1401682817,), (1401682846,), (1401682850,), (1401682883,), (1401682917,), (1401683183,), (1401683186,), (1401683189,), (1401683190,), (1401683193,), (1401683195,), (1401683335,), (1401683334,), (1401683445,), (1401683446,), (1401683448,), (1401683450,), (1401683658,), (1401683748,), (1401683812,), (1401683879,), (1401683922,), (1401683965,), (1401684115,), (1401684118,), (1401684119,), (1401684121,), (1401684123,), (1401684126,), (1401684175,), (1401684177,), (1401684179,), (1401684182,), (1401684185,), (1401684189,), (1401684205,), (1401684207,), (1401684211,), (1401684215,), (1401684219,), (1401684227,), (1401684236,), (1401684241,), (1401684243,), (1401684246,), (1401684249,), (1401684251,), (1401684253,), (1401684274,), (1401684276,), (1401684279,), (1401684281,), (1401684283,), (1401684286,), (1401684295,), (1401684308,), (1401684319,), (1401684325,), (1401684327,), (1401684355,), (1401684452,), (1401684510,), (1401684547,), (1401684551,), (1401684552,), (1401684554,), (1401684557,), (1401684559,), (1401684612,), (1401684617,), (1401684623,), (1401684659,), (1401684694,), (1401684695,), (1401684704,), (1401684707,), (1401685132,), (1401684883,), (1401684918,), (1401685020,), (1401685062,), (1401685097,), (1401685339,), (1401685341,), (1401685342,), (1401685343,), (1401686004,), (1401686020,), (1401686049,), (1401686071,), (1401686075,), (1401686090,), (1401686111,), (1401686113,), (1401686136,), (1401686143,), (1401686145,), (1401686341,), (1401686343,), (1401686345,), (1401686347,), (1401686632,), (1401686670,), (1401686711,), (1401686747,), (1401686786,), (1401687310,), (1401687349,), (1401687383,), (1401687417,), (1401687451,), (1401687463,), (1401687491,), (1401687527,), (1401687561,), (1401687923,), (1401687990,), (1401688073,), (1401688114,), (1401688153,), (1401688184,), (1401688382,), (1401688405,), (1401688414,), (1401688417,), (1401688453,), (1401688474,), (1401688499,), (1401688501,), (1401688503,), (1401688517,), (1401688529,), (1401688533,), (1401688553,), (1401688593,), (1401688602,), (1401688607,), (1401688714,), (1401688729,), (1401688733,), (1401688747,), (1401688750,), (1401688752,), (1401688782,), (1401688784,), (1401688786,), (1401688789,), (1401688792,), (1401688795,), (1401688849,), (1401688852,), (1401688856,), (1401688859,), (1401688862,), (1401688865,), (1401688942,), (1401688988,), (1401689020,), (1401689045,), (1401689055,), (1401689057,), (1401689067,), (1401689082,), (1401689097,), (1401689098,), (1401689101,), (1401689104,), (1401689334,), (1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,), (1401689625,), (1401689629,), (1401689633,), (1401689661,), (1401689667,), (1401689677,), (1401689685,), (1401689689,), (1401689830,), (1401689856,), (1401689889,), (1401689996,), (1401690000,), (1401690003,), (1401690028,), (1401690031,), (1401690034,), (1401690517,), (1401690516,), (1401690603,), (1401690606,), (1401690609,), (1401690683,), (1401690685,), (1401690699,), (1401690700,), (1401690703,), (1401690774,), (1401690776,), (1401690778,), (1401690781,), (1401691060,), (1401691063,), (1401691065,), (1401691069,), (1401691075,), (1401691099,), (1401691102,), (1401691106,), (1401691110,), (1401691116,), (1401691118,), (1401691135,), (1401691137,), (1401691139,), (1401691143,), (1401691146,), (1401691149,), (1401691166,), (1401691176,), (1401691179,), (1401691185,), (1401691192,), (1401691194,), (1401691195,), (1401691198,), (1401691251,), (1401691252,), (1401691254,), (1401691256,), (1401691259,), (1401691262,), (1401691291,), (1401691282,), (1401691285,), (1401691288,), (1401691309,), (1401691312,), (1401691313,), (1401691315,), (1401691318,), (1401691325,), (1401691349,), (1401691350,), (1401691352,), (1401691355,), (1401691375,), (1401691377,), (1401691380,), (1401691383,), (1401691389,), (1401691397,), (1401691517,), (1401691519,), (1401691520,), (1401691521,), (1401691524,), (1401691563,), (1401691564,), (1401691567,), (1401691570,), (1401691574,), (1401691578,), (1401691613,), (1401691617,), (1401691621,), (1401691625,), (1401691649,), (1401691650,), (1401691651,), (1401691653,), (1401691655,), (1401691659,), (1401691680,), (1401691684,), (1401691687,), (1401691707,), (1401691833,), (1401691834,), (1401691835,), (1401691837,), (1401691839,), (1401691841,), (1401691855,), (1401691858,), (1401691864,), (1401691868,), (1401691871,), (1401691873,), (1401691894,), (1401691895,), (1401691897,), (1401691898,), (1401691899,), (1401691901,), (1401691904,), (1401691906,), (1401691910,), (1401691911,), (1401691913,), (1401691914,), (1401691921,), (1401691924,), (1401691925,), (1401691927,), (1401691931,), (1401691934,), (1401691945,), (1401691955,), (1401691967,), (1401691975,), (1401691978,), (1401691979,), (1401692022,), (1401692024,), (1401692026,), (1401692028,), (1401692030,), (1401692032,), (1401692039,), (1401692045,), (1401692051,), (1401692056,), (1401692061,), (1401692065,), (1401692072,), (1401692073,), (1401692074,), (1401692087,), (1401692090,), (1401692092,), (1401692119,), (1401692120,), (1401692128,), (1401692131,), (1401692136,), (1401692105,), (1401692109,), (1401692113,), (1401692116,), (1401692169,), (1401692175,), (1401692178,), (1401692183,), (1401692206,), (1401692208,), (1401692213,), (1401692221,), (1401692224,), (1401692226,), (1401692271,), (1401692280,), (1401692283,), (1401692286,), (1401692290,), (1401692292,), (1401692294,), (1401692331,), (1401692336,), (1401692339,), (1401692341,), (1401692344,), (1401692347,), (1401692419,), (1401692422,), (1401692424,), (1401692429,), (1401692474,), (1401692475,), (1401692479,), (1401692481,), (1401692485,), (1401692489,), (1401692517,), (1401692519,), (1401692521,), (1401692524,), (1401692556,), (1401692564,), (1401692572,), (1401692576,), (1401692581,), (1401692588,), (1401692683,), (1401692701,), (1401692704,), (1401692708,), (1401692774,), (1401692800,), (1401692805,), (1401692814,), (1401692826,), (1401692829,), (1401692897,), (1401692907,), (1401692912,), (1401692962,), (1401692963,), (1401692972,), (1401693009,), (1401693044,), (1401693082,), (1401693199,), (1401693233,), (1401693266,), (1401693273,), (1401693330,), (1401693337,), (1401693339,), (1401693542,), (1401693519,), (1401693716,), (1401693719,), (1401693721,), (1401693724,), (1401693728,), (1401693748,), (1401693750,), (1401693752,), (1401693755,), (1401693759,), (1401693762,), (1401693793,), (1401693795,), (1401693798,), (1401693802,), (1401693807,), (1401693844,), (1401693846,), (1401693849,), (1401693871,), (1401693873,), (1401693876,), (1401693878,), (1401693882,), (1401693903,), (1401693905,), (1401693907,), (1401693929,), (1401693931,), (1401693934,), (1401693938,), (1401693942,), (1401693961,), (1401693964,), (1401693966,), (1401693969,), (1401694006,), (1401694009,), (1401694012,), (1401694017,), (1401694147,), (1401694164,), (1401694173,), (1401694195,), (1401694200,), (1401694540,), (1401694537,), (1401694572,), (1401694576,), (1401694579,), (1401694606,), (1401694608,), (1401694609,), (1401694612,), (1401694615,), (1401694618,), (1401694664,), (1401694704,), (1401694706,), (1401694708,), (1401694712,), (1401694761,), (1401694858,), (1401694892,), (1401695091,), (1401695096,), (1401695105,), (1401695118,), (1401695121,), (1401695123,), (1401695212,), (1401695213,), (1401695216,), (1401695219,), (1401695223,), (1401695227,), (1401695288,), (1401695290,), (1401695321,), (1401695325,), (1401695335,), (1401695345,), (1401695377,), (1401695399,), (1401695411,), (1401695413,), (1401695414,), (1401695416,), (1401695419,), (1401695437,), (1401695439,), (1401695440,), (1401695443,), (1401695446,), (1401695449,), (1401695476,), (1401695484,), (1401695487,), (1401695491,), (1401695495,), (1401695514,), (1401695518,), (1401695520,), (1401695526,), (1401695528,), (1401695531,), (1401695540,), (1401695545,), (1401695588,), (1401695590,), (1401695592,), (1401695594,), (1401695598,), (1401695601,), (1401695646,), (1401695679,), (1401695714,), (1401696002,), (1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,), (1401696593,), (1401696595,), (1401696597,), (1401696600,), (1401696603,), (1401696607,), (1401696626,), (1401696627,), (1401696628,), (1401696630,), (1401696634,), (1401696663,), (1401696666,), (1401696676,), (1401696680,), (1401696714,), (1401696753,), (1401696790,), (1401696795,), (1401696803,), (1401696814,), (1401696815,), (1401696816,), (1401696843,), (1401696852,), (1401696859,), (1401696929,), (1401696930,), (1401696932,), (1401696935,), (1401696939,), (1401697153,), (1401697199,), (1401697236,), (1401697368,), (1401697430,), (1401698065,), (1401698007,), (1401699796,), (1401699839,), (1401699889,), (1401700349,), (1401700351,), (1401700352,), (1401700353,), (1401700355,), (1401700495,), (1401700527,), (1401700561,), (1401700595,), (1401700820,), (1401700824,), (1401700827,), (1401700850,), (1401700932,), (1401700933,), (1401700960,), (1401700971,), (1401700973,), (1401701012,), (1401701015,), (1401701018,), (1401701024,), (1401701029,), (1401701033,), (1401701058,), (1401701060,), (1401701063,), (1401701066,), (1401701069,), (1401701072,), (1401701080,), (1401701083,), (1401701085,), (1401701087,), (1401701091,), (1401701094,), (1401701097,), (1401701125,), (1401701127,), (1401701130,), (1401701133,), (1401701182,), (1401701184,), (1401701187,), (1401701190,), (1401701193,), (1401701195,), (1401701251,), (1401701341,), (1401701767,), (1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,), (1401702667,), (1401702669,), (1401702671,), (1401702675,), (1401702679,), (1401702696,), (1401702787,), (1401702788,), (1401702789,), (1401702792,), (1401702797,), (1401702801,), (1401702817,), (1401702821,), (1401702889,), (1401702902,), (1401702904,), (1401702906,), (1401702910,), (1401702967,), (1401702955,), (1401702957,), (1401702958,), (1401702962,), (1401702995,), (1401702997,), (1401702999,), (1401703003,), (1401703027,), (1401703029,), (1401703031,), (1401703034,), (1401703037,), (1401703038,), (1401703079,), (1401703081,), (1401703086,), (1401703090,), (1401703095,), (1401703100,), (1401703110,), (1401703117,), (1401703121,), (1401703123,), (1401703125,), (1401703128,), (1401703151,), (1401703153,), (1401703155,), (1401703162,), (1401703184,), (1401703220,), (1401703228,), (1401703230,), (1401703232,), (1401703235,), (1401703239,), (1401703243,), (1401703258,), (1401703274,), (1401703277,), (1401703280,), (1401703282,), (1401703284,), (1401703306,), (1401703308,), (1401703311,), (1401703314,), (1401703317,), (1401703335,), (1401703337,), (1401703339,), (1401703342,), (1401703347,), (1401703363,), (1401703451,), (1401703454,), (1401703456,), (1401703459,), (1401703464,), (1401703497,), (1401703498,), (1401703499,), (1401703502,), (1401703503,), (1401703506,), (1401703534,), (1401703538,), (1401703540,), (1401703544,), (1401703549,), (1401703554,), (1401703597,), (1401703600,), (1401703601,), (1401703604,), (1401703605,), (1401703612,), (1401703645,), (1401703654,), (1401703659,), (1401703661,), (1401703663,), (1401703665,), (1401703688,), (1401703724,), (1401703758,), (1401703773,), (1401703776,), (1401703777,), (1401703781,), (1401703784,), (1401703791,), (1401703796,), (1401703800,), (1401703819,), (1401703836,), (1401703846,), (1401703849,), (1401703851,), (1401704178,), (1401703863,), (1401704141,), (1401704166,), (1401704168,), (1401704170,), (1401704174,), (1401704199,), (1401704201,), (1401704202,), (1401704203,), (1401704207,), (1401704261,), (1401704269,), (1401704288,), (1401704307,), (1401704340,), (1401704345,), (1401704348,), (1401704352,), (1401704354,), (1401704357,), (1401704781,), (1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,), (1401711852,), (1401711860,), (1401711862,), (1401711878,), (1401711885,), (1401711912,), (1401711913,), (1401711914,), (1401711919,), (1401711924,), (1401711934,), (1401711970,), (1401711973,), (1401711978,), (1401711979,), (1401711981,), (1401711993,), (1401712028,), (1401712062,), (1401712144,), (1401712146,), (1401712148,), (1401712150,), (1401712187,), (1401712181,), (1401712183,), (1401712185,), (1401712206,), (1401712207,), (1401712209,), (1401712231,), (1401712234,), (1401712236,), (1401712277,), (1401712278,), (1401712280,), (1401712281,), (1401712313,), (1401712314,), (1401712659,), (1401712660,), (1401712661,), (1401712718,), (1401712724,), (1401712730,), (1401712734,), (1401712738,), (1401712741,), (1401712921,), (1401712924,), (1401712964,), (1401713019,), (1401713053,), (1401713104,), (1401713177,), (1401713180,), (1401713184,), (1401713189,), (1401713193,), (1401713218,), (1401713228,), (1401713255,), (1401713286,), (1401713292,), (1401713298,), (1401713318,), (1401713319,), (1401713321,), (1401713357,), (1401713359,), (1401713361,), (1401713365,), (1401713368,), (1401713370,), (1401713378,), (1401713387,), (1401713390,), (1401713391,), (1401713424,), (1401713425,), (1401713427,), (1401713451,), (1401713452,), (1401713455,), (1401713458,), (1401713461,), (1401713464,), (1401713481,), (1401713484,), (1401715701,), (1401716405,), (1401716443,), (1401716454,), (1401716498,), (1401716500,), (1401716503,), (1401716534,), (1401716571,), (1401716606,), (1401716816,), (1401716905,), (1401716977,), (1401717206,), (1401717239,), (1401717292,), (1401717773,), (1401717806,), (1401717841,), (1401717877,), (1401718266,), (1401718301,), (1401718334,), (1401718369,), (1401718378,), (1401718414,), (1401718436,), (1401718472,), (1401718509,), (1401718544,), (1401718753,), (1401718789,), (1401718811,), (1401718814,), (1401718819,), (1401718905,), (1401718907,), (1401718910,), (1401718914,), (1401718918,), (1401718973,), (1401718975,), (1401718977,), (1401718978,), (1401718985,), (1401719008,), (1401719079,), (1401719083,), (1401719110,), (1401719115,), (1401719177,), (1401719207,), (1401719218,), (1401719226,), (1401719230,), (1401719234,), (1401719368,), (1401719397,), (1401719400,), (1401719424,), (1401719460,), (1401719531,), (1401719851,), (1401719857,), (1401719862,), (1401719866,), (1401719869,), (1401719872,), (1401719881,), (1401719883,), (1401719886,), (1401719888,), (1401719892,), (1401719901,), (1401719934,), (1401719935,), (1401719940,), (1401719941,), (1401719944,), (1401719945,), (1401719953,), (1401719954,), (1401719962,), (1401719964,), (1401719998,), (1401720000,), (1401720253,), (1401720261,), (1401720347,), (1401720216,), (1401720221,), (1401720247,), (1401720250,), (1401720361,), (1401720378,), (1401720394,), (1401720447,), (1401720449,), (1401720451,), (1401720455,), (1401720482,), (1401720485,), (1401720489,), (1401720495,), (1401720501,), (1401720516,), (1401720604,), (1401720606,), (1401720612,), (1401720615,), (1401720619,), (1401720620,), (1401720697,), (1401720729,), (1401720969,), (1401720971,), (1401720973,), (1401720996,), (1401721004,), (1401721075,), (1401721076,), (1401721101,), (1401721106,), (1401721128,), (1401721135,), (1401721169,), (1401721172,), (1401721191,), (1401721199,), (1401721200,), (1401721202,), (1401721204,), (1401721210,), (1401721359,), (1401721362,), (1401721364,), (1401721367,), (1401721422,), (1401721423,), (1401721425,), (1401721428,), (1401721431,), (1401721435,), (1401721452,), (1401721462,), (1401721465,), (1401721469,), (1401721472,), (1401721503,), (1401721506,), (1401721562,), (1401721564,), (1401721567,), (1401721569,), (1401721572,), (1401721610,), (1401721624,), (1401721641,), (1401721654,), (1401721658,), (1401721664,), (1401721707,), (1401721681,), (1401721685,), (1401721694,), (1401721702,), (1401721769,), (1401721771,), (1401721774,), (1401721802,), (1401721803,), (1401721806,), (1401721809,), (1401721812,), (1401721813,), (1401721831,), (1401721833,), (1401721837,), (1401721851,), (1401721858,), (1401721864,), (1401721883,), (1401721888,), (1401721891,), (1401721895,), (1401721897,), (1401721899,), (1401721911,), (1401721912,), (1401721920,), (1401721925,), (1401721934,), (1401721939,), (1401721940,), (1401721943,), (1401721962,), (1401721963,), (1401722077,), (1401722080,), (1401722083,), (1401722104,), (1401722108,), (1401722140,), (1401722142,), (1401722152,), (1401722162,), (1401722165,), (1401722168,), (1401722223,), (1401722224,), (1401722225,), (1401722227,), (1401722234,), (1401722437,), (1401722439,), (1401722442,), (1401722445,), (1401722497,), (1401722500,), (1401722502,), (1401722503,), (1401722507,), (1401722510,), (1401722659,), (1401722661,), (1401722664,), (1401722669,), (1401722674,), (1401722679,), (1401722716,), (1401722719,), (1401722729,), (1401722738,), (1401722740,), (1401722742,), (1401722843,), (1401722876,), (1401722905,), (1401722909,), (1401722912,), (1401722923,), (1401722936,), (1401722941,), (1401722945,), (1401722951,), (1401722962,), (1401722967,), (1401722973,), (1401722997,), (1401722978,), (1401722981,), (1401722985,), (1401722989,), (1401722993,), (1401723013,), (1401723020,), (1401723023,), (1401723026,), (1401723031,), (1401723070,), (1401723074,), (1401723077,), (1401723258,), (1401723284,), (1401723287,), (1401723291,), (1401723296,), (1401723322,), (1401723324,), (1401723327,), (1401723329,), (1401723333,), (1401723349,), (1401723352,), (1401723354,), (1401723357,), (1401723360,), (1401723366,), (1401723378,), (1401723381,), (1401723383,), (1401723732,), (1401723758,), (1401723770,), (1401723786,), (1401723792,), (1401723795,), (1401723810,), (1401723812,), (1401723871,), (1401723886,), (1401723900,), (1401723903,), (1401723907,), (1401723941,), (1401723943,), (1401723973,), (1401723979,), (1401723981,), (1401723983,), (1401724050,), (1401724053,), (1401724055,), (1401724058,), (1401724064,), (1401724086,), (1401724089,), (1401724093,), (1401724099,), (1401724138,), (1401724141,), (1401724143,), (1401724145,), (1401724149,), (1401724182,), (1401724188,), (1401724192,), (1401724195,), (1401724199,), (1401724202,), (1401724251,), (1401724260,), (1401724265,), (1401724289,), (1401724278,), (1401724282,), (1401724285,), (1401724325,), (1401724327,), (1401724328,), (1401724367,), (1401724368,), (1401724370,), (1401724373,), (1401724376,), (1401724378,), (1401724389,), (1401724397,), (1401724398,), (1401724399,), (1401724401,), (1401724437,), (1401724439,), (1401724443,), (1401724446,), (1401724476,), (1401724478,), (1401724480,), (1401724483,), (1401724487,), (1401724518,), (1401724520,), (1401724522,), (1401724526,), (1401724531,), (1401724535,), (1401724552,), (1401724554,), (1401724557,), (1401724596,), (1401724599,), (1401724602,), (1401724606,), (1401724611,), (1401724613,), (1401724634,), (1401724636,), (1401724638,), (1401724642,), (1401724647,), (1401724665,), (1401724667,), (1401724669,), (1401724672,), (1401724702,), (1401724704,), (1401724706,), (1401724709,), (1401724728,), (1401724730,), (1401724733,), (1401724737,), (1401724741,), (1401724744,), (1401724766,), (1401724769,), (1401724771,), (1401724773,), (1401724799,), (1401724801,), (1401724805,), (1401724808,), (1401724856,), (1401724860,), (1401724864,), (1401725080,), (1401725075,), (1401725076,), (1401725077,), (1401725155,), (1401725158,), (1401725226,), (1401725229,), (1401725234,), (1401725303,), (1401725305,), (1401725306,), (1401725308,), (1401725312,), (1401725337,), (1401725339,), (1401725340,), (1401725382,), (1401725385,), (1401725388,), (1401725391,), (1401725395,), (1401725398,), (1401725419,), (1401725421,), (1401725423,), (1401725425,), (1401725428,), (1401725447,), (1401725449,), (1401725451,), (1401725480,), (1401725482,), (1401725484,), (1401725487,), (1401725491,), (1401725494,), (1401725515,), (1401725518,), (1401725539,), (1401725542,), (1401725544,), (1401725546,), (1401725549,), (1401725552,), (1401725575,), (1401725580,), (1401725581,), (1401725690,), (1401725694,), (1401725698,), (1401725724,), (1401725760,), (1401725821,), (1401725983,), (1401725985,), (1401725986,), (1401725993,), (1401725998,), (1401726119,), (1401726121,), (1401726123,), (1401726127,), (1401726132,), (1401726137,), (1401726287,), (1401726292,), (1401726294,), (1401726296,), (1401726376,), (1401726396,), (1401726410,), (1401726501,), (1401726497,), (1401726499,), (1401726566,), (1401726602,), (1401726639,), (1401726759,), (1401726762,), (1401726763,), (1401726766,), (1401726769,), (1401726772,), (1401726799,), (1401726801,), (1401726803,), (1401726806,), (1401726808,), (1401726811,), (1401726814,), (1401726844,), (1401726848,), (1401726852,), (1401726857,), (1401726861,), (1401726864,), (1401726875,), (1401726877,), (1401726895,), (1401726896,), (1401726897,), (1401726900,), (1401726962,), (1401726964,), (1401726967,), (1401726975,), (1401726980,), (1401727020,), (1401727021,), (1401727022,), (1401727069,), (1401727082,), (1401727086,), (1401727109,), (1401727111,), (1401727114,), (1401727116,), (1401727126,), (1401727205,), (1401727209,), (1401727213,), (1401727219,), (1401727223,), (1401727284,), (1401727285,), (1401727287,), (1401727291,), (1401727295,), (1401727299,), (1401727345,), (1401727402,), (1401727446,), (1401727683,), (1401727699,), (1401727720,), (1401727728,), (1401728132,), (1401728179,), (1401728223,), (1401728238,), (1401728241,), (1401728255,), (1401728423,), (1401728357,), (1401728358,), (1401728390,), (1401728471,), (1401728474,), (1401728477,), (1401728648,), (1401728742,), (1401728825,), (1401728896,), (1401729086,), (1401729176,), (1401729210,), (1401729234,), (1401729265,), (1401729267,), (1401729269,), (1401729308,), (1401729310,), (1401729312,), (1401729315,), (1401729351,), (1401729353,), (1401729359,), (1401729367,), (1401729370,), (1401729404,), (1401729407,), (1401729412,), (1401729418,), (1401729423,), (1401729438,), (1401729525,), (1401729529,), (1401729537,), (1401729544,), (1401729555,), (1401729557,), (1401729559,), (1401729561,), (1401729584,), (1401729588,), (1401729626,), (1401729629,), (1401729631,), (1401729633,), (1401729720,), (1401729736,), (1401729737,), (1401729745,), (1401729956,), (1401729957,), (1401729960,), (1401729963,), (1401729967,), (1401730167,), (1401730173,), (1401730178,), (1401730183,), (1401730186,), (1401730190,), (1401730196,), (1401730215,), (1401730248,), (1401730282,), (1401730623,), (1401730430,), (1401730467,), (1401730501,), (1401730552,), (1401731361,), (1401731418,), (1401731486,), (1401731570,), (1401731655,), (1401732647,), (1401732731,), (1401732819,), (1401732888,), (1401732952,), (1401732958,), (1401732993,), (1401732994,), (1401732997,), (1401733004,), (1401733038,), (1401733072,), (1401733190,), (1401733223,), (1401733255,), (1401733305,), (1401733371,), (1401733432,), (1401733558,), (1401733608,), (1401733677,), (1401733739,), (1401733774,), (1401733808,), (1401734014,), (1401734015,), (1401734017,), (1401734479,), (1401734514,), (1401734552,), (1401734589,), (1401734625,), (1401734948,), (1401734980,), (1401735015,), (1401735050,), (1401735085,), (1401735122,), (1401735391,), (1401735392,), (1401735419,), (1401735454,), (1401735622,), (1401735625,), (1401735627,), (1401735631,), (1401735636,), (1401736131,), (1401736170,), (1401736201,), (1401736234,), (1401736266,), (1401736290,), (1401736447,), (1401736453,), (1401736454,), (1401736456,), (1401736461,), (1401736465,), (1401736488,), (1401736491,), (1401736503,), (1401736513,), (1401736531,), (1401736535,), (1401736553,), (1401736554,), (1401736555,), (1401736559,), (1401736568,), (1401736571,), (1401736575,), (1401736578,), (1401736581,), (1401736608,), (1401736611,), (1401736615,), (1401736617,), (1401736652,), (1401736650,), (1401736719,), (1401736720,), (1401736721,), (1401736814,), (1401736851,), (1401736882,), (1401736916,), (1401737021,), (1401737058,), (1401737081,), (1401737084,), (1401737086,), (1401737170,), (1401737171,), (1401737173,), (1401737205,), (1401737207,), (1401737209,), (1401737251,), (1401737253,), (1401737255,), (1401737258,), (1401737281,), (1401737283,), (1401737285,), (1401737288,), (1401737291,), (1401737298,), (1401737310,), (1401737312,), (1401737313,), (1401737327,), (1401737330,), (1401737334,), (1401737338,), (1401737342,), (1401737377,), (1401737381,), (1401737400,), (1401737730,), (1401737793,), (1401737829,), (1401737869,), (1401737907,), (1401737944,), (1401738077,), (1401738078,), (1401738079,), (1401738082,), (1401738087,), (1401738184,), (1401738186,), (1401738189,), (1401738193,), (1401738219,), (1401738221,), (1401738223,), (1401738226,), (1401738320,), (1401738342,), (1401738352,), (1401738355,), (1401738358,), (1401738360,), (1401738434,), (1401738428,), (1401738430,), (1401738431,), (1401738489,), (1401738490,), (1401738494,), (1401738534,), (1401738537,), (1401738539,), (1401738542,), (1401738545,), (1401738547,), (1401738558,), (1401738567,), (1401738571,), (1401738573,), (1401738575,), (1401738605,), (1401738608,), (1401738611,), (1401738615,), (1401738618,), (1401738713,), (1401738717,), (1401738826,), (1401738844,), (1401738858,), (1401738867,), (1401738870,), (1401738872,), (1401738983,), (1401738986,), (1401738988,), (1401738991,), (1401739015,), (1401739017,), (1401739020,), (1401739024,), (1401739028,), (1401739066,), (1401739068,), (1401739070,), (1401739098,), (1401739350,), (1401741346,), (1401740703,), (1401741625,), (1401741939,), (1401742075,), (1401742078,), (1401742080,), (1401742245,), (1401742247,), (1401742249,), (1401742253,), (1401742257,), (1401742275,), (1401742299,), (1401742301,), (1401742349,), (1401742338,), (1401742340,), (1401742342,), (1401742345,), (1401742401,), (1401742404,), (1401742406,), (1401742621,), (1401742624,), (1401742761,), (1401742762,), (1401742911,), (1401742945,), (1401742976,), (1401743000,), (1401743003,), (1401743005,), (1401743006,), (1401743009,), (1401743040,), (1401743042,), (1401743044,), (1401743047,), (1401743067,), (1401743069,), (1401743071,), (1401743075,), (1401743079,), (1401743081,), (1401743090,), (1401743092,), (1401743096,), (1401743099,), (1401743105,), (1401743108,), (1401743111,), (1401743136,), (1401743137,), (1401743138,), (1401743141,), (1401743172,), (1401743175,), (1401743178,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29823135]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] map_info['map_portfolio_photo'] : {29823135: [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105, 1401743099, 1401743096, 1401743092, 1401743090, 1401743081, 1401743079, 1401743075, 1401743071, 1401743069, 1401743067, 1401743047, 1401743044, 1401743042, 1401743040, 1401743009, 1401743006, 1401743005, 1401743003, 1401743000, 1401742976, 1401742945, 1401742911, 1401742762, 1401742761, 1401742624, 1401742621, 1401742406, 1401742404, 1401742401, 1401742345, 1401742342, 1401742340, 1401742338]} final : True mtd_id 4302 list_pids : [1401743178, 1401743175, 1401743172, 1401743141, 1401743138, 1401743137, 1401743136, 1401743111, 1401743108, 1401743105] Looping around the photos to save general results len do output : 1 /29823135Didn'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, '4291015') ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015') ('4302', None, None, None, None, None, None, None, '4291015') ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015') 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', None, '29823135', 'None', None, None, None, None, '4291015'), ('4302', '29823135', '1401743178', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743175', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743172', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743141', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743138', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743137', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743136', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743111', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743108', None, None, None, None, None, '4291015'), ('4302', '29823135', '1401743105', None, None, None, None, None, '4291015')] time used for this insertion : 0.016415834426879883 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8025856018066406 time spend to save output : 0.016698360443115234 total time spend for step 5 : 3.819283962249756 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 (4291015) 2.49user 2.32system 0:12.67elapsed 37%CPU (0avgtext+0avgdata 166324maxresident)k 11360inputs+9504outputs (95major+79390minor)pagefaults 0swaps