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 : 2174081 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 (4252287) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4252287) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582620 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4252287'] with mtr_portfolio_ids : ['29582620'] and first list_photo_ids : [] new path : /proc/2174081/ Name: python3 Umask: 0002 State: R (running) Tgid: 2174081 Ngid: 0 Pid: 2174081 PPid: 2174080 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2174081 NSpid: 2174081 NSpgid: 2173102 NSsid: 2173102 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104240 kB VmRSS: 104240 kB RssAnon: 66296 kB RssFile: 37944 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2174081', 'Ngid': '0', 'Pid': '2174081', 'PPid': '2174080', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2174081', 'NSpid': '2174081', 'NSpgid': '2173102', 'NSsid': '2173102', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104240 kB', 'VmRSS': '104240 kB', 'RssAnon': '66296 kB', 'RssFile': '37944 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2174081', '1113364', '0', '1113364', '872092', '104240', b'', 'marlene', '4252287') 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 (29582620) 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 (4252287 ) ) 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 (29582620) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400249913, 'portfolio_id': 29582620}, {'photo_id': 1400248086, 'portfolio_id': 29582620}, {'photo_id': 1400247993, 'portfolio_id': 29582620}, {'photo_id': 1400247887, 'portfolio_id': 29582620}, {'photo_id': 1400247814, 'portfolio_id': 29582620}, {'photo_id': 1400247721, 'portfolio_id': 29582620}, {'photo_id': 1400247197, 'portfolio_id': 29582620}, {'photo_id': 1400247089, 'portfolio_id': 29582620}, {'photo_id': 1400246965, 'portfolio_id': 29582620}, {'photo_id': 1400246846, 'portfolio_id': 29582620}, {'photo_id': 1400245926, 'portfolio_id': 29582620}, {'photo_id': 1400245923, 'portfolio_id': 29582620}, {'photo_id': 1400245920, 'portfolio_id': 29582620}, {'photo_id': 1400245918, 'portfolio_id': 29582620}, {'photo_id': 1400245916, 'portfolio_id': 29582620}, {'photo_id': 1400245914, 'portfolio_id': 29582620}, {'photo_id': 1400245592, 'portfolio_id': 29582620}, {'photo_id': 1400245557, 'portfolio_id': 29582620}, {'photo_id': 1400245523, 'portfolio_id': 29582620}, {'photo_id': 1400245490, 'portfolio_id': 29582620}, {'photo_id': 1400245180, 'portfolio_id': 29582620}, {'photo_id': 1400245145, 'portfolio_id': 29582620}, {'photo_id': 1400245122, 'portfolio_id': 29582620}, {'photo_id': 1400245120, 'portfolio_id': 29582620}, {'photo_id': 1400245118, 'portfolio_id': 29582620}, {'photo_id': 1400245117, 'portfolio_id': 29582620}, {'photo_id': 1400244855, 'portfolio_id': 29582620}, {'photo_id': 1400244853, 'portfolio_id': 29582620}, {'photo_id': 1400244851, 'portfolio_id': 29582620}, {'photo_id': 1400244399, 'portfolio_id': 29582620}, {'photo_id': 1400244331, 'portfolio_id': 29582620}, {'photo_id': 1400244269, 'portfolio_id': 29582620}, {'photo_id': 1400244184, 'portfolio_id': 29582620}, {'photo_id': 1400244078, 'portfolio_id': 29582620}, {'photo_id': 1400244001, 'portfolio_id': 29582620}, {'photo_id': 1400243878, 'portfolio_id': 29582620}, {'photo_id': 1400243843, 'portfolio_id': 29582620}, {'photo_id': 1400243809, 'portfolio_id': 29582620}, {'photo_id': 1400243774, 'portfolio_id': 29582620}, {'photo_id': 1400243731, 'portfolio_id': 29582620}, {'photo_id': 1400243693, 'portfolio_id': 29582620}, {'photo_id': 1400243630, 'portfolio_id': 29582620}, {'photo_id': 1400243627, 'portfolio_id': 29582620}, {'photo_id': 1400243622, 'portfolio_id': 29582620}, {'photo_id': 1400243619, 'portfolio_id': 29582620}, {'photo_id': 1400243614, 'portfolio_id': 29582620}, {'photo_id': 1400243612, 'portfolio_id': 29582620}, {'photo_id': 1400243610, 'portfolio_id': 29582620}, {'photo_id': 1400243607, 'portfolio_id': 29582620}, {'photo_id': 1400243604, 'portfolio_id': 29582620}, {'photo_id': 1400243603, 'portfolio_id': 29582620}, {'photo_id': 1400243291, 'portfolio_id': 29582620}, {'photo_id': 1400243257, 'portfolio_id': 29582620}, {'photo_id': 1400243220, 'portfolio_id': 29582620}, {'photo_id': 1400243185, 'portfolio_id': 29582620}, {'photo_id': 1400243150, 'portfolio_id': 29582620}, {'photo_id': 1400243108, 'portfolio_id': 29582620}, {'photo_id': 1400242778, 'portfolio_id': 29582620}, {'photo_id': 1400242736, 'portfolio_id': 29582620}, {'photo_id': 1400242734, 'portfolio_id': 29582620}, {'photo_id': 1400242703, 'portfolio_id': 29582620}, {'photo_id': 1400242350, 'portfolio_id': 29582620}, {'photo_id': 1400242233, 'portfolio_id': 29582620}, {'photo_id': 1400242102, 'portfolio_id': 29582620}, {'photo_id': 1400241518, 'portfolio_id': 29582620}, {'photo_id': 1400241515, 'portfolio_id': 29582620}, {'photo_id': 1400241513, 'portfolio_id': 29582620}, {'photo_id': 1400241512, 'portfolio_id': 29582620}, {'photo_id': 1400241510, 'portfolio_id': 29582620}, {'photo_id': 1400241349, 'portfolio_id': 29582620}, {'photo_id': 1400241311, 'portfolio_id': 29582620}, {'photo_id': 1400241277, 'portfolio_id': 29582620}, {'photo_id': 1400241243, 'portfolio_id': 29582620}, {'photo_id': 1400241206, 'portfolio_id': 29582620}, {'photo_id': 1400241173, 'portfolio_id': 29582620}, {'photo_id': 1400240821, 'portfolio_id': 29582620}, {'photo_id': 1400240802, 'portfolio_id': 29582620}, {'photo_id': 1400240800, 'portfolio_id': 29582620}] map_portfolio_id_photo_id: {29582620: [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721, 1400247197, 1400247089, 1400246965, 1400246846, 1400245926, 1400245923, 1400245920, 1400245918, 1400245916, 1400245914, 1400245592, 1400245557, 1400245523, 1400245490, 1400245180, 1400245145, 1400245122, 1400245120, 1400245118, 1400245117, 1400244855, 1400244853, 1400244851, 1400244399, 1400244331, 1400244269, 1400244184, 1400244078, 1400244001, 1400243878, 1400243843, 1400243809, 1400243774, 1400243731, 1400243693, 1400243630, 1400243627, 1400243622, 1400243619, 1400243614, 1400243612, 1400243610, 1400243607, 1400243604, 1400243603, 1400243291, 1400243257, 1400243220, 1400243185, 1400243150, 1400243108, 1400242778, 1400242736, 1400242734, 1400242703, 1400242350, 1400242233, 1400242102, 1400241518, 1400241515, 1400241513, 1400241512, 1400241510, 1400241349, 1400241311, 1400241277, 1400241243, 1400241206, 1400241173, 1400240821, 1400240802, 1400240800]} ##### 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.019860506057739258 #### 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 Sat Dec 20 01:05: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 (29582620) 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 : 29582620 get user id for portfolio 29582620 get sub ptf for main ptf 29582620, type 3726 and hashtags ['Carton_gris', 'flou', 'Teint_Dans_La_Masse', 'plastique', 'environnement', 'Carton_brun', 'kraft', 'mal_croppe', 'cartonnette', 'autre_refus', 'papier', 'metal'] 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`=29582620 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','mal_croppe','cartonnette','autre_refus','papier','metal')) 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`=29582620 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','mal_croppe','cartonnette','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29582620, 'sub_port_id': 29582629, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188846, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29582620, 'sub_port_id': 29582630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188847, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'plastique': {'main_port_id': 29582620, 'sub_port_id': 29582632, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188848, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'metal': {'main_port_id': 29582620, 'sub_port_id': 29582635, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188849, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'papier': {'main_port_id': 29582620, 'sub_port_id': 29582637, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188850, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'Carton_gris': {'main_port_id': 29582620, 'sub_port_id': 29582639, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188851, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'cartonnette': {'main_port_id': 29582620, 'sub_port_id': 29582641, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188852, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'autre_refus': {'main_port_id': 29582620, 'sub_port_id': 29582643, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188853, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'kraft': {'main_port_id': 29582620, 'sub_port_id': 29582645, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188854, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'environnement': {'main_port_id': 29582620, 'sub_port_id': 29582648, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188855, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'flou': {'main_port_id': 29582620, 'sub_port_id': 29582650, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188856, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}, 'mal_croppe': {'main_port_id': 29582620, 'sub_port_id': 29582652, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188857, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29582629 , 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=29582620 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 (29582629) result : ((1400242456,), (1400243379,), (1400243381,), (1400243625,), (1400243626,), (1400243765,), (1400243997,), (1400243998,), (1400243999,), (1400244000,), (1400245075,), (1400245076,), (1400245077,), (1400245792,), (1400246336,), (1400246340,), (1400248839,), (1400248841,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582630 , 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=29582620 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 (29582630) result : ((1400242453,), (1400243344,), (1400243346,), (1400243620,), (1400243621,), (1400243734,), (1400243971,), (1400245046,), (1400245050,), (1400245757,), (1400245759,), (1400245931,), (1400245932,), (1400248770,), (1400248773,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582632 , 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=29582620 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 (29582632) result : ((1400246382,), (1400246386,), (1400246390,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582635 , 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=29582620 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 (29582635) result : ((1400243777,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582637 , 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=29582620 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 (29582637) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582639 , 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=29582620 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 (29582639) result : ((1400242455,), (1400243756,), (1400243987,), (1400245769,), (1400246250,), (1400246254,), (1400248791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582641 , 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=29582620 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 (29582641) result : ((1400243369,), (1400243623,), (1400243624,), (1400243994,), (1400243996,), (1400245074,), (1400245780,), (1400245782,), (1400245784,), (1400246291,), (1400246295,), (1400246299,), (1400246303,), (1400248812,), (1400248815,), (1400248818,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582643 , 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=29582620 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 (29582643) result : ((1400243357,), (1400243359,), (1400243746,), (1400243748,), (1400243979,), (1400245072,), (1400245073,), (1400246229,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582645 , 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=29582620 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 (29582645) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582648 , 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=29582620 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 (29582648) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582650 , 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=29582620 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 (29582650) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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 29582652 , 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=29582620 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 (29582652) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29582620) result : ((1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) 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 (1400240800) 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`=29582620 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','mal_croppe','cartonnette','autre_refus','papier','metal')) 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`=29582620 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','mal_croppe','cartonnette','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29582620, 'sub_port_id': 29582660, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188876, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29582620, 'sub_port_id': 29582661, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188877, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'plastique': {'main_port_id': 29582620, 'sub_port_id': 29582662, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188878, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'metal': {'main_port_id': 29582620, 'sub_port_id': 29582663, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188879, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'papier': {'main_port_id': 29582620, 'sub_port_id': 29582664, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188880, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'Carton_gris': {'main_port_id': 29582620, 'sub_port_id': 29582665, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188881, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'cartonnette': {'main_port_id': 29582620, 'sub_port_id': 29582666, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188882, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'autre_refus': {'main_port_id': 29582620, 'sub_port_id': 29582667, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188883, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'kraft': {'main_port_id': 29582620, 'sub_port_id': 29582668, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188884, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'environnement': {'main_port_id': 29582620, 'sub_port_id': 29582669, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188885, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'flou': {'main_port_id': 29582620, 'sub_port_id': 29582670, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188886, 'last_updated_at': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 19, 23, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}, 'mal_croppe': {'main_port_id': 29582620, 'sub_port_id': 29582671, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20188887, 'last_updated_at': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 20, 0, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 19, 23, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582660,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582661,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582662,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582663,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582664,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582665,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582666,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582667,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582643 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582645 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582648 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582650 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29582671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29582652 lien utilise dans velours : https://marlene.fotonower.com/velours/29582660,29582661,29582662,29582663,29582664,29582665,29582666,29582667,29582668,29582669,29582670,29582671?tags=Carton_brun,Teint_Dans_La_Masse,plastique,metal,papier,Carton_gris,cartonnette,autre_refus,kraft,environnement,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29582620]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] map_info['map_portfolio_photo'] : {29582620: [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721, 1400247197, 1400247089, 1400246965, 1400246846, 1400245926, 1400245923, 1400245920, 1400245918, 1400245916, 1400245914, 1400245592, 1400245557, 1400245523, 1400245490, 1400245180, 1400245145, 1400245122, 1400245120, 1400245118, 1400245117, 1400244855, 1400244853, 1400244851, 1400244399, 1400244331, 1400244269, 1400244184, 1400244078, 1400244001, 1400243878, 1400243843, 1400243809, 1400243774, 1400243731, 1400243693, 1400243630, 1400243627, 1400243622, 1400243619, 1400243614, 1400243612, 1400243610, 1400243607, 1400243604, 1400243603, 1400243291, 1400243257, 1400243220, 1400243185, 1400243150, 1400243108, 1400242778, 1400242736, 1400242734, 1400242703, 1400242350, 1400242233, 1400242102, 1400241518, 1400241515, 1400241513, 1400241512, 1400241510, 1400241349, 1400241311, 1400241277, 1400241243, 1400241206, 1400241173, 1400240821, 1400240802, 1400240800]} final : False mtd_id 4302 list_pids : [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] Looping around the photos to save general results len do output : 1 /29582620. 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, '4252287') ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '29582620', "{'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652}", None, None, None, None, '4252287'), ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287')] time used for this insertion : 0.015749454498291016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5557632446289062 time spend to save output : 0.016008615493774414 total time spend for step 1 : 0.5717718601226807 step2:final Sat Dec 20 01:05: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 (29582620) 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 29582620 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400240821,1400240802,1400240800,1400241349,1400241311,1400241277,1400241243,1400241206,1400241173,1400241518,1400241515,1400241513,1400241512,1400241510,1400242350,1400242233,1400242102,1400242778,1400242736,1400242734,1400242703,1400243291,1400243630,1400243257,1400243627,1400243220,1400243622,1400243185,1400243619,1400243150,1400243614,1400243108,1400243612,1400243610,1400243607,1400243604,1400243603,1400243878,1400243843,1400243809,1400243774,1400243731,1400243693,1400244399,1400244331,1400244269,1400244184,1400244078,1400244001,1400244855,1400244853,1400244851,1400245180,1400245145,1400245122,1400245120,1400245118,1400245117,1400245592,1400245557,1400245523,1400245490,1400245926,1400245923,1400245920,1400245918,1400245916,1400245914,1400247197,1400247089,1400246965,1400246846,1400248086,1400247993,1400247887,1400247814,1400247721,1400249913); 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([29582620]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} new output for save of step final : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] map_info['map_portfolio_photo'] : {29582620: [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721, 1400247197, 1400247089, 1400246965, 1400246846, 1400245926, 1400245923, 1400245920, 1400245918, 1400245916, 1400245914, 1400245592, 1400245557, 1400245523, 1400245490, 1400245180, 1400245145, 1400245122, 1400245120, 1400245118, 1400245117, 1400244855, 1400244853, 1400244851, 1400244399, 1400244331, 1400244269, 1400244184, 1400244078, 1400244001, 1400243878, 1400243843, 1400243809, 1400243774, 1400243731, 1400243693, 1400243630, 1400243627, 1400243622, 1400243619, 1400243614, 1400243612, 1400243610, 1400243607, 1400243604, 1400243603, 1400243291, 1400243257, 1400243220, 1400243185, 1400243150, 1400243108, 1400242778, 1400242736, 1400242734, 1400242703, 1400242350, 1400242233, 1400242102, 1400241518, 1400241515, 1400241513, 1400241512, 1400241510, 1400241349, 1400241311, 1400241277, 1400241243, 1400241206, 1400241173, 1400240821, 1400240802, 1400240800]} final : False mtd_id 4302 list_pids : [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] Looping around the photos to save general results len do output : 6 /1400249913.Didn't retrieve data . /1400248086.Didn't retrieve data . /1400247993.Didn't retrieve data . /1400247887.Didn't retrieve data . /1400247814.Didn't retrieve data . /1400247721.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, '4252287') ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29582620', '1400249913', '0.04000177893190917', None, None, None, None, '4252287'), ('4302', '29582620', '1400248086', '0.04000177893190917', None, None, None, None, '4252287'), ('4302', '29582620', '1400247993', '0.04000177893190917', None, None, None, None, '4252287'), ('4302', '29582620', '1400247887', '0.04000177893190917', None, None, None, None, '4252287'), ('4302', '29582620', '1400247814', '0.04000177893190917', None, None, None, None, '4252287'), ('4302', '29582620', '1400247721', '0.04000177893190917', None, None, None, None, '4252287')] time used for this insertion : 0.017650127410888672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08400416374206543 time spend to save output : 0.01800251007080078 total time spend for step 2 : 0.10200667381286621 step3:velours_tree Sat Dec 20 01:05: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 : {29582620: [{'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652}]} input_args_next_step : {29582620: ()} output_args : {29582620: [{'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652}]} args : 29582620 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29582620) 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([29582620]) 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.5307292938232422 time spend to save output : 6.222724914550781e-05 total time spend for step 3 : 0.5307915210723877 step4:send_mail_cod Sat Dec 20 01:05: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 : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} input_args_next_step : {1400249913: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400249913 depend.output_id : 0 input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400248086 depend.output_id : 0 input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400247993 depend.output_id : 0 input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400247887 depend.output_id : 0 input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400247814 depend.output_id : 0 input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ()} output_args : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',)} args : 1400247721 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 : {29582620: [{'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652}]} input_args_next_step : {1400249913: ('0.04000177893190917',), 1400248086: ('0.04000177893190917',), 1400247993: ('0.04000177893190917',), 1400247887: ('0.04000177893190917',), 1400247814: ('0.04000177893190917',), 1400247721: ('0.04000177893190917',), 29582620: ()} output_args : {29582620: [{'Carton_brun': 29582629, 'Teint_Dans_La_Masse': 29582630, 'plastique': 29582632, 'metal': 29582635, 'papier': 29582637, 'Carton_gris': 29582639, 'cartonnette': 29582641, 'autre_refus': 29582643, 'kraft': 29582645, 'environnement': 29582648, 'flou': 29582650, 'mal_croppe': 29582652}]} args : 29582620 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 :7, first value : ('0.04000177893190917',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29582620) 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 (1400249913,1400248086,1400247993,1400247887,1400247814,1400247721) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400247721 begin to download photo : 1400247887 begin to download photo : 1400248086 download finish for photo 1400247721 begin to download photo : 1400247814 download finish for photo 1400247887 begin to download photo : 1400247993 download finish for photo 1400248086 begin to download photo : 1400249913 download finish for photo 1400247814 download finish for photo 1400249913 download finish for photo 1400247993 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 : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P29582620_20-12-2025_01_06_00.pdf 29582632 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=29582632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400246382: '1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220404_0.png', 1400246386: '1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220429_0.png', 1400246390: '1766185146_1145060_1400244078_076fc78b1b511ea8195c206c88886784_rle_crop_4076220444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/6176e5c47d9b06cfd5dc457fbcdf308d_63726361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/f2d2df9473c96bc6a4ca6091899dad57_66685346.png change filename to text .imagette295826321766189160/ imagette295826321766189160/1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220429_0.png.png imagette295826321766189160/1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220404_0.png.png imagette295826321766189160/1766185146_1145060_1400244078_076fc78b1b511ea8195c206c88886784_rle_crop_4076220444_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/28601ca87a0bf296b59aeaef025233ea_31323385.png imagette295826321766189160 29582635 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=29582635 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400243777: '1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189975_0.png'} change filename to text .imagette295826351766189160/ imagette295826351766189160/1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189975_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/56803602a5050b51dd979257f213acbf_25194892.png imagette295826351766189160 29582641 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=29582641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400243369: '1766184666_1121594_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178996_0.png', 1400243623: '1766184746_1128167_1400242736_9fb1c3a5ef733cd08d57e457986d5e8f_rle_crop_4076185558_0.png', 1400243624: '1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185581_0.png', 1400243994: '1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191638_0.png', 1400243996: '1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191630_0.png', 1400245074: '1766184906_1136400_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178996_0.png', 1400245780: '1766185027_1140804_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206226_0.png', 1400245782: '1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206233_0.png', 1400245784: '1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206236_0.png', 1400246291: '1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220398_0.png', 1400246295: '1766185146_1145060_1400244269_61aea451f35f81078d957d94f974a379_rle_crop_4076220420_0.png', 1400246299: '1766185146_1145060_1400244269_61aea451f35f81078d957d94f974a379_rle_crop_4076220419_0.png', 1400246303: '1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220432_0.png', 1400248812: '1766185266_1178527_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206226_0.png', 1400248815: '1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206233_0.png', 1400248818: '1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206236_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/f37ff7dd3f8b90ebf66dd6c0d36ed8e5_56956648.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/745142b54e9f2ae1b4e3e85d4feb9e10_18827083.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/5d56125b646dbb65df5a78b56e1ec87f_18702516.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/542c8ed00eef3c4d6794960d898d78e5_63253790.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e8548d359364e0379a4194bdb7c42b5e_33504981.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/f37ff7dd3f8b90ebf66dd6c0d36ed8e5_61922483.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/131264a295798c4edac55b60be1653f6_23972180.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/0cd56f757e2c5c71263c55f4599ca4b4_9340848.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/5c907a2f1718c12a79cef8289e3f8627_94259264.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/ebf72b28d94ce4c54c7581360f6e7fa3_22511935.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/65524d8c8a53bf50a898fb4912caaf7a_27617851.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c607e74a2e5381dfc745ce5a116a3f09_57548040.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/0f5c451c423648481ac75c64ff73636f_23319464.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/131264a295798c4edac55b60be1653f6_70312649.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/0cd56f757e2c5c71263c55f4599ca4b4_61388634.png change filename to text .imagette295826411766189160/ imagette295826411766189160/1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206236_0.png.png imagette295826411766189160/1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220432_0.png.png imagette295826411766189160/1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206236_0.png.png imagette295826411766189160/1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206233_0.png.png imagette295826411766189160/1766185266_1178527_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206226_0.png.png imagette295826411766189160/1766184666_1121594_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178996_0.png.png imagette295826411766189160/1766184906_1136400_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178996_0.png.png imagette295826411766189160/1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185581_0.png.png imagette295826411766189160/1766184746_1128167_1400242736_9fb1c3a5ef733cd08d57e457986d5e8f_rle_crop_4076185558_0.png.png imagette295826411766189160/1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206233_0.png.png imagette295826411766189160/1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191638_0.png.png imagette295826411766189160/1766185146_1145060_1400244269_61aea451f35f81078d957d94f974a379_rle_crop_4076220420_0.png.png imagette295826411766189160/1766185027_1140804_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206226_0.png.png imagette295826411766189160/1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220398_0.png.png imagette295826411766189160/1766185146_1145060_1400244269_61aea451f35f81078d957d94f974a379_rle_crop_4076220419_0.png.png imagette295826411766189160/1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191630_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/5c907a2f1718c12a79cef8289e3f8627_85375271.png imagette295826411766189160 29582643 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=29582643 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400243357: '1766184666_1121594_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179022_0.png', 1400243359: '1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179131_0.png', 1400243746: '1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189962_0.png', 1400243748: '1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189959_0.png', 1400243979: '1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191662_0.png', 1400245072: '1766184906_1136400_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179022_0.png', 1400245073: '1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179131_0.png', 1400246229: '1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220431_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c286dd5281b592a9d3c86ef069812c2b_14510936.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/7b1028026e8af42bab1a817af025c43d_4672907.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/b11f37edfd01c8b714022bf3acd8cb67_11352931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e45d7b78ad8e424dab1b4c3f155f2bae_10190812.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c611ec38e3e658de4b2cda413d9b6a61_80869760.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c286dd5281b592a9d3c86ef069812c2b_58778901.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/7b1028026e8af42bab1a817af025c43d_59969500.png change filename to text .imagette295826431766189161/ imagette295826431766189161/1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189959_0.png.png imagette295826431766189161/1766184906_1136400_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179022_0.png.png imagette295826431766189161/1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179131_0.png.png imagette295826431766189161/1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191662_0.png.png imagette295826431766189161/1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189962_0.png.png imagette295826431766189161/1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179131_0.png.png imagette295826431766189161/1766185146_1145060_1400244184_01e9689fc89efc17f37ca33d0b80b1b3_rle_crop_4076220431_0.png.png imagette295826431766189161/1766184666_1121594_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179022_0.png.png imagette295826451766189162/ imagette295826501766189162/ imagette295826521766189162/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/fb0960d39cef1d36a56f167ee2f5c647_83688537.png imagette295826431766189161 29582645 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=29582645 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295826451766189162 29582650 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=29582650 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295826501766189162 29582652 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=29582652 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295826521766189162 29582629 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=29582629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400244000: '1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191659_0.png', 1400248841: '1766185266_1178527_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206224_0.png', 1400248839: '1766185266_1178527_1400244399_004a97822f8751a5f760212b7392dd7f_rle_crop_4076220621_0.png', 1400246340: '1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220397_0.png', 1400246336: '1766185146_1145060_1400244855_5dbc4a88a2a04f104e839f041eea3c23_rle_crop_4076220381_0.png', 1400245792: '1766185027_1140804_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206224_0.png', 1400245077: '1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179130_0.png', 1400245076: '1766184906_1136400_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179023_0.png', 1400245075: '1766184906_1136400_1400241518_8ae4f01b836bcefb2a24f3f6d7b60db4_rle_crop_4076191867_0.png', 1400242456: '1766184546_1115825_1400240802_c0207d23caa097f3bbe417625abdff79_rle_crop_4076165012_0.png', 1400243999: '1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191654_0.png', 1400243998: '1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191636_0.png', 1400243997: '1766184807_1130549_1400242350_3f65ca9b5469f376f0691f08977f08ea_rle_crop_4076191592_0.png', 1400243765: '1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189965_0.png', 1400243626: '1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185588_0.png', 1400243625: '1766184746_1128167_1400242734_9eab14fcf3f2d7a23e938252ad54ff0e_rle_crop_4076185573_0.png', 1400243381: '1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179130_0.png', 1400243379: '1766184666_1121594_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179023_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/6cd501b486bfd2965511f9900089505b_65066556.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/a65d04e54e900021f5f677a4ab41b2d2_40879695.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/b1ebee1d021cdfabdcb25db53404e2eb_90241888.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c2bd444931712acf3e872eec51704c90_56086300.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/dd67279f00066c5e79bd5487cb4082a6_89085448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/a65d04e54e900021f5f677a4ab41b2d2_26417624.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/3ed06e4fd6815a09c3e7c97b687d89a4_38840513.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e35a551850d794883a685ae96bea8738_16824604.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/959615dc2a97aab268fb83b3b73e4c5f_37311637.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/b15b347787e67d3f2a796df2f686f3ec_29624136.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/41307c18d73d34fb40857534c968e54f_16022767.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c6075a9e5f5ba188f9d32c5fabbc89a1_62641351.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/f9200680576a13ea1bd7f270030c010d_24760791.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/bf2d59468d5ce2a92954c0dc58aa1d9b_98185119.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/508edc0829833900ec3a406d00f5d18b_9464856.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/a7f773c2a7569f16b098d84eb0ccfc29_82792513.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/3ed06e4fd6815a09c3e7c97b687d89a4_29122361.png change filename to text .imagette295826291766189162/ imagette295826291766189162/1766185146_1145060_1400244855_5dbc4a88a2a04f104e839f041eea3c23_rle_crop_4076220381_0.png.png imagette295826291766189162/1766184906_1136400_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179023_0.png.png imagette295826291766189162/1766185266_1178527_1400244399_004a97822f8751a5f760212b7392dd7f_rle_crop_4076220621_0.png.png imagette295826291766189162/1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191654_0.png.png imagette295826291766189162/1766184906_1136400_1400241518_8ae4f01b836bcefb2a24f3f6d7b60db4_rle_crop_4076191867_0.png.png imagette295826291766189162/1766184787_1128832_1400242233_0ad055ad5033992dd0dc53c56e8d2861_rle_crop_4076189965_0.png.png imagette295826291766189162/1766184666_1121594_1400241206_63fce6300e40fb0aa4607ba657f3b584_rle_crop_4076179023_0.png.png imagette295826291766189162/1766185266_1178527_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206224_0.png.png imagette295826291766189162/1766184807_1130549_1400242350_3f65ca9b5469f376f0691f08977f08ea_rle_crop_4076191592_0.png.png imagette295826291766189162/1766184746_1128167_1400242734_9eab14fcf3f2d7a23e938252ad54ff0e_rle_crop_4076185573_0.png.png imagette295826291766189162/1766184807_1130549_1400241510_0e59137b955cf356a3e481b55c7082dc_rle_crop_4076191659_0.png.png imagette295826291766189162/1766185146_1145060_1400244331_01999a477c97ce7fc9e7d6485487c8f7_rle_crop_4076220397_0.png.png imagette295826291766189162/1766185027_1140804_1400243731_7d8c13d2a54df3b73bc8566e59f12e43_rle_crop_4076206224_0.png.png imagette295826291766189162/1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185588_0.png.png imagette295826291766189162/1766184546_1115825_1400240802_c0207d23caa097f3bbe417625abdff79_rle_crop_4076165012_0.png.png imagette295826291766189162/1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191636_0.png.png imagette295826291766189162/1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179130_0.png.png imagette295826291766189162/1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179130_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e35a551850d794883a685ae96bea8738_72099017.png imagette295826291766189162 29582630 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=29582630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400242453: '1766184546_1115825_1400240802_c0207d23caa097f3bbe417625abdff79_rle_crop_4076165007_0.png', 1400243344: '1766184666_1121594_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178994_0.png', 1400243346: '1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179136_0.png', 1400243620: '1766184746_1128167_1400242734_9eab14fcf3f2d7a23e938252ad54ff0e_rle_crop_4076185574_0.png', 1400243621: '1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185590_0.png', 1400243734: '1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189972_0.png', 1400243971: '1766184807_1130549_1400242350_3f65ca9b5469f376f0691f08977f08ea_rle_crop_4076191596_0.png', 1400245046: '1766184906_1136400_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178994_0.png', 1400245050: '1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179136_0.png', 1400245757: '1766185027_1140804_1400243809_60bf9791e53ec11dac94718ea5d91334_rle_crop_4076206196_0.png', 1400245759: '1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206239_0.png', 1400245931: '1766185106_1144323_1400244851_4dfa2b0213d81eca8618d9ed8627a104_rle_crop_4076218110_0.png', 1400245932: '1766185106_1144323_1400244851_4dfa2b0213d81eca8618d9ed8627a104_rle_crop_4076218108_0.png', 1400248770: '1766185266_1178527_1400243809_60bf9791e53ec11dac94718ea5d91334_rle_crop_4076206196_0.png', 1400248773: '1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206239_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/23d391533d96ea53b888f0dc957c944c_8533874.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/86602e25f41459f2e63d4ab18bc89bac_21414406.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/54a007c61fc43a19ea73c2b94c9887d8_79481043.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/5f6d7ad70a14da825be3ba17967c2c14_32970305.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/bf7152308cf18d1a96019b8cd7d23879_27874802.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/d64ed7d4e3dc83d7f33ea283956f8ba9_90832236.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/a5a96e0a4e0a3b60ab81a23822fa7548_71533437.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/86602e25f41459f2e63d4ab18bc89bac_90458992.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/54a007c61fc43a19ea73c2b94c9887d8_45176943.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/4831f3bdb9c98c85fed503f3b0d7b0d0_16236760.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/dba577bd59d831d5190d5da8b015dd52_11613148.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e8833efba180f586d3f51375c8336ca2_53887661.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/df2880458e3122139bffecd27c8933b0_54472167.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/4831f3bdb9c98c85fed503f3b0d7b0d0_78939146.png change filename to text .imagette295826301766189164/ imagette295826301766189164/1766184807_1130549_1400242350_3f65ca9b5469f376f0691f08977f08ea_rle_crop_4076191596_0.png.png imagette295826301766189164/1766185106_1144323_1400244851_4dfa2b0213d81eca8618d9ed8627a104_rle_crop_4076218108_0.png.png imagette295826301766189164/1766184906_1136400_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179136_0.png.png imagette295826301766189164/1766184906_1136400_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178994_0.png.png imagette295826301766189164/1766184746_1128167_1400242703_af1ace74544e4b747d8226329aa02404_rle_crop_4076185590_0.png.png imagette295826301766189164/1766184666_1121594_1400241173_872c49d9fd1c3cc834a47c0422f9b9ce_rle_crop_4076179136_0.png.png imagette295826301766189164/1766185106_1144323_1400244851_4dfa2b0213d81eca8618d9ed8627a104_rle_crop_4076218110_0.png.png imagette295826301766189164/1766184666_1121594_1400241277_0b636a924c0a7c1f32f6dc7e1ca172a3_rle_crop_4076178994_0.png.png imagette295826301766189164/1766184746_1128167_1400242734_9eab14fcf3f2d7a23e938252ad54ff0e_rle_crop_4076185574_0.png.png imagette295826301766189164/1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206239_0.png.png imagette295826301766189164/1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206239_0.png.png imagette295826301766189164/1766185266_1178527_1400243809_60bf9791e53ec11dac94718ea5d91334_rle_crop_4076206196_0.png.png imagette295826301766189164/1766185027_1140804_1400243809_60bf9791e53ec11dac94718ea5d91334_rle_crop_4076206196_0.png.png imagette295826301766189164/1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189972_0.png.png imagette295826301766189164/1766184546_1115825_1400240802_c0207d23caa097f3bbe417625abdff79_rle_crop_4076165007_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/dba577bd59d831d5190d5da8b015dd52_20550591.png imagette295826301766189164 29582639 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=29582639 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400242455: '1766184546_1115825_1400240821_3117318b0c978748328b8ef462cc1743_rle_crop_4076164996_0.png', 1400243756: '1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189971_0.png', 1400243987: '1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191629_0.png', 1400245769: '1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206238_0.png', 1400246250: '1766185146_1145060_1400244078_076fc78b1b511ea8195c206c88886784_rle_crop_4076220443_0.png', 1400246254: '1766185146_1145060_1400244001_5eb96f3236350b93e747ea0af85919a6_rle_crop_4076220454_0.png', 1400248791: '1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206238_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/bfe46e6e697fabe69d0589e52d56556f_29698273.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/5c50b59f8192e7d2ea89fd1dec48481e_27846034.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/27b8bcedb05511f236e050422925f18f_19416641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/047b49da0bdb7ff0785662eb651f2873_70144437.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/65e52b2e6a85d8db8debab6f48d198db_20238289.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/703565bebe37fa9f7657057884c60313_68680104.png change filename to text .imagette295826391766189165/ imagette295826391766189165/1766184546_1115825_1400240821_3117318b0c978748328b8ef462cc1743_rle_crop_4076164996_0.png.png imagette295826391766189165/1766185266_1178527_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206238_0.png.png imagette295826391766189165/1766184807_1130549_1400241512_480893dfb0a3efd46bcebddf5af3d082_rle_crop_4076191629_0.png.png imagette295826391766189165/1766185146_1145060_1400244078_076fc78b1b511ea8195c206c88886784_rle_crop_4076220443_0.png.png imagette295826391766189165/1766184787_1128832_1400242102_6453284b97ff34dbf57d647a64ae324b_rle_crop_4076189971_0.png.png imagette295826391766189165/1766185146_1145060_1400244001_5eb96f3236350b93e747ea0af85919a6_rle_crop_4076220454_0.png.png imagette295826391766189165/1766185027_1140804_1400243693_e93e3139586c47e72accf93ed6f530f2_rle_crop_4076206238_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/20/047b49da0bdb7ff0785662eb651f2873_85952129.png imagette295826391766189165 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29582620 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29582660,29582661,29582662,29582663,29582664,29582665,29582666,29582667,29582668,29582669,29582670,29582671?tags=Carton_brun,Teint_Dans_La_Masse,plastique,metal,papier,Carton_gris,cartonnette,autre_refus,kraft,environnement,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1400249913] : ('0.04000177893190917',) no score found for photo 1400249913 We are sending mail with results at report@fotonower.com args[1400248086] : ('0.04000177893190917',) no score found for photo 1400248086 We are sending mail with results at report@fotonower.com args[1400247993] : ('0.04000177893190917',) no score found for photo 1400247993 We are sending mail with results at report@fotonower.com args[1400247887] : ('0.04000177893190917',) no score found for photo 1400247887 We are sending mail with results at report@fotonower.com args[1400247814] : ('0.04000177893190917',) no score found for photo 1400247814 We are sending mail with results at report@fotonower.com args[1400247721] : ('0.04000177893190917',) no score found for photo 1400247721 We are sending mail with results at report@fotonower.com refus_total : 0.04000177893190917 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=29582620 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_P29582620_20-12-2025_01_06_00.pdf results_Auto_P29582620_20-12-2025_01_06_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582620_20-12-2025_01_06_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','29582620','results_Auto_P29582620_20-12-2025_01_06_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582620_20-12-2025_01_06_00.pdf','pdf','','0.19','0.04000177893190917') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29582620]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] map_info['map_portfolio_photo'] : {29582620: [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721, 1400247197, 1400247089, 1400246965, 1400246846, 1400245926, 1400245923, 1400245920, 1400245918, 1400245916, 1400245914, 1400245592, 1400245557, 1400245523, 1400245490, 1400245180, 1400245145, 1400245122, 1400245120, 1400245118, 1400245117, 1400244855, 1400244853, 1400244851, 1400244399, 1400244331, 1400244269, 1400244184, 1400244078, 1400244001, 1400243878, 1400243843, 1400243809, 1400243774, 1400243731, 1400243693, 1400243630, 1400243627, 1400243622, 1400243619, 1400243614, 1400243612, 1400243610, 1400243607, 1400243604, 1400243603, 1400243291, 1400243257, 1400243220, 1400243185, 1400243150, 1400243108, 1400242778, 1400242736, 1400242734, 1400242703, 1400242350, 1400242233, 1400242102, 1400241518, 1400241515, 1400241513, 1400241512, 1400241510, 1400241349, 1400241311, 1400241277, 1400241243, 1400241206, 1400241173, 1400240821, 1400240802, 1400240800]} final : False mtd_id 4302 list_pids : [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] 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, '4252287') ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '29582620', '1400249913', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287')] time used for this insertion : 0.015840768814086914 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.86731743812561 time spend to save output : 0.01609659194946289 total time spend for step 4 : 7.883414030075073 step5:split_time_score Sat Dec 20 01:06:07 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 : ['29582620'] 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 : [('29582620',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29582620) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400247721: {'path': 'temp/1766189159_2174081_1400247721_b8708f02dd18a94c9c674814f8a0225d.jpg', 'extension': 'jpg'}, 1400247814: {'path': 'temp/1766189159_2174081_1400247814_b8cbb1b9caa15e2e8ec68758217c8531.jpg', 'extension': 'jpg'}, 1400248086: {'path': 'temp/1766189159_2174081_1400248086_0282a2d79f85833bca445772357f0128.jpg', 'extension': 'jpg'}, 1400249913: {'path': 'temp/1766189159_2174081_1400249913_8e82097f28c5c215f39a54aa8bcfd419.jpg', 'extension': 'jpg'}, 1400247887: {'path': 'temp/1766189159_2174081_1400247887_3a54814ba911e061f98e071184150c4f.jpg', 'extension': 'jpg'}, 1400247993: {'path': 'temp/1766189159_2174081_1400247993_09ef3b3dc8430adf1948b3500b545b4f.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 = 29582620; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 29582620 group by h (('23', 78),) 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=29582620 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 (29582620) 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 (29582620) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19122025 29582620 Nombre de photos uploadées : 78 / 23040 (0%) 19122025 29582620 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 19122025 29582620 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1400240821, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/3117318b0c978748328b8ef462cc1743.jpg', 'username': None, 'uploaded_at': 1766184368, 'text': 'image_19122025_23_45_04_010150m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1400240802, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/c0207d23caa097f3bbe417625abdff79.jpg', 'username': None, 'uploaded_at': 1766184368, 'text': 'image_19122025_23_45_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400240800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/82ae3f4dfebe331dd4c3551edaf13830.jpg', 'username': None, 'uploaded_at': 1766184368, 'text': 'image_19122025_23_45_23_009123m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400241349, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/19/e8b17a7bef0aae9d353ed94d1ca5a7df.jpg', 'username': None, 'uploaded_at': 1766184428, 'text': 'image_19122025_23_45_54_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003454923629760742 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29582620, '2025-12-19' ) 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-19' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2761642,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.237868070602417 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= 2761642 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29564719, 'dashboard_result_id': 18573417, '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_P29564719_19-12-2025_12_04_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29564721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29564722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29564723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29564724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29564725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29564726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29564727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29564728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29564729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29564730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29564731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29564732, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29565006, 'dashboard_result_id': 18573418, '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_P29565006_19-12-2025_12_19_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29565055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565066, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29565580, 'dashboard_result_id': 18573419, '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_P29565580_19-12-2025_13_59_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29565588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565593, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29566373, 'dashboard_result_id': 18573421, '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_P29566373_19-12-2025_13_46_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566402, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29566511, 'dashboard_result_id': 18573422, '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_P29566511_19-12-2025_14_21_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29566515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566526, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29566883, 'dashboard_result_id': 18573423, '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_P29566883_19-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566897, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29567114, 'dashboard_result_id': 18573424, '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_P29567114_19-12-2025_14_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567128, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29567531, 'dashboard_result_id': 18573425, '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_P29567531_19-12-2025_15_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567546, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29568017, 'dashboard_result_id': 18573426, '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_P29568017_19-12-2025_15_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568033, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29568563, 'dashboard_result_id': 18573427, '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_P29568563_19-12-2025_18_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568584, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29569699, 'dashboard_result_id': 18573428, '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_P29569699_19-12-2025_17_19_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29569703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29569704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29569705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29569706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29569707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29569708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29569709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29569710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29569711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29569712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29569713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29569714, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29570185, 'dashboard_result_id': 18573430, '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_P29570185_19-12-2025_18_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570200, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29570915, 'dashboard_result_id': 18573431, '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_P29570915_19-12-2025_18_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570929, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29571357, 'dashboard_result_id': 18573432, '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_P29571357_19-12-2025_18_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571372, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29571617, 'dashboard_result_id': 18573433, '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_P29571617_19-12-2025_18_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571643, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29571950, 'dashboard_result_id': 18573434, '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_P29571950_19-12-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571968, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29572386, 'dashboard_result_id': 18573435, '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_P29572386_19-12-2025_19_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572432, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29572936, 'dashboard_result_id': 18573436, '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_P29572936_19-12-2025_19_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572956, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29573591, 'dashboard_result_id': 18573437, '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_P29573591_19-12-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29573599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29573600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29573601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29573602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29573603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29573604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29573605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29573606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29573607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29573608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29573609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29573610, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29574100, 'dashboard_result_id': 18573438, '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_P29574100_19-12-2025_20_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574149, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29574150, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29574500, 'dashboard_result_id': 18573439, '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_P29574500_19-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29574529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574540, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29575111, 'dashboard_result_id': 18573440, '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_P29575111_19-12-2025_20_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29575119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575131, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29575605, 'dashboard_result_id': 18573441, '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_P29575605_19-12-2025_21_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29575640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575649, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29576416, 'dashboard_result_id': 18573442, '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_P29576416_19-12-2025_21_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576448, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29576640, 'dashboard_result_id': 18573443, '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_P29576640_19-12-2025_21_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576656, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29577047, 'dashboard_result_id': 18573444, '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_P29577047_19-12-2025_21_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577088, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29577467, 'dashboard_result_id': 18573445, '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_P29577467_19-12-2025_22_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577484, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29577849, 'dashboard_result_id': 18573446, '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_P29577849_19-12-2025_22_22_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577874, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29578811, 'dashboard_result_id': 18573447, '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_P29578811_19-12-2025_22_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29578830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29578831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29578832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29578833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29578834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29578835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29578836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29578837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29578838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29578839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29578840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29578841, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29579231, 'dashboard_result_id': 18573448, '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_P29579231_19-12-2025_22_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29579328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579339, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29579859, 'dashboard_result_id': 18573449, '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_P29579859_19-12-2025_23_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29579873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579878, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29580493, 'dashboard_result_id': 18573450, '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_P29580493_20-12-2025_00_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29580601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29580602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29580603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29580604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29580605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29580606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29580607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29580608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29580609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29580610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29580611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29580612, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29581359, 'dashboard_result_id': 18573451, '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_P29581359_19-12-2025_23_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29581360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29581361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29581362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29581363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29581364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29581365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29581366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29581367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29581368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29581369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29581370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29581371, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29582030, 'dashboard_result_id': 18573452, '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_P29582030_19-12-2025_23_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582049, 'pht': 3726}}"}, {'dashboat_entry_day': 2761642, 'dashboard_run_id': 2774373, 'mtr_portfolio_id': 29582620, 'dashboard_result_id': 18573453, '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_P29582620_20-12-2025_00_00_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582652, '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 = 29564719 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': 4249873, 'mtr_portfolio_id': 29564719, 'created_at': datetime.datetime(2025, 12, 19, 12, 4, 30), 'result': '0.050184588004834836', 'result_long': None, 'result_double': None}] Qualite : 0.050184588004834836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29564719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29564719_19-12-2025_12_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29564719 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_P29564719_19-12-2025_12_04_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29564721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29564722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29564723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29564724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29564725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29564726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29564727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29564728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29564729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29564730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29564731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29564732, 'pht': 3726}}" where mtr_portfolio_id = 29564719 and dashboard_run_id = 2774373 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`=29564719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573417, 0.050184588004834836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29564719_19-12-2025_12_04_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29564721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29564722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29564723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29564724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29564725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29564726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29564727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29564728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29564729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29564730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29564731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29564732, '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 = 29565006 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': 4249918, 'mtr_portfolio_id': 29565006, 'created_at': datetime.datetime(2025, 12, 19, 12, 19, 28), 'result': '0.04119182523231964', 'result_long': None, 'result_double': None}] Qualite : 0.04119182523231964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29565006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29565006_19-12-2025_12_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29565006 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_P29565006_19-12-2025_12_19_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29565055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565066, 'pht': 3726}}" where mtr_portfolio_id = 29565006 and dashboard_run_id = 2774373 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`=29565006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573418, 0.04119182523231964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29565006_19-12-2025_12_19_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29565055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565066, '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 = 29565580 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': 4249966, 'mtr_portfolio_id': 29565580, 'created_at': datetime.datetime(2025, 12, 19, 13, 59, 58), 'result': '0.08827084236664978', 'result_long': None, 'result_double': None}] Qualite : 0.08827084236664978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29565580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29565580_19-12-2025_13_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29565580 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_P29565580_19-12-2025_13_59_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29565588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565593, 'pht': 3726}}" where mtr_portfolio_id = 29565580 and dashboard_run_id = 2774373 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`=29565580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573419, 0.08827084236664978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29565580_19-12-2025_13_59_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29565582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29565583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29565584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29565585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29565586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29565587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29565588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29565589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29565590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29565591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29565592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29565593, '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 = 29566373 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': 4250139, 'mtr_portfolio_id': 29566373, 'created_at': datetime.datetime(2025, 12, 19, 13, 46, 32), 'result': '0.02809548758660227', 'result_long': None, 'result_double': None}] Qualite : 0.02809548758660227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29566373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566373_19-12-2025_13_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29566373 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_P29566373_19-12-2025_13_46_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566402, 'pht': 3726}}" where mtr_portfolio_id = 29566373 and dashboard_run_id = 2774373 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`=29566373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573421, 0.02809548758660227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566373_19-12-2025_13_46_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566400, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566402, '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 = 29566511 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': 4250151, 'mtr_portfolio_id': 29566511, 'created_at': datetime.datetime(2025, 12, 19, 14, 21, 1), 'result': '0.03225211747858353', 'result_long': None, 'result_double': None}] Qualite : 0.03225211747858353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29566511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566511_19-12-2025_14_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29566511 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_P29566511_19-12-2025_14_21_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29566515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566526, 'pht': 3726}}" where mtr_portfolio_id = 29566511 and dashboard_run_id = 2774373 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`=29566511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573422, 0.03225211747858353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566511_19-12-2025_14_21_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29566515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566526, '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 = 29566883 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': 4250223, 'mtr_portfolio_id': 29566883, 'created_at': datetime.datetime(2025, 12, 19, 14, 33), 'result': '0.06617863041027004', 'result_long': None, 'result_double': None}] Qualite : 0.06617863041027004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29566883 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566883_19-12-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29566883 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_P29566883_19-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566897, 'pht': 3726}}" where mtr_portfolio_id = 29566883 and dashboard_run_id = 2774373 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`=29566883 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573423, 0.06617863041027004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29566883_19-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29566886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29566887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29566888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29566889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29566890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29566891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29566892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29566893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29566894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29566895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29566896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29566897, '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 = 29567114 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': 4250256, 'mtr_portfolio_id': 29567114, 'created_at': datetime.datetime(2025, 12, 19, 14, 46, 58), 'result': '0.04439790217047148', 'result_long': None, 'result_double': None}] Qualite : 0.04439790217047148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29567114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29567114_19-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29567114 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_P29567114_19-12-2025_14_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567128, 'pht': 3726}}" where mtr_portfolio_id = 29567114 and dashboard_run_id = 2774373 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`=29567114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573424, 0.04439790217047148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29567114_19-12-2025_14_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567128, '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 = 29567531 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': 4250299, 'mtr_portfolio_id': 29567531, 'created_at': datetime.datetime(2025, 12, 19, 15, 7, 28), 'result': '0.05742196965303342', 'result_long': None, 'result_double': None}] Qualite : 0.05742196965303342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29567531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29567531_19-12-2025_15_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29567531 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_P29567531_19-12-2025_15_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567546, 'pht': 3726}}" where mtr_portfolio_id = 29567531 and dashboard_run_id = 2774373 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`=29567531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573425, 0.05742196965303342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29567531_19-12-2025_15_07_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29567535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29567536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29567537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29567538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29567539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29567540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29567541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29567542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29567543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29567544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29567545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29567546, '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 = 29568017 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': 4250398, 'mtr_portfolio_id': 29568017, 'created_at': datetime.datetime(2025, 12, 19, 15, 16, 59), 'result': '0.039215349978794826', 'result_long': None, 'result_double': None}] Qualite : 0.039215349978794826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29568017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29568017_19-12-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29568017 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_P29568017_19-12-2025_15_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568033, 'pht': 3726}}" where mtr_portfolio_id = 29568017 and dashboard_run_id = 2774373 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`=29568017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573426, 0.039215349978794826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29568017_19-12-2025_15_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568033, '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 = 29568563 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': 4250431, 'mtr_portfolio_id': 29568563, 'created_at': datetime.datetime(2025, 12, 19, 18, 0), 'result': '0.04741017060875666', 'result_long': None, 'result_double': None}] Qualite : 0.04741017060875666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29568563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29568563_19-12-2025_18_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29568563 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_P29568563_19-12-2025_18_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568584, 'pht': 3726}}" where mtr_portfolio_id = 29568563 and dashboard_run_id = 2774373 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`=29568563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573427, 0.04741017060875666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29568563_19-12-2025_18_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29568573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29568574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29568575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29568576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29568577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29568578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29568579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29568580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29568581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29568582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29568583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29568584, '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 = 29569699 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': 4250713, 'mtr_portfolio_id': 29569699, 'created_at': datetime.datetime(2025, 12, 19, 17, 19, 30), 'result': '0.06554988990755059', 'result_long': None, 'result_double': None}] Qualite : 0.06554988990755059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29569699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29569699_19-12-2025_17_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29569699 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_P29569699_19-12-2025_17_19_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29569703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29569704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29569705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29569706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29569707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29569708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29569709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29569710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29569711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29569712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29569713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29569714, 'pht': 3726}}" where mtr_portfolio_id = 29569699 and dashboard_run_id = 2774373 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`=29569699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573428, 0.06554988990755059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29569699_19-12-2025_17_19_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29569703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29569704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29569705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29569706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29569707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29569708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29569709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29569710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29569711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29569712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29569713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29569714, '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 = 29570185 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': 4250757, 'mtr_portfolio_id': 29570185, 'created_at': datetime.datetime(2025, 12, 19, 18, 4, 30), 'result': '0.05350439556757996', 'result_long': None, 'result_double': None}] Qualite : 0.05350439556757996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29570185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29570185_19-12-2025_18_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29570185 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_P29570185_19-12-2025_18_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570200, 'pht': 3726}}" where mtr_portfolio_id = 29570185 and dashboard_run_id = 2774373 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`=29570185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573430, 0.05350439556757996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29570185_19-12-2025_18_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570200, '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 = 29570915 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': 4250894, 'mtr_portfolio_id': 29570915, 'created_at': datetime.datetime(2025, 12, 19, 18, 16, 58), 'result': '0.042094489677878946', 'result_long': None, 'result_double': None}] Qualite : 0.042094489677878946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29570915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29570915_19-12-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29570915 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_P29570915_19-12-2025_18_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570929, 'pht': 3726}}" where mtr_portfolio_id = 29570915 and dashboard_run_id = 2774373 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`=29570915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573431, 0.042094489677878946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29570915_19-12-2025_18_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29570918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29570919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29570920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29570921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29570922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29570923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29570924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29570925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29570926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29570927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29570928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29570929, '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 = 29571357 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': 4250920, 'mtr_portfolio_id': 29571357, 'created_at': datetime.datetime(2025, 12, 19, 18, 32, 59), 'result': '0.035466887502801615', 'result_long': None, 'result_double': None}] Qualite : 0.035466887502801615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29571357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571357_19-12-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29571357 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_P29571357_19-12-2025_18_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571372, 'pht': 3726}}" where mtr_portfolio_id = 29571357 and dashboard_run_id = 2774373 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`=29571357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573432, 0.035466887502801615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571357_19-12-2025_18_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571372, '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 = 29571617 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': 4250958, 'mtr_portfolio_id': 29571617, 'created_at': datetime.datetime(2025, 12, 19, 18, 47), 'result': '0.04509067348043214', 'result_long': None, 'result_double': None}] Qualite : 0.04509067348043214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29571617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571617_19-12-2025_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29571617 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_P29571617_19-12-2025_18_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571643, 'pht': 3726}}" where mtr_portfolio_id = 29571617 and dashboard_run_id = 2774373 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`=29571617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573433, 0.04509067348043214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571617_19-12-2025_18_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571643, '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 = 29571950 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': 4251001, 'mtr_portfolio_id': 29571950, 'created_at': datetime.datetime(2025, 12, 19, 19, 2, 59), 'result': '0.05273583029770781', 'result_long': None, 'result_double': None}] Qualite : 0.05273583029770781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29571950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571950_19-12-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29571950 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_P29571950_19-12-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571968, 'pht': 3726}}" where mtr_portfolio_id = 29571950 and dashboard_run_id = 2774373 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`=29571950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573434, 0.05273583029770781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29571950_19-12-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29571957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29571958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29571959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29571960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29571961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29571962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29571963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29571964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29571965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29571966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29571967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29571968, '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 = 29572386 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': 4251087, 'mtr_portfolio_id': 29572386, 'created_at': datetime.datetime(2025, 12, 19, 19, 16, 58), 'result': '0.04299652380822086', 'result_long': None, 'result_double': None}] Qualite : 0.04299652380822086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29572386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29572386_19-12-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29572386 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_P29572386_19-12-2025_19_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572432, 'pht': 3726}}" where mtr_portfolio_id = 29572386 and dashboard_run_id = 2774373 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`=29572386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573435, 0.04299652380822086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29572386_19-12-2025_19_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572432, '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 = 29572936 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': 4251140, 'mtr_portfolio_id': 29572936, 'created_at': datetime.datetime(2025, 12, 19, 19, 34, 57), 'result': '0.054163715686079736', 'result_long': None, 'result_double': None}] Qualite : 0.054163715686079736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29572936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29572936_19-12-2025_19_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29572936 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_P29572936_19-12-2025_19_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572956, 'pht': 3726}}" where mtr_portfolio_id = 29572936 and dashboard_run_id = 2774373 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`=29572936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573436, 0.054163715686079736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29572936_19-12-2025_19_34_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29572944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29572945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29572946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29572948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29572949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29572950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29572951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29572952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29572953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29572954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29572955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29572956, '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 = 29573591 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': 4251232, 'mtr_portfolio_id': 29573591, 'created_at': datetime.datetime(2025, 12, 19, 19, 48, 58), 'result': '0.04207401571052123', 'result_long': None, 'result_double': None}] Qualite : 0.04207401571052123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29573591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29573591_19-12-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29573591 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_P29573591_19-12-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29573599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29573600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29573601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29573602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29573603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29573604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29573605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29573606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29573607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29573608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29573609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29573610, 'pht': 3726}}" where mtr_portfolio_id = 29573591 and dashboard_run_id = 2774373 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`=29573591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573437, 0.04207401571052123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29573591_19-12-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29573599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29573600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29573601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29573602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29573603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29573604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29573605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29573606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29573607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29573608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29573609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29573610, '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 = 29574100 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': 4251302, 'mtr_portfolio_id': 29574100, 'created_at': datetime.datetime(2025, 12, 19, 20, 4, 58), 'result': '0.05143949937766092', 'result_long': None, 'result_double': None}] Qualite : 0.05143949937766092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29574100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29574100_19-12-2025_20_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29574100 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_P29574100_19-12-2025_20_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574149, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29574150, 'pht': 3726}}" where mtr_portfolio_id = 29574100 and dashboard_run_id = 2774373 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`=29574100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573438, 0.05143949937766092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29574100_19-12-2025_20_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574149, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29574150, '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 = 29574500 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': 4251369, 'mtr_portfolio_id': 29574500, 'created_at': datetime.datetime(2025, 12, 19, 20, 17), 'result': '0.03864312599142095', 'result_long': None, 'result_double': None}] Qualite : 0.03864312599142095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29574500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29574500_19-12-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29574500 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_P29574500_19-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29574529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574540, 'pht': 3726}}" where mtr_portfolio_id = 29574500 and dashboard_run_id = 2774373 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`=29574500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573439, 0.03864312599142095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29574500_19-12-2025_20_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29574529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29574530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29574531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29574532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29574533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29574534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29574535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29574536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29574537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29574538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29574539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29574540, '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 = 29575111 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': 4251453, 'mtr_portfolio_id': 29575111, 'created_at': datetime.datetime(2025, 12, 19, 20, 34, 59), 'result': '0.0477986424052412', 'result_long': None, 'result_double': None}] Qualite : 0.0477986424052412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29575111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29575111_19-12-2025_20_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29575111 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_P29575111_19-12-2025_20_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29575119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575131, 'pht': 3726}}" where mtr_portfolio_id = 29575111 and dashboard_run_id = 2774373 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`=29575111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573440, 0.0477986424052412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29575111_19-12-2025_20_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29575119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575131, '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 = 29575605 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': 4251517, 'mtr_portfolio_id': 29575605, 'created_at': datetime.datetime(2025, 12, 19, 21, 6, 58), 'result': '0.05033682728533754', 'result_long': None, 'result_double': None}] Qualite : 0.05033682728533754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29575605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29575605_19-12-2025_21_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29575605 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_P29575605_19-12-2025_21_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29575640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575649, 'pht': 3726}}" where mtr_portfolio_id = 29575605 and dashboard_run_id = 2774373 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`=29575605 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573441, 0.05033682728533754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29575605_19-12-2025_21_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29575638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29575639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29575640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29575641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29575642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29575643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29575644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29575645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29575646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29575647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29575648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29575649, '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 = 29576416 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': 4251621, 'mtr_portfolio_id': 29576416, 'created_at': datetime.datetime(2025, 12, 19, 21, 17), 'result': '0.035434624696126904', 'result_long': None, 'result_double': None}] Qualite : 0.035434624696126904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29576416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29576416_19-12-2025_21_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29576416 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_P29576416_19-12-2025_21_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576448, 'pht': 3726}}" where mtr_portfolio_id = 29576416 and dashboard_run_id = 2774373 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`=29576416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573442, 0.035434624696126904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29576416_19-12-2025_21_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576448, '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 = 29576640 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': 4251644, 'mtr_portfolio_id': 29576640, 'created_at': datetime.datetime(2025, 12, 19, 21, 34, 29), 'result': '0.04790371097190508', 'result_long': None, 'result_double': None}] Qualite : 0.04790371097190508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29576640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29576640_19-12-2025_21_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29576640 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_P29576640_19-12-2025_21_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576656, 'pht': 3726}}" where mtr_portfolio_id = 29576640 and dashboard_run_id = 2774373 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`=29576640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573443, 0.04790371097190508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29576640_19-12-2025_21_34_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29576645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29576646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29576647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29576648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29576649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29576650, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29576651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29576652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29576653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29576654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29576655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29576656, '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 = 29577047 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': 4251709, 'mtr_portfolio_id': 29577047, 'created_at': datetime.datetime(2025, 12, 19, 21, 46, 59), 'result': '0.0643704375928528', 'result_long': None, 'result_double': None}] Qualite : 0.0643704375928528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29577047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577047_19-12-2025_21_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29577047 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_P29577047_19-12-2025_21_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577088, 'pht': 3726}}" where mtr_portfolio_id = 29577047 and dashboard_run_id = 2774373 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`=29577047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573444, 0.0643704375928528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577047_19-12-2025_21_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577088, '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 = 29577467 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': 4251753, 'mtr_portfolio_id': 29577467, 'created_at': datetime.datetime(2025, 12, 19, 22, 4, 58), 'result': '0.06158096622473056', 'result_long': None, 'result_double': None}] Qualite : 0.06158096622473056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29577467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577467_19-12-2025_22_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29577467 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_P29577467_19-12-2025_22_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577484, 'pht': 3726}}" where mtr_portfolio_id = 29577467 and dashboard_run_id = 2774373 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`=29577467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573445, 0.06158096622473056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577467_19-12-2025_22_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577484, '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 = 29577849 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': 4251869, 'mtr_portfolio_id': 29577849, 'created_at': datetime.datetime(2025, 12, 19, 22, 22, 1), 'result': '0.05691485564836732', 'result_long': None, 'result_double': None}] Qualite : 0.05691485564836732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29577849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577849_19-12-2025_22_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29577849 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_P29577849_19-12-2025_22_22_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577874, 'pht': 3726}}" where mtr_portfolio_id = 29577849 and dashboard_run_id = 2774373 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`=29577849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573446, 0.05691485564836732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29577849_19-12-2025_22_22_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29577863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29577864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29577865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29577866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29577867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29577868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29577869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29577870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29577871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29577872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29577873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29577874, '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 = 29578811 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': 4251948, 'mtr_portfolio_id': 29578811, 'created_at': datetime.datetime(2025, 12, 19, 22, 34, 57), 'result': '0.04132107229208374', 'result_long': None, 'result_double': None}] Qualite : 0.04132107229208374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29578811 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29578811_19-12-2025_22_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29578811 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_P29578811_19-12-2025_22_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29578830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29578831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29578832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29578833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29578834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29578835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29578836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29578837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29578838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29578839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29578840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29578841, 'pht': 3726}}" where mtr_portfolio_id = 29578811 and dashboard_run_id = 2774373 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`=29578811 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573447, 0.04132107229208374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29578811_19-12-2025_22_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29578830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29578831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29578832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29578833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29578834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29578835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29578836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29578837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29578838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29578839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29578840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29578841, '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 = 29579231 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': 4251973, 'mtr_portfolio_id': 29579231, 'created_at': datetime.datetime(2025, 12, 19, 22, 47), 'result': '0.05108064841469793', 'result_long': None, 'result_double': None}] Qualite : 0.05108064841469793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29579231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29579231_19-12-2025_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29579231 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_P29579231_19-12-2025_22_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29579328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579339, 'pht': 3726}}" where mtr_portfolio_id = 29579231 and dashboard_run_id = 2774373 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`=29579231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573448, 0.05108064841469793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29579231_19-12-2025_22_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29579328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579331, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579339, '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 = 29579859 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': 4252034, 'mtr_portfolio_id': 29579859, 'created_at': datetime.datetime(2025, 12, 19, 23, 5), 'result': '0.05439227373751744', 'result_long': None, 'result_double': None}] Qualite : 0.05439227373751744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29579859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29579859_19-12-2025_23_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29579859 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_P29579859_19-12-2025_23_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29579873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579878, 'pht': 3726}}" where mtr_portfolio_id = 29579859 and dashboard_run_id = 2774373 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`=29579859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573449, 0.05439227373751744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29579859_19-12-2025_23_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29579867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29579868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29579869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29579870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29579871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29579872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29579873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29579874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29579875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29579876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29579877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29579878, '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 = 29580493 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': 4252102, 'mtr_portfolio_id': 29580493, 'created_at': datetime.datetime(2025, 12, 20, 0, 30, 57), 'result': '0.05589620564676375', 'result_long': None, 'result_double': None}] Qualite : 0.05589620564676375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29580493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29580493_20-12-2025_00_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29580493 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_P29580493_20-12-2025_00_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29580601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29580602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29580603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29580604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29580605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29580606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29580607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29580608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29580609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29580610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29580611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29580612, 'pht': 3726}}" where mtr_portfolio_id = 29580493 and dashboard_run_id = 2774373 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`=29580493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573450, 0.05589620564676375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29580493_20-12-2025_00_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29580601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29580602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29580603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29580604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29580605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29580606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29580607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29580608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29580609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29580610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29580611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29580612, '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 = 29581359 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': 4252191, 'mtr_portfolio_id': 29581359, 'created_at': datetime.datetime(2025, 12, 19, 23, 34, 59), 'result': '0.048629352656527236', 'result_long': None, 'result_double': None}] Qualite : 0.048629352656527236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29581359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29581359_19-12-2025_23_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29581359 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_P29581359_19-12-2025_23_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29581360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29581361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29581362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29581363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29581364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29581365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29581366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29581367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29581368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29581369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29581370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29581371, 'pht': 3726}}" where mtr_portfolio_id = 29581359 and dashboard_run_id = 2774373 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`=29581359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573451, 0.048629352656527236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29581359_19-12-2025_23_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29581360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29581361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29581362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29581363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29581364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29581365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29581366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29581367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29581368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29581369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29581370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29581371, '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 = 29582030 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': 4252235, 'mtr_portfolio_id': 29582030, 'created_at': datetime.datetime(2025, 12, 19, 23, 47, 1), 'result': '0.06264322101956861', 'result_long': None, 'result_double': None}] Qualite : 0.06264322101956861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29582030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582030_19-12-2025_23_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29582030 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_P29582030_19-12-2025_23_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582049, 'pht': 3726}}" where mtr_portfolio_id = 29582030 and dashboard_run_id = 2774373 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`=29582030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573452, 0.06264322101956861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582030_19-12-2025_23_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582049, '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 = 29582620 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': 4252287, 'mtr_portfolio_id': 29582620, 'created_at': datetime.datetime(2025, 12, 20, 1, 5, 59), 'result': '0.04000177893190917', 'result_long': None, 'result_double': None}] Qualite : 0.04000177893190917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29582620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582620_20-12-2025_01_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29582620 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_P29582620_20-12-2025_01_06_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582652, 'pht': 3726}}" where mtr_portfolio_id = 29582620 and dashboard_run_id = 2774373 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`=29582620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18573453, 0.04000177893190917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29582620_20-12-2025_01_06_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29582629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29582630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29582632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29582635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29582637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29582639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29582641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29582643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29582645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29582648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29582650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29582652, '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 (29564719,29565006,29565580,29566373,29566511,29566883,29567114,29567531,29568017,29568563,29569699,29570185,29570915,29571357,29571617,29571950,29572386,29572936,29573591,29574100,29574500,29575111,29575605,29576416,29576640,29577047,29577467,29577849,29578811,29579231,29579859,29580493,29581359,29582030,29582620) result : ((1400135021,), (1400135026,), (1400135062,), (1400135065,), (1400135101,), (1400135103,), (1400135137,), (1400135148,), (1400135151,), (1400135193,), (1400135195,), (1400135215,), (1400135217,), (1400135219,), (1400135221,), (1400135223,), (1400135239,), (1400135251,), (1400135256,), (1400135258,), (1400135287,), (1400135290,), (1400135293,), (1400135295,), (1400135299,), (1400135696,), (1400135701,), (1400135705,), (1400135708,), (1400135711,), (1400135713,), (1400135987,), (1400136173,), (1400136250,), (1400136313,), (1400136361,), (1400136409,), (1400136456,), (1400136708,), (1400136723,), (1400136727,), (1400136729,), (1400135942,), (1400135944,), (1400135975,), (1400135982,), (1400135984,), (1400136576,), (1400136608,), (1400136644,), (1400136678,), (1400136735,), (1400136737,), (1400136739,), (1400136748,), (1400136790,), (1400136825,), (1400136995,), (1400137007,), (1400137037,), (1400137059,), (1400137062,), (1400137140,), (1400137175,), (1400137212,), (1400137249,), (1400137383,), (1400137386,), (1400137405,), (1400137410,), (1400137412,), (1400137433,), (1400137435,), (1400137437,), (1400137440,), (1400137443,), (1400137444,), (1400137455,), (1400137457,), (1400137475,), (1400137510,), (1400137548,), (1400137700,), (1400137734,), (1400137771,), (1400138024,), (1400138056,), (1400138091,), (1400138123,), (1400138159,), (1400138196,), (1400138308,), (1400138311,), (1400138334,), (1400138380,), (1400138414,), (1400138452,), (1400138597,), (1400138599,), (1400138614,), (1400138649,), (1400138681,), (1400138694,), (1400138716,), (1400138721,), (1400138722,), (1400138725,), (1400138726,), (1400138728,), (1400138770,), (1400138785,), (1400138788,), (1400138791,), (1400138793,), (1400138827,), (1400138869,), (1400138816,), (1400138818,), (1400138820,), (1400138822,), (1400138825,), (1400138835,), (1400138837,), (1400138848,), (1400138860,), (1400138866,), (1400139654,), (1400139700,), (1400139715,), (1400146205,), (1400145844,), (1400146245,), (1400146247,), (1400146249,), (1400146392,), (1400146394,), (1400146396,), (1400146414,), (1400146417,), (1400146420,), (1400146422,), (1400146425,), (1400146451,), (1400146454,), (1400146466,), (1400146571,), (1400146569,), (1400146740,), (1400146762,), (1400146779,), (1400146877,), (1400146879,), (1400146881,), (1400146883,), (1400146886,), (1400146889,), (1400146941,), (1400146943,), (1400146945,), (1400146947,), (1400146950,), (1400146953,), (1400146963,), (1400146966,), (1400146969,), (1400146985,), (1400146987,), (1400146989,), (1400146991,), (1400146994,), (1400146997,), (1400147060,), (1400148533,), (1400148531,), (1400148532,), (1400148545,), (1400148547,), (1400148549,), (1400148552,), (1400148556,), (1400148559,), (1400148574,), (1400148575,), (1400148576,), (1400148577,), (1400148615,), (1400148616,), (1400148617,), (1400148618,), (1400148620,), (1400148622,), (1400148636,), (1400148657,), (1400148659,), (1400148662,), (1400148665,), (1400148685,), (1400148686,), (1400148688,), (1400148691,), (1400148695,), (1400148698,), (1400148724,), (1400148726,), (1400148728,), (1400148729,), (1400148731,), (1400148739,), (1400148740,), (1400148741,), (1400148742,), (1400148839,), (1400148838,), (1400148864,), (1400148866,), (1400148868,), (1400148869,), (1400148873,), (1400148883,), (1400148884,), (1400148906,), (1400148937,), (1400148969,), (1400149000,), (1400149487,), (1400149488,), (1400149506,), (1400149541,), (1400149871,), (1400149928,), (1400149946,), (1400149947,), (1400149950,), (1400149953,), (1400149964,), (1400149965,), (1400149966,), (1400149967,), (1400149970,), (1400149973,), (1400150029,), (1400150032,), (1400150036,), (1400150051,), (1400150065,), (1400150070,), (1400150108,), (1400150109,), (1400150117,), (1400150120,), (1400150124,), (1400150128,), (1400150130,), (1400150132,), (1400150135,), (1400150143,), (1400150145,), (1400150146,), (1400150147,), (1400150180,), (1400150181,), (1400150182,), (1400150193,), (1400150204,), (1400150209,), (1400150215,), (1400150216,), (1400150217,), (1400150218,), (1400150220,), (1400150233,), (1400150234,), (1400150235,), (1400150236,), (1400150239,), (1400150263,), (1400150264,), (1400150265,), (1400150266,), (1400150268,), (1400150270,), (1400150297,), (1400150298,), (1400150299,), (1400150300,), (1400150314,), (1400150316,), (1400150317,), (1400150318,), (1400150321,), (1400150324,), (1400150388,), (1400150381,), (1400150383,), (1400150384,), (1400150385,), (1400150397,), (1400150398,), (1400150399,), (1400150400,), (1400150416,), (1400150417,), (1400150418,), (1400150419,), (1400150422,), (1400150425,), (1400150441,), (1400150442,), (1400150443,), (1400150477,), (1400150484,), (1400150485,), (1400150486,), (1400150489,), (1400150492,), (1400150501,), (1400150503,), (1400150505,), (1400150509,), (1400150512,), (1400150516,), (1400150532,), (1400150534,), (1400150541,), (1400150542,), (1400150543,), (1400150545,), (1400150547,), (1400150550,), (1400150553,), (1400150572,), (1400150573,), (1400150574,), (1400150575,), (1400150576,), (1400150577,), (1400150645,), (1400150646,), (1400150647,), (1400150648,), (1400150668,), (1400150669,), (1400150670,), (1400150671,), (1400150674,), (1400150676,), (1400150692,), (1400150693,), (1400150694,), (1400150695,), (1400150698,), (1400150700,), (1400150706,), (1400150707,), (1400150708,), (1400150709,), (1400150744,), (1400150745,), (1400150746,), (1400150747,), (1400150750,), (1400150753,), (1400150775,), (1400150776,), (1400150778,), (1400150781,), (1400151718,), (1400151501,), (1400151564,), (1400151625,), (1400151683,), (1400151863,), (1400151901,), (1400151906,), (1400151907,), (1400152297,), (1400152307,), (1400152308,), (1400152328,), (1400152347,), (1400152350,), (1400152723,), (1400152769,), (1400152800,), (1400152994,), (1400153028,), (1400153065,), (1400153071,), (1400153074,), (1400153241,), (1400153274,), (1400153312,), (1400153349,), (1400153602,), (1400153645,), (1400153667,), (1400153682,), (1400153686,), (1400153691,), (1400153733,), (1400153734,), (1400153735,), (1400153853,), (1400153874,), (1400153896,), (1400153953,), (1400153966,), (1400154056,), (1400154058,), (1400154132,), (1400154221,), (1400155044,), (1400155046,), (1400155048,), (1400155052,), (1400155069,), (1400155434,), (1400155455,), (1400155456,), (1400155491,), (1400155505,), (1400155507,), (1400155562,), (1400155570,), (1400155577,), (1400155582,), (1400155693,), (1400155758,), (1400155823,), (1400155889,), (1400155919,), (1400155921,), (1400156012,), (1400156034,), (1400156035,), (1400156473,), (1400156504,), (1400156536,), (1400156566,), (1400156597,), (1400156930,), (1400156927,), (1400156928,), (1400156929,), (1400157026,), (1400157147,), (1400157253,), (1400158138,), (1400158171,), (1400158196,), (1400158197,), (1400158245,), (1400158638,), (1400158639,), (1400158641,), (1400158643,), (1400158646,), (1400158649,), (1400158669,), (1400164074,), (1400164541,), (1400164578,), (1400165062,), (1400165097,), (1400165130,), (1400165166,), (1400165199,), (1400165774,), (1400165780,), (1400165782,), (1400165804,), (1400165823,), (1400166081,), (1400166116,), (1400166169,), (1400166256,), (1400167277,), (1400167343,), (1400167410,), (1400168146,), (1400168216,), (1400168281,), (1400168346,), (1400168414,), (1400168453,), (1400168588,), (1400168589,), (1400168590,), (1400168593,), (1400168611,), (1400168646,), (1400168771,), (1400168807,), (1400168841,), (1400168917,), (1400168918,), (1400168919,), (1400168930,), (1400168968,), (1400168998,), (1400169076,), (1400169078,), (1400169080,), (1400169082,), (1400169084,), (1400169085,), (1400169123,), (1400169129,), (1400169134,), (1400169152,), (1400169160,), (1400169172,), (1400169173,), (1400169174,), (1400169175,), (1400169208,), (1400169210,), (1400169212,), (1400169214,), (1400169247,), (1400169249,), (1400169251,), (1400169253,), (1400169256,), (1400169257,), (1400169287,), (1400169288,), (1400169304,), (1400169306,), (1400169309,), (1400169349,), (1400169339,), (1400169341,), (1400169342,), (1400169343,), (1400169346,), (1400169359,), (1400169361,), (1400169363,), (1400169367,), (1400169370,), (1400169385,), (1400169387,), (1400169388,), (1400169389,), (1400169402,), (1400169403,), (1400169404,), (1400169407,), (1400169410,), (1400169413,), (1400169433,), (1400169435,), (1400169437,), (1400169439,), (1400169441,), (1400169451,), (1400169453,), (1400169455,), (1400169457,), (1400169459,), (1400169480,), (1400169481,), (1400169482,), (1400169483,), (1400169486,), (1400169506,), (1400169507,), (1400169510,), (1400169513,), (1400169581,), (1400169584,), (1400169587,), (1400169588,), (1400169600,), (1400169601,), (1400169602,), (1400169603,), (1400169605,), (1400169634,), (1400169635,), (1400169636,), (1400169648,), (1400169649,), (1400169650,), (1400169652,), (1400169655,), (1400169658,), (1400169678,), (1400169680,), (1400169681,), (1400169682,), (1400169685,), (1400169688,), (1400169695,), (1400169696,), (1400169697,), (1400169698,), (1400169727,), (1400169730,), (1400169732,), (1400169733,), (1400169736,), (1400169737,), (1400173468,), (1400173979,), (1400173990,), (1400174009,), (1400174041,), (1400174076,), (1400174098,), (1400174356,), (1400174358,), (1400174360,), (1400174376,), (1400174378,), (1400174380,), (1400174382,), (1400174385,), (1400174387,), (1400174395,), (1400174397,), (1400174399,), (1400174401,), (1400174404,), (1400174407,), (1400174422,), (1400174428,), (1400174430,), (1400174432,), (1400174435,), (1400174456,), (1400174458,), (1400174460,), (1400174462,), (1400174464,), (1400174467,), (1400174515,), (1400174517,), (1400174519,), (1400174521,), (1400174524,), (1400174573,), (1400174576,), (1400174580,), (1400174583,), (1400174586,), (1400174592,), (1400174664,), (1400174665,), (1400174667,), (1400174669,), (1400174672,), (1400174833,), (1400174869,), (1400174892,), (1400174894,), (1400174897,), (1400174899,), (1400174942,), (1400174946,), (1400174955,), (1400174958,), (1400174961,), (1400175195,), (1400175197,), (1400175200,), (1400175334,), (1400175330,), (1400175332,), (1400175534,), (1400175536,), (1400175538,), (1400175540,), (1400175543,), (1400175553,), (1400175556,), (1400175558,), (1400175560,), (1400175571,), (1400175573,), (1400175575,), (1400175577,), (1400175580,), (1400175590,), (1400175591,), (1400175593,), (1400175595,), (1400175598,), (1400175601,), (1400175618,), (1400175620,), (1400175622,), (1400175624,), (1400175627,), (1400175636,), (1400175638,), (1400175640,), (1400175642,), (1400175645,), (1400175648,), (1400175678,), (1400175679,), (1400175681,), (1400175713,), (1400175697,), (1400175701,), (1400175703,), (1400175706,), (1400175710,), (1400175730,), (1400175732,), (1400175734,), (1400175736,), (1400175747,), (1400175749,), (1400175751,), (1400175753,), (1400175756,), (1400175759,), (1400175774,), (1400175776,), (1400175778,), (1400175780,), (1400175790,), (1400175792,), (1400175794,), (1400175796,), (1400175799,), (1400175802,), (1400175825,), (1400175826,), (1400175828,), (1400175830,), (1400175842,), (1400175844,), (1400175846,), (1400175849,), (1400175852,), (1400175855,), (1400175863,), (1400175866,), (1400175867,), (1400175868,), (1400175871,), (1400175873,), (1400175875,), (1400175878,), (1400175881,), (1400175889,), (1400175891,), (1400175893,), (1400175937,), (1400175941,), (1400175943,), (1400175945,), (1400175948,), (1400175973,), (1400175975,), (1400175977,), (1400175979,), (1400175982,), (1400175991,), (1400175993,), (1400175995,), (1400175997,), (1400176000,), (1400176001,), (1400176027,), (1400176029,), (1400176031,), (1400176033,), (1400176036,), (1400176046,), (1400176048,), (1400176051,), (1400176053,), (1400176056,), (1400176059,), (1400176085,), (1400176079,), (1400176081,), (1400176083,), (1400176095,), (1400176096,), (1400176098,), (1400176100,), (1400176103,), (1400176106,), (1400176126,), (1400176136,), (1400176138,), (1400176140,), (1400176153,), (1400176155,), (1400176156,), (1400176158,), (1400176160,), (1400176163,), (1400176186,), (1400176192,), (1400176194,), (1400176196,), (1400176199,), (1400176210,), (1400176212,), (1400176213,), (1400176215,), (1400176218,), (1400176219,), (1400176236,), (1400176240,), (1400176242,), (1400176244,), (1400176247,), (1400176255,), (1400176258,), (1400176259,), (1400176261,), (1400176297,), (1400176299,), (1400176301,), (1400176303,), (1400176306,), (1400176309,), (1400176318,), (1400176319,), (1400176321,), (1400176323,), (1400176343,), (1400176344,), (1400176346,), (1400176348,), (1400176351,), (1400176353,), (1400176365,), (1400176368,), (1400176371,), (1400176375,), (1400176379,), (1400176385,), (1400176389,), (1400176390,), (1400176391,), (1400176393,), (1400176397,), (1400176399,), (1400176402,), (1400176404,), (1400176406,), (1400176410,), (1400176899,), (1400176968,), (1400177046,), (1400177135,), (1400177784,), (1400177740,), (1400177751,), (1400178058,), (1400178090,), (1400178124,), (1400178158,), (1400178193,), (1400178227,), (1400178362,), (1400178382,), (1400178390,), (1400178401,), (1400178428,), (1400178430,), (1400178432,), (1400178434,), (1400178437,), (1400178440,), (1400178449,), (1400178452,), (1400178455,), (1400178459,), (1400178475,), (1400178478,), (1400178480,), (1400178494,), (1400178496,), (1400178498,), (1400178500,), (1400178503,), (1400178505,), (1400178518,), (1400178533,), (1400178536,), (1400178565,), (1400178569,), (1400178571,), (1400178601,), (1400178608,), (1400178619,), (1400178621,), (1400178624,), (1400178626,), (1400178665,), (1400178667,), (1400178670,), (1400178673,), (1400178697,), (1400178710,), (1400178712,), (1400178719,), (1400178724,), (1400179025,), (1400179027,), (1400179029,), (1400179031,), (1400179035,), (1400179038,), (1400179090,), (1400179092,), (1400179094,), (1400179096,), (1400179240,), (1400179243,), (1400179246,), (1400179249,), (1400179254,), (1400179258,), (1400179283,), (1400179277,), (1400179279,), (1400179281,), (1400179320,), (1400179322,), (1400179324,), (1400179326,), (1400179328,), (1400179331,), (1400179534,), (1400179536,), (1400179538,), (1400179540,), (1400179574,), (1400179685,), (1400179696,), (1400179698,), (1400179700,), (1400179703,), (1400179705,), (1400179787,), (1400179807,), (1400179809,), (1400179811,), (1400180096,), (1400180130,), (1400180158,), (1400180160,), (1400180163,), (1400180185,), (1400180186,), (1400180188,), (1400180191,), (1400180194,), (1400180196,), (1400180202,), (1400180203,), (1400180205,), (1400180207,), (1400180209,), (1400180211,), (1400180224,), (1400180233,), (1400180260,), (1400180265,), (1400180267,), (1400180269,), (1400180272,), (1400180300,), (1400180302,), (1400180304,), (1400180306,), (1400180310,), (1400180414,), (1400180416,), (1400180418,), (1400180420,), (1400180423,), (1400180426,), (1400180439,), (1400180449,), (1400180451,), (1400180454,), (1400180458,), (1400180463,), (1400180475,), (1400180484,), (1400180486,), (1400180496,), (1400180502,), (1400180505,), (1400180513,), (1400180515,), (1400180519,), (1400180522,), (1400180526,), (1400180716,), (1400180743,), (1400180745,), (1400180747,), (1400180862,), (1400180956,), (1400180850,), (1400180852,), (1400180854,), (1400180856,), (1400180859,), (1400180887,), (1400180889,), (1400180891,), (1400180893,), (1400180896,), (1400180945,), (1400180951,), (1400180952,), (1400180953,), (1400180954,), (1400180960,), (1400180961,), (1400180964,), (1400180967,), (1400180969,), (1400180981,), (1400180984,), (1400180985,), (1400180987,), (1400180990,), (1400180993,), (1400180999,), (1400181001,), (1400181003,), (1400181005,), (1400181019,), (1400181021,), (1400181023,), (1400181024,), (1400181026,), (1400181027,), (1400181036,), (1400181038,), (1400181040,), (1400181045,), (1400181063,), (1400181066,), (1400181068,), (1400181070,), (1400181072,), (1400181074,), (1400181094,), (1400181096,), (1400181099,), (1400181102,), (1400181117,), (1400181120,), (1400181127,), (1400181137,), (1400181141,), (1400181144,), (1400181189,), (1400181196,), (1400181198,), (1400181200,), (1400181255,), (1400181257,), (1400181259,), (1400181266,), (1400181284,), (1400181286,), (1400181318,), (1400181321,), (1400181333,), (1400181335,), (1400181339,), (1400181341,), (1400181344,), (1400181347,), (1400181515,), (1400181525,), (1400181559,), (1400181601,), (1400181672,), (1400181712,), (1400181787,), (1400181789,), (1400181791,), (1400181793,), (1400181833,), (1400181821,), (1400181823,), (1400181825,), (1400181827,), (1400181830,), (1400181845,), (1400181847,), (1400181849,), (1400181851,), (1400181854,), (1400181947,), (1400181982,), (1400182016,), (1400182050,), (1400182091,), (1400182125,), (1400182167,), (1400182169,), (1400182171,), (1400182173,), (1400182202,), (1400182204,), (1400182206,), (1400182208,), (1400182211,), (1400182214,), (1400182223,), (1400182225,), (1400182226,), (1400182228,), (1400182257,), (1400182259,), (1400182260,), (1400182263,), (1400182266,), (1400182268,), (1400182274,), (1400182275,), (1400182276,), (1400182277,), (1400182282,), (1400182283,), (1400182287,), (1400182290,), (1400182293,), (1400182417,), (1400182533,), (1400182570,), (1400182605,), (1400182640,), (1400182657,), (1400182681,), (1400182683,), (1400182685,), (1400182687,), (1400182709,), (1400182711,), (1400182713,), (1400182715,), (1400182718,), (1400182730,), (1400182733,), (1400182737,), (1400182741,), (1400182743,), (1400182995,), (1400182998,), (1400183000,), (1400183004,), (1400183030,), (1400183143,), (1400183146,), (1400183150,), (1400183153,), (1400183161,), (1400183162,), (1400183163,), (1400183164,), (1400183165,), (1400183166,), (1400183174,), (1400183175,), (1400183699,), (1400184703,), (1400183370,), (1400183439,), (1400183502,), (1400183565,), (1400183634,), (1400184495,), (1400184504,), (1400184505,), (1400184508,), (1400184511,), (1400184524,), (1400184637,), (1400184657,), (1400184662,), (1400184687,), (1400184833,), (1400184950,), (1400185049,), (1400185115,), (1400185179,), (1400185360,), (1400185363,), (1400185365,), (1400185367,), (1400185370,), (1400185388,), (1400185493,), (1400185495,), (1400185497,), (1400185499,), (1400185515,), (1400185517,), (1400185519,), (1400185521,), (1400185524,), (1400185526,), (1400185552,), (1400185560,), (1400185563,), (1400185567,), (1400185593,), (1400185595,), (1400185597,), (1400185599,), (1400185602,), (1400185605,), (1400185622,), (1400185623,), (1400185625,), (1400185628,), (1400185630,), (1400185648,), (1400185650,), (1400185652,), (1400185654,), (1400185658,), (1400185664,), (1400185692,), (1400185694,), (1400185696,), (1400185698,), (1400185701,), (1400185723,), (1400185724,), (1400185726,), (1400185729,), (1400185732,), (1400185734,), (1400185760,), (1400185766,), (1400185770,), (1400185773,), (1400185775,), (1400185777,), (1400185781,), (1400185785,), (1400185793,), (1400185799,), (1400185802,), (1400185804,), (1400185811,), (1400185812,), (1400185814,), (1400185815,), (1400185816,), (1400185818,), (1400185820,), (1400185821,), (1400185824,), (1400185825,), (1400185826,), (1400185827,), (1400185834,), (1400185836,), (1400185838,), (1400185843,), (1400185846,), (1400185849,), (1400185866,), (1400185884,), (1400185875,), (1400185877,), (1400185879,), (1400185881,), (1400185895,), (1400185897,), (1400185899,), (1400185901,), (1400185904,), (1400185925,), (1400185952,), (1400185984,), (1400186019,), (1400186051,), (1400186317,), (1400186319,), (1400186321,), (1400186533,), (1400186573,), (1400186605,), (1400186614,), (1400186635,), (1400186637,), (1400186639,), (1400186641,), (1400186645,), (1400186677,), (1400186678,), (1400186680,), (1400186682,), (1400186685,), (1400186703,), (1400186705,), (1400186707,), (1400186709,), (1400186712,), (1400186729,), (1400186732,), (1400186735,), (1400186739,), (1400186742,), (1400186759,), (1400186761,), (1400186763,), (1400186765,), (1400186767,), (1400186806,), (1400186811,), (1400186813,), (1400186815,), (1400186818,), (1400186821,), (1400186830,), (1400186831,), (1400186833,), (1400186835,), (1400186838,), (1400186852,), (1400186854,), (1400186857,), (1400186859,), (1400186862,), (1400186891,), (1400186946,), (1400186881,), (1400186883,), (1400186884,), (1400186886,), (1400186889,), (1400186917,), (1400186918,), (1400186920,), (1400186923,), (1400186925,), (1400186927,), (1400186933,), (1400186934,), (1400186939,), (1400186944,), (1400186951,), (1400186954,), (1400186956,), (1400186958,), (1400186960,), (1400186968,), (1400186976,), (1400186978,), (1400186980,), (1400186990,), (1400186992,), (1400186994,), (1400186996,), (1400186999,), (1400187002,), (1400187021,), (1400187023,), (1400187025,), (1400187027,), (1400187046,), (1400187047,), (1400187049,), (1400187051,), (1400187054,), (1400187057,), (1400187074,), (1400187075,), (1400187077,), (1400187079,), (1400187095,), (1400187097,), (1400187099,), (1400187101,), (1400187104,), (1400187140,), (1400187144,), (1400187146,), (1400187148,), (1400187195,), (1400187230,), (1400187251,), (1400187257,), (1400187261,), (1400187290,), (1400187394,), (1400187396,), (1400187398,), (1400187420,), (1400187432,), (1400187434,), (1400187466,), (1400187480,), (1400190358,), (1400190371,), (1400190374,), (1400190376,), (1400190389,), (1400190390,), (1400190392,), (1400190394,), (1400190411,), (1400190427,), (1400190429,), (1400190430,), (1400190461,), (1400190464,), (1400190466,), (1400190468,), (1400190471,), (1400190474,), (1400190673,), (1400190706,), (1400190740,), (1400190791,), (1400190793,), (1400190795,), (1400190818,), (1400190820,), (1400190823,), (1400190827,), (1400190831,), (1400190834,), (1400190847,), (1400190849,), (1400190851,), (1400190853,), (1400190856,), (1400190859,), (1400190867,), (1400190869,), (1400190913,), (1400190904,), (1400190906,), (1400190908,), (1400190910,), (1400190922,), (1400190924,), (1400190926,), (1400190928,), (1400190949,), (1400190951,), (1400190953,), (1400190955,), (1400190958,), (1400190974,), (1400190975,), (1400190977,), (1400190979,), (1400190983,), (1400190986,), (1400191006,), (1400191009,), (1400191011,), (1400191022,), (1400191024,), (1400191026,), (1400191028,), (1400191031,), (1400191034,), (1400191057,), (1400191059,), (1400191061,), (1400191064,), (1400191067,), (1400191069,), (1400191074,), (1400191075,), (1400191076,), (1400191077,), (1400191079,), (1400191084,), (1400191086,), (1400191105,), (1400191112,), (1400191114,), (1400191116,), (1400191119,), (1400191137,), (1400191139,), (1400191141,), (1400191143,), (1400191146,), (1400191166,), (1400191168,), (1400191171,), (1400191210,), (1400191212,), (1400191214,), (1400191216,), (1400191219,), (1400191221,), (1400191245,), (1400191247,), (1400191248,), (1400191250,), (1400191253,), (1400191261,), (1400191262,), (1400191264,), (1400191266,), (1400191269,), (1400191272,), (1400191285,), (1400191287,), (1400191290,), (1400191292,), (1400191318,), (1400191350,), (1400191312,), (1400191314,), (1400191316,), (1400191345,), (1400191346,), (1400191348,), (1400191441,), (1400191460,), (1400191490,), (1400191492,), (1400191494,), (1400191496,), (1400191499,), (1400191502,), (1400191510,), (1400191512,), (1400191514,), (1400191541,), (1400191543,), (1400191555,), (1400191556,), (1400191558,), (1400191560,), (1400191562,), (1400191590,), (1400191592,), (1400191594,), (1400191597,), (1400191599,), (1400191601,), (1400191613,), (1400191614,), (1400191615,), (1400191616,), (1400191618,), (1400191623,), (1400191624,), (1400191642,), (1400191644,), (1400191687,), (1400191688,), (1400191690,), (1400191692,), (1400191695,), (1400191698,), (1400191705,), (1400191708,), (1400191710,), (1400191712,), (1400191716,), (1400191717,), (1400191913,), (1400191814,), (1400191847,), (1400191880,), (1400191979,), (1400191982,), (1400191984,), (1400191988,), (1400192010,), (1400192012,), (1400192074,), (1400192088,), (1400192089,), (1400192090,), (1400192091,), (1400192131,), (1400192133,), (1400192135,), (1400192138,), (1400192140,), (1400192141,), (1400192148,), (1400192149,), (1400192150,), (1400192155,), (1400192158,), (1400192161,), (1400192167,), (1400192171,), (1400192173,), (1400192182,), (1400192184,), (1400192186,), (1400192187,), (1400192207,), (1400192210,), (1400192212,), (1400192214,), (1400192216,), (1400192217,), (1400192227,), (1400192229,), (1400192231,), (1400192233,), (1400192245,), (1400192247,), (1400192249,), (1400192251,), (1400192254,), (1400192257,), (1400192280,), (1400192282,), (1400192284,), (1400192286,), (1400192288,), (1400192290,), (1400192300,), (1400192303,), (1400192307,), (1400192310,), (1400192318,), (1400192319,), (1400192320,), (1400192326,), (1400192327,), (1400192337,), (1400192945,), (1400192330,), (1400192334,), (1400192547,), (1400192586,), (1400192618,), (1400192654,), (1400192693,), (1400192731,), (1400192876,), (1400193195,), (1400193257,), (1400193324,), (1400193385,), (1400194369,), (1400194473,), (1400194566,), (1400194680,), (1400194835,), (1400194976,), (1400195999,), (1400196072,), (1400196106,), (1400196189,), (1400196271,), (1400196418,), (1400197234,), (1400197278,), (1400197310,), (1400197343,), (1400198057,), (1400198098,), (1400198133,), (1400198166,), (1400198174,), (1400198175,), (1400198480,), (1400198546,), (1400198584,), (1400198616,), (1400198843,), (1400198874,), (1400198972,), (1400198974,), (1400198976,), (1400199019,), (1400199774,), (1400199776,), (1400199778,), (1400199780,), (1400199783,), (1400200001,), (1400200003,), (1400200005,), (1400200007,), (1400200010,), (1400200012,), (1400200036,), (1400200041,), (1400200042,), (1400200044,), (1400200046,), (1400200048,), (1400200052,), (1400200373,), (1400200407,), (1400200439,), (1400200474,), (1400200998,), (1400201048,), (1400201144,), (1400201181,), (1400201225,), (1400201258,), (1400201755,), (1400201559,), (1400201594,), (1400201626,), (1400201660,), (1400201696,), (1400203781,), (1400206851,), (1400206887,), (1400206924,), (1400206879,), (1400206880,), (1400206882,), (1400206884,), (1400206902,), (1400206904,), (1400206906,), (1400206908,), (1400206910,), (1400206912,), (1400206917,), (1400206918,), (1400206919,), (1400206929,), (1400206931,), (1400206933,), (1400206936,), (1400206958,), (1400206960,), (1400206962,), (1400206964,), (1400206966,), (1400206969,), (1400207454,), (1400207562,), (1400207677,), (1400207791,), (1400207901,), (1400208021,), (1400208389,), (1400208391,), (1400208393,), (1400208395,), (1400209049,), (1400209082,), (1400209162,), (1400209366,), (1400209370,), (1400209399,), (1400209401,), (1400209425,), (1400209430,), (1400209768,), (1400209852,), (1400209938,), (1400210701,), (1400210744,), (1400210796,), (1400210818,), (1400210976,), (1400210987,), (1400211010,), (1400211025,), (1400211031,), (1400211074,), (1400211109,), (1400211142,), (1400211177,), (1400211216,), (1400211248,), (1400211460,), (1400211478,), (1400211511,), (1400211544,), (1400211567,), (1400211577,), (1400211745,), (1400211830,), (1400211917,), (1400212009,), (1400212087,), (1400212175,), (1400212251,), (1400212253,), (1400212256,), (1400212292,), (1400212370,), (1400212527,), (1400212562,), (1400212597,), (1400212634,), (1400212920,), (1400212830,), (1400212865,), (1400212898,), (1400212975,), (1400212977,), (1400212979,), (1400212981,), (1400212984,), (1400213017,), (1400213053,), (1400213090,), (1400213125,), (1400213161,), (1400213204,), (1400213362,), (1400213371,), (1400213406,), (1400213437,), (1400213538,), (1400213540,), (1400213542,), (1400213547,), (1400213558,), (1400213579,), (1400213612,), (1400213647,), (1400213680,), (1400213711,), (1400213741,), (1400214050,), (1400214094,), (1400214157,), (1400214233,), (1400214300,), (1400214345,), (1400214782,), (1400214867,), (1400215205,), (1400215293,), (1400215382,), (1400215472,), (1400215565,), (1400216364,), (1400216399,), (1400216521,), (1400216661,), (1400216679,), (1400216972,), (1400216978,), (1400217203,), (1400217238,), (1400217270,), (1400217566,), (1400217567,), (1400217568,), (1400217569,), (1400217572,), (1400217575,), (1400217640,), (1400217681,), (1400217718,), (1400219069,), (1400219073,), (1400219095,), (1400219149,), (1400219187,), (1400219268,), (1400219300,), (1400220072,), (1400222023,), (1400219693,), (1400219759,), (1400219842,), (1400219939,), (1400220008,), (1400221061,), (1400221267,), (1400221385,), (1400221550,), (1400221666,), (1400221769,), (1400221984,), (1400221985,), (1400221986,), (1400221988,), (1400222285,), (1400222361,), (1400222426,), (1400222868,), (1400222919,), (1400222948,), (1400223115,), (1400223117,), (1400223119,), (1400223121,), (1400223124,), (1400223126,), (1400223132,), (1400223136,), (1400223138,), (1400223140,), (1400223142,), (1400223205,), (1400223927,), (1400223984,), (1400223986,), (1400223987,), (1400224199,), (1400224201,), (1400224214,), (1400224278,), (1400224281,), (1400224300,), (1400224878,), (1400224879,), (1400224881,), (1400225112,), (1400225114,), (1400225116,), (1400225118,), (1400225162,), (1400225196,), (1400225460,), (1400225494,), (1400225528,), (1400225563,), (1400225674,), (1400225720,), (1400225761,), (1400225797,), (1400225829,), (1400225862,), (1400225921,), (1400225922,), (1400225987,), (1400226006,), (1400226031,), (1400226033,), (1400226034,), (1400226053,), (1400226059,), (1400226069,), (1400226104,), (1400226428,), (1400226546,), (1400226583,), (1400226807,), (1400226795,), (1400226797,), (1400226799,), (1400226801,), (1400226804,), (1400226923,), (1400226989,), (1400227055,), (1400227123,), (1400227185,), (1400228356,), (1400228558,), (1400229867,), (1400231572,), (1400232672,), (1400232676,), (1400232697,), (1400232699,), (1400232702,), (1400233348,), (1400233412,), (1400233470,), (1400233536,), (1400233576,), (1400233610,), (1400233724,), (1400233727,), (1400233971,), (1400233973,), (1400234006,), (1400234102,), (1400234136,), (1400234169,), (1400234202,), (1400234233,), (1400234236,), (1400234284,), (1400234285,), (1400234288,), (1400234290,), (1400234293,), (1400234318,), (1400234353,), (1400234314,), (1400234316,), (1400234334,), (1400234336,), (1400234338,), (1400234341,), (1400234344,), (1400234346,), (1400234351,), (1400234352,), (1400234357,), (1400234358,), (1400234360,), (1400234363,), (1400234366,), (1400234368,), (1400234394,), (1400234396,), (1400234398,), (1400234399,), (1400234484,), (1400234516,), (1400234551,), (1400234584,), (1400234617,), (1400234977,), (1400235012,), (1400235071,), (1400235187,), (1400236205,), (1400236294,), (1400236411,), (1400238740,), (1400238743,), (1400238745,), (1400238749,), (1400238752,), (1400239044,), (1400239169,), (1400239283,), (1400239341,), (1400239373,), (1400239443,), (1400239610,), (1400239643,), (1400239677,), (1400239814,), (1400239845,), (1400239878,), (1400240185,), (1400240187,), (1400240189,), (1400240191,), (1400240194,), (1400240412,), (1400240444,), (1400240486,), (1400240539,), (1400240853,), (1400240800,), (1400240802,), (1400240821,), (1400241173,), (1400241206,), (1400241243,), (1400241277,), (1400241311,), (1400241349,), (1400241510,), (1400241512,), (1400241513,), (1400241515,), (1400241518,), (1400242102,), (1400242233,), (1400242350,), (1400242703,), (1400242734,), (1400242736,), (1400242778,), (1400243108,), (1400243150,), (1400243185,), (1400243220,), (1400243257,), (1400243291,), (1400243603,), (1400243604,), (1400243607,), (1400243610,), (1400243612,), (1400243614,), (1400243619,), (1400243622,), (1400243627,), (1400243630,), (1400243693,), (1400243731,), (1400243774,), (1400243809,), (1400243843,), (1400243878,), (1400244001,), (1400244078,), (1400244184,), (1400244269,), (1400244331,), (1400244399,), (1400244851,), (1400244853,), (1400244855,), (1400245117,), (1400245118,), (1400245120,), (1400245122,), (1400245145,), (1400245180,), (1400245490,), (1400245523,), (1400245557,), (1400245592,), (1400245914,), (1400245916,), (1400245918,), (1400245920,), (1400245923,), (1400245926,), (1400246846,), (1400246965,), (1400247089,), (1400247197,), (1400247721,), (1400247814,), (1400247887,), (1400247993,), (1400248086,), (1400249913,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19122025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29582620]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] map_info['map_portfolio_photo'] : {29582620: [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721, 1400247197, 1400247089, 1400246965, 1400246846, 1400245926, 1400245923, 1400245920, 1400245918, 1400245916, 1400245914, 1400245592, 1400245557, 1400245523, 1400245490, 1400245180, 1400245145, 1400245122, 1400245120, 1400245118, 1400245117, 1400244855, 1400244853, 1400244851, 1400244399, 1400244331, 1400244269, 1400244184, 1400244078, 1400244001, 1400243878, 1400243843, 1400243809, 1400243774, 1400243731, 1400243693, 1400243630, 1400243627, 1400243622, 1400243619, 1400243614, 1400243612, 1400243610, 1400243607, 1400243604, 1400243603, 1400243291, 1400243257, 1400243220, 1400243185, 1400243150, 1400243108, 1400242778, 1400242736, 1400242734, 1400242703, 1400242350, 1400242233, 1400242102, 1400241518, 1400241515, 1400241513, 1400241512, 1400241510, 1400241349, 1400241311, 1400241277, 1400241243, 1400241206, 1400241173, 1400240821, 1400240802, 1400240800]} final : True mtd_id 4302 list_pids : [1400249913, 1400248086, 1400247993, 1400247887, 1400247814, 1400247721] Looping around the photos to save general results len do output : 1 /29582620Didn'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, '4252287') ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287') ('4302', None, None, None, None, None, None, None, '4252287') ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '29582620', 'None', None, None, None, None, '4252287'), ('4302', '29582620', '1400249913', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400248086', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247993', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247887', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247814', None, None, None, None, None, '4252287'), ('4302', '29582620', '1400247721', None, None, None, None, None, '4252287')] time used for this insertion : 0.016695737838745117 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.960703611373901 time spend to save output : 0.016874074935913086 total time spend for step 5 : 9.977577686309814 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 (4252287) 2.10user 2.77system 0:22.91elapsed 21%CPU (0avgtext+0avgdata 165704maxresident)k 101424inputs+11176outputs (436major+79088minor)pagefaults 0swaps