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 : 386025 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 (3795212) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3795212) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356877 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3795212'] with mtr_portfolio_ids : ['27356877'] and first list_photo_ids : [] new path : /proc/386025/ Name: python3 Umask: 0002 State: R (running) Tgid: 386025 Ngid: 0 Pid: 386025 PPid: 386024 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 386025 NSpid: 386025 NSpgid: 383975 NSsid: 383975 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98260 kB VmRSS: 98260 kB RssAnon: 59844 kB RssFile: 38416 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 53 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '386025', 'Ngid': '0', 'Pid': '386025', 'PPid': '386024', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '386025', 'NSpid': '386025', 'NSpgid': '383975', 'NSsid': '383975', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98260 kB', 'VmRSS': '98260 kB', 'RssAnon': '59844 kB', 'RssFile': '38416 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '53', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '386025', '1106868', '0', '1106868', '865620', '98260', b'', 'marlene', '3795212') 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 (27356877) 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 (3795212 ) ) 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 (27356877) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1386985100, 'portfolio_id': 27356877}, {'photo_id': 1386985098, 'portfolio_id': 27356877}, {'photo_id': 1386985097, 'portfolio_id': 27356877}, {'photo_id': 1386985095, 'portfolio_id': 27356877}, {'photo_id': 1386985072, 'portfolio_id': 27356877}, {'photo_id': 1386985052, 'portfolio_id': 27356877}, {'photo_id': 1386985040, 'portfolio_id': 27356877}, {'photo_id': 1386985012, 'portfolio_id': 27356877}, {'photo_id': 1386984992, 'portfolio_id': 27356877}, {'photo_id': 1386984889, 'portfolio_id': 27356877}, {'photo_id': 1386984883, 'portfolio_id': 27356877}, {'photo_id': 1386984866, 'portfolio_id': 27356877}, {'photo_id': 1386984837, 'portfolio_id': 27356877}, {'photo_id': 1386984835, 'portfolio_id': 27356877}, {'photo_id': 1386984731, 'portfolio_id': 27356877}, {'photo_id': 1386984730, 'portfolio_id': 27356877}, {'photo_id': 1386984461, 'portfolio_id': 27356877}, {'photo_id': 1386984456, 'portfolio_id': 27356877}, {'photo_id': 1386984400, 'portfolio_id': 27356877}, {'photo_id': 1386984398, 'portfolio_id': 27356877}, {'photo_id': 1386984393, 'portfolio_id': 27356877}, {'photo_id': 1386984166, 'portfolio_id': 27356877}, {'photo_id': 1386984114, 'portfolio_id': 27356877}, {'photo_id': 1386984087, 'portfolio_id': 27356877}, {'photo_id': 1386983890, 'portfolio_id': 27356877}, {'photo_id': 1386983878, 'portfolio_id': 27356877}, {'photo_id': 1386983875, 'portfolio_id': 27356877}, {'photo_id': 1386983867, 'portfolio_id': 27356877}, {'photo_id': 1386983835, 'portfolio_id': 27356877}, {'photo_id': 1386983822, 'portfolio_id': 27356877}, {'photo_id': 1386983690, 'portfolio_id': 27356877}, {'photo_id': 1386983688, 'portfolio_id': 27356877}, {'photo_id': 1386983686, 'portfolio_id': 27356877}, {'photo_id': 1386983681, 'portfolio_id': 27356877}, {'photo_id': 1386983622, 'portfolio_id': 27356877}, {'photo_id': 1386983597, 'portfolio_id': 27356877}, {'photo_id': 1386983593, 'portfolio_id': 27356877}, {'photo_id': 1386983589, 'portfolio_id': 27356877}, {'photo_id': 1386983516, 'portfolio_id': 27356877}, {'photo_id': 1386983511, 'portfolio_id': 27356877}, {'photo_id': 1386983506, 'portfolio_id': 27356877}, {'photo_id': 1386983500, 'portfolio_id': 27356877}, {'photo_id': 1386983499, 'portfolio_id': 27356877}, {'photo_id': 1386983415, 'portfolio_id': 27356877}, {'photo_id': 1386983403, 'portfolio_id': 27356877}, {'photo_id': 1386983401, 'portfolio_id': 27356877}, {'photo_id': 1386983397, 'portfolio_id': 27356877}, {'photo_id': 1386983393, 'portfolio_id': 27356877}, {'photo_id': 1386983254, 'portfolio_id': 27356877}, {'photo_id': 1386983011, 'portfolio_id': 27356877}, {'photo_id': 1386982803, 'portfolio_id': 27356877}, {'photo_id': 1386982578, 'portfolio_id': 27356877}, {'photo_id': 1386981933, 'portfolio_id': 27356877}, {'photo_id': 1386981856, 'portfolio_id': 27356877}, {'photo_id': 1386981628, 'portfolio_id': 27356877}] map_portfolio_id_photo_id: {27356877: [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992, 1386984889, 1386984883, 1386984866, 1386984837, 1386984835, 1386984731, 1386984730, 1386984461, 1386984456, 1386984400, 1386984398, 1386984393, 1386984166, 1386984114, 1386984087, 1386983890, 1386983878, 1386983875, 1386983867, 1386983835, 1386983822, 1386983690, 1386983688, 1386983686, 1386983681, 1386983622, 1386983597, 1386983593, 1386983589, 1386983516, 1386983511, 1386983506, 1386983500, 1386983499, 1386983415, 1386983403, 1386983401, 1386983397, 1386983393, 1386983254, 1386983011, 1386982803, 1386982578, 1386981933, 1386981856, 1386981628]} ##### 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.054154157638549805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 30 17:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27356877) 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 : 27356877 get user id for portfolio 27356877 get sub ptf for main ptf 27356877, type 3726 and hashtags ['papier', 'Carton_gris', 'kraft', 'cartonnette', 'environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'autre_refus', 'plastique', 'metal', 'Carton_brun', 'flou'] 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`=27356877 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','cartonnette','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','plastique','metal','Carton_brun','flou')) 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`=27356877 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','cartonnette','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','plastique','metal','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27356877, 'sub_port_id': 27356939, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484929, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'autre_refus': {'main_port_id': 27356877, 'sub_port_id': 27356940, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484930, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 27356877, 'sub_port_id': 27356941, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484931, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'kraft': {'main_port_id': 27356877, 'sub_port_id': 27356942, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484932, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'papier': {'main_port_id': 27356877, 'sub_port_id': 27356943, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484933, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Carton_brun': {'main_port_id': 27356877, 'sub_port_id': 27356944, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484934, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'environnement': {'main_port_id': 27356877, 'sub_port_id': 27356945, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484935, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'metal': {'main_port_id': 27356877, 'sub_port_id': 27356946, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484936, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'plastique': {'main_port_id': 27356877, 'sub_port_id': 27356947, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484937, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'cartonnette': {'main_port_id': 27356877, 'sub_port_id': 27356948, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484938, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'flou': {'main_port_id': 27356877, 'sub_port_id': 27356949, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484939, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Carton_gris': {'main_port_id': 27356877, 'sub_port_id': 27356950, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484940, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27356939 , 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=27356877 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 (27356939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356940 , 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=27356877 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 (27356940) result : ((1386984993,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356941 , 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=27356877 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 (27356941) result : ((1386983557,), (1386983558,), (1386983559,), (1386983560,), (1386983561,), (1386983562,), (1386983563,), (1386983879,), (1386983880,), (1386983897,), (1386984816,), (1386984900,), (1386985102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356942 , 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=27356877 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 (27356942) result : ((1386983570,), (1386983887,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356943 , 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=27356877 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 (27356943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356944 , 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=27356877 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 (27356944) result : ((1386983568,), (1386983569,), (1386983885,), (1386983886,), (1386984819,), (1386984915,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356945 , 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=27356877 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 (27356945) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356946 , 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=27356877 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 (27356946) result : ((1386983579,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356947 , 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=27356877 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 (27356947) result : ((1386984995,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356948 , 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=27356877 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 (27356948) result : ((1386983565,), (1386983566,), (1386983883,), (1386983884,), (1386983899,), (1386984908,), (1386985104,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356949 , 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=27356877 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 (27356949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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 27356950 , 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=27356877 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 (27356950) result : ((1386983564,), (1386983881,), (1386983882,), (1386983898,), (1386985103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27356877) result : ((1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) 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 (1386985100,1386983500,1386984400) 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`=27356877 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','cartonnette','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','plastique','metal','Carton_brun','flou')) 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`=27356877 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','kraft','cartonnette','environnement','Teint_Dans_La_Masse','mal_croppe','autre_refus','plastique','metal','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27356877, 'sub_port_id': 27356951, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484941, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'autre_refus': {'main_port_id': 27356877, 'sub_port_id': 27356952, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484942, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 27356877, 'sub_port_id': 27356953, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484943, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'kraft': {'main_port_id': 27356877, 'sub_port_id': 27356954, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484944, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'papier': {'main_port_id': 27356877, 'sub_port_id': 27356955, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484945, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Carton_brun': {'main_port_id': 27356877, 'sub_port_id': 27356956, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484946, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'environnement': {'main_port_id': 27356877, 'sub_port_id': 27356957, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484947, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'metal': {'main_port_id': 27356877, 'sub_port_id': 27356958, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484948, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'plastique': {'main_port_id': 27356877, 'sub_port_id': 27356959, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484949, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'cartonnette': {'main_port_id': 27356877, 'sub_port_id': 27356960, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484950, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'flou': {'main_port_id': 27356877, 'sub_port_id': 27356961, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484951, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 5, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}, 'Carton_gris': {'main_port_id': 27356877, 'sub_port_id': 27356962, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18484952, 'last_updated_at': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 17, 5, 26)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27356962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27356950 lien utilise dans velours : https://marlene.fotonower.com/velours/27356951,27356952,27356953,27356954,27356955,27356956,27356957,27356958,27356959,27356960,27356961,27356962?tags=mal_croppe,autre_refus,Teint_Dans_La_Masse,kraft,papier,Carton_brun,environnement,metal,plastique,cartonnette,flou,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27356877]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] map_info['map_portfolio_photo'] : {27356877: [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992, 1386984889, 1386984883, 1386984866, 1386984837, 1386984835, 1386984731, 1386984730, 1386984461, 1386984456, 1386984400, 1386984398, 1386984393, 1386984166, 1386984114, 1386984087, 1386983890, 1386983878, 1386983875, 1386983867, 1386983835, 1386983822, 1386983690, 1386983688, 1386983686, 1386983681, 1386983622, 1386983597, 1386983593, 1386983589, 1386983516, 1386983511, 1386983506, 1386983500, 1386983499, 1386983415, 1386983403, 1386983401, 1386983397, 1386983393, 1386983254, 1386983011, 1386982803, 1386982578, 1386981933, 1386981856, 1386981628]} final : False mtd_id 4302 list_pids : [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] Looping around the photos to save general results len do output : 1 /27356877. 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, '3795212') ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27356877', "{'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950}", None, None, None, None, '3795212'), ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212')] time used for this insertion : 0.0367894172668457 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7094757556915283 time spend to save output : 0.0370633602142334 total time spend for step 1 : 1.7465391159057617 step2:final Tue Sep 30 17:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (27356877) 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 27356877 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1386982803,1386982578,1386981933,1386981856,1386981628,1386983254,1386983011,1386983415,1386983403,1386983401,1386983397,1386983393,1386983516,1386983511,1386983506,1386983500,1386983499,1386983622,1386983597,1386983593,1386983589,1386983690,1386983688,1386983686,1386983681,1386983890,1386983878,1386983875,1386983867,1386983835,1386983822,1386984166,1386984114,1386984087,1386984400,1386984398,1386984393,1386984731,1386984730,1386984461,1386984456,1386984889,1386984883,1386984866,1386984837,1386984835,1386985072,1386985052,1386985040,1386985012,1386984992,1386985100,1386985098,1386985097,1386985095); 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([27356877]) Inside saveOutput : final : False verbose : True original output for save of step final : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} new output for save of step final : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] map_info['map_portfolio_photo'] : {27356877: [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992, 1386984889, 1386984883, 1386984866, 1386984837, 1386984835, 1386984731, 1386984730, 1386984461, 1386984456, 1386984400, 1386984398, 1386984393, 1386984166, 1386984114, 1386984087, 1386983890, 1386983878, 1386983875, 1386983867, 1386983835, 1386983822, 1386983690, 1386983688, 1386983686, 1386983681, 1386983622, 1386983597, 1386983593, 1386983589, 1386983516, 1386983511, 1386983506, 1386983500, 1386983499, 1386983415, 1386983403, 1386983401, 1386983397, 1386983393, 1386983254, 1386983011, 1386982803, 1386982578, 1386981933, 1386981856, 1386981628]} final : False mtd_id 4302 list_pids : [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] Looping around the photos to save general results len do output : 9 /1386985100.Didn't retrieve data . /1386985098.Didn't retrieve data . /1386985097.Didn't retrieve data . /1386985095.Didn't retrieve data . /1386985072.Didn't retrieve data . /1386985052.Didn't retrieve data . /1386985040.Didn't retrieve data . /1386985012.Didn't retrieve data . /1386984992.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, '3795212') ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27356877', '1386985100', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985098', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985097', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985095', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985072', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985052', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985040', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386985012', '0.047616180191409584', None, None, None, None, '3795212'), ('4302', '27356877', '1386984992', '0.047616180191409584', None, None, None, None, '3795212')] time used for this insertion : 0.03704524040222168 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2487480640411377 time spend to save output : 0.03755927085876465 total time spend for step 2 : 0.28630733489990234 step3:velours_tree Tue Sep 30 17:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27356877: [{'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950}]} input_args_next_step : {27356877: ()} output_args : {27356877: [{'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950}]} args : 27356877 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 : ({'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27356877) 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([27356877]) 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.3166317939758301 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.31667137145996094 step4:send_mail_cod Tue Sep 30 17:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} input_args_next_step : {1386985100: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985100 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985098 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985097 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985095 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985072 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985052 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985040 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386985012 depend.output_id : 0 input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ()} output_args : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',)} args : 1386984992 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 : {27356877: [{'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950}]} input_args_next_step : {1386985100: ('0.047616180191409584',), 1386985098: ('0.047616180191409584',), 1386985097: ('0.047616180191409584',), 1386985095: ('0.047616180191409584',), 1386985072: ('0.047616180191409584',), 1386985052: ('0.047616180191409584',), 1386985040: ('0.047616180191409584',), 1386985012: ('0.047616180191409584',), 1386984992: ('0.047616180191409584',), 27356877: ()} output_args : {27356877: [{'mal_croppe': 27356939, 'autre_refus': 27356940, 'Teint_Dans_La_Masse': 27356941, 'kraft': 27356942, 'papier': 27356943, 'Carton_brun': 27356944, 'environnement': 27356945, 'metal': 27356946, 'plastique': 27356947, 'cartonnette': 27356948, 'flou': 27356949, 'Carton_gris': 27356950}]} args : 27356877 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.047616180191409584',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27356877) 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 (1386985100,1386985098,1386985097,1386985095,1386985072,1386985052,1386985040,1386985012,1386984992) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1386984992 begin to download photo : 1386985040 begin to download photo : 1386985072 begin to download photo : 1386985097 begin to download photo : 1386985100 download finish for photo 1386984992 begin to download photo : 1386985012 download finish for photo 1386985072 begin to download photo : 1386985095 download finish for photo 1386985100 download finish for photo 1386985097 begin to download photo : 1386985098 download finish for photo 1386985040 begin to download photo : 1386985052 download finish for photo 1386985012 download finish for photo 1386985095 download finish for photo 1386985098 download finish for photo 1386985052 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette273569391759245300/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P27356877_30-09-2025_17_15_00.pdf 27356939 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=27356939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273569391759245300 27356940 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=27356940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386984993: '1759245085_2615037_1386983500_e4505b948509719f0cbfc0d4bdb248a4_rle_crop_3981114778_0.png'} change filename to text .imagette273569401759245300/ imagette273569401759245300/1759245085_2615037_1386983500_e4505b948509719f0cbfc0d4bdb248a4_rle_crop_3981114778_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/47c0a09d761b080cf67d6af4861738b8_3996174.png imagette273569401759245300 27356942 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=27356942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983570: '1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103283_0.png', 1386983887: '1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108168_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/ff56dd66957ff4a12a71dd32525866db_36486547.png change filename to text .imagette273569421759245301/ imagette273569421759245301/1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103283_0.png.png imagette273569421759245301/1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108168_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/3d5a2c80a1d5622d3ca39498903c42a2_18753662.png imagette273569421759245301 27356946 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=27356946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983579: '1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101853_0.png'} change filename to text .imagette273569461759245301/ imagette273569461759245301/1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101853_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/85966bf7879da5d818ba457458f2a346_38673602.png imagette273569461759245301 27356947 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=27356947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386984995: '1759245085_2615037_1386983506_9503e50e7d5d26166349d25627fa5db1_rle_crop_3981114771_0.png'} change filename to text .imagette273569471759245301/ imagette273569471759245301/1759245085_2615037_1386983506_9503e50e7d5d26166349d25627fa5db1_rle_crop_3981114771_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/75e382ac438da4ab438fd25d766d9a6d_15642868.png imagette273569471759245301 27356948 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=27356948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983565: '1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103253_0.png', 1386983566: '1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103281_0.png', 1386983883: '1759244826_2600010_1386983393_49160b552eac318b4c8617a7d3bc6099_rle_crop_3981108181_0.png', 1386983884: '1759244826_2600010_1386983393_49160b552eac318b4c8617a7d3bc6099_rle_crop_3981108177_0.png', 1386983899: '1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108256_0.png', 1386984908: '1759245065_2613136_1386983835_bad83be1e01e20bd5a1ffd348743864b_rle_crop_3981114036_0.png', 1386985104: '1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117395_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9b6cec1510720886433268f6697ecbae_99729343.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/5ffc86ef5b143641fb0e075e3a232d61_67921799.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/5ebffa9a26cbe4ae6074289e2d92ccbf_23505422.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/56cccff1f17d32e52fa379f78a444d01_1364168.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/c969d97bd4d19523448058c99a7b515c_38949117.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1a9a6a43fc5630c830f70871dc0b2acd_59954209.png change filename to text .imagette273569481759245301/ imagette273569481759245301/1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103281_0.png.png imagette273569481759245301/1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117395_0.png.png imagette273569481759245301/1759245065_2613136_1386983835_bad83be1e01e20bd5a1ffd348743864b_rle_crop_3981114036_0.png.png imagette273569481759245301/1759244826_2600010_1386983393_49160b552eac318b4c8617a7d3bc6099_rle_crop_3981108177_0.png.png imagette273569481759245301/1759244826_2600010_1386983393_49160b552eac318b4c8617a7d3bc6099_rle_crop_3981108181_0.png.png imagette273569481759245301/1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108256_0.png.png imagette273569481759245301/1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103253_0.png.png imagette273569491759245302/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/04f277dcd295c7057ee84539ae6b6cb6_49431531.png imagette273569481759245301 27356949 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=27356949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273569491759245302 27356941 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=27356941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983557: '1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101854_0.png', 1386983558: '1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103257_0.png', 1386983559: '1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103277_0.png', 1386983560: '1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103278_0.png', 1386983561: '1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103274_0.png', 1386983562: '1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103291_0.png', 1386983563: '1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103292_0.png', 1386983879: '1759244826_2600010_1386983401_ac6d12c0742ca8b0cd012d068168c254_rle_crop_3981108155_0.png', 1386983880: '1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108165_0.png', 1386983897: '1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108267_0.png', 1386984816: '1759245027_2610046_1386983688_ed6acbed4ce757eb2cf5be283e682017_rle_crop_3981112114_0.png', 1386984900: '1759245065_2613136_1386983822_31a58d58db6243d47bad7f013a7b83b1_rle_crop_3981114049_0.png', 1386985102: '1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117403_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/3a68c5ab529a30f274ffe5f2968c5afc_55022508.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/dc28fe6039e13c12504d22bfdb13baab_25971023.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/14a4dea04b821845c5e033d61e3a820c_25074898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/41f626712681c13f888a3e6f5c71df45_29947427.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9816c992a8a978df5a9572c375be6f1a_5382113.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/5dccb34fcae0d49fbd1e1521339fb94c_73930990.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/ee8adbdb2d9fa457eee0fa282f5cb4c9_10895887.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9de8bca03acf4c1769b831781e07d0ab_82561734.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/c8b424c844711b275f6f93f128908f35_59930346.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/06435404f6b8629ea29d8733c40bc664_63553729.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/8dfadf768ebc806f100995a7099e3684_24956868.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9ece943398a7f38628b36a452c5ca4a6_57773054.png change filename to text .imagette273569411759245302/ imagette273569411759245302/1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103274_0.png.png imagette273569411759245302/1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101854_0.png.png imagette273569411759245302/1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108165_0.png.png imagette273569411759245302/1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103277_0.png.png imagette273569411759245302/1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103257_0.png.png imagette273569411759245302/1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117403_0.png.png imagette273569411759245302/1759244826_2600010_1386983401_ac6d12c0742ca8b0cd012d068168c254_rle_crop_3981108155_0.png.png imagette273569411759245302/1759244664_2591309_1386981856_bd6020e4cf9fd245cd7a1792b4291070_rle_crop_3981103278_0.png.png imagette273569411759245302/1759245027_2610046_1386983688_ed6acbed4ce757eb2cf5be283e682017_rle_crop_3981112114_0.png.png imagette273569411759245302/1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108267_0.png.png imagette273569411759245302/1759245065_2613136_1386983822_31a58d58db6243d47bad7f013a7b83b1_rle_crop_3981114049_0.png.png imagette273569411759245302/1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103291_0.png.png imagette273569411759245302/1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103292_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/afebe5ecd5ebc435464b602050b48aad_34205187.png imagette273569411759245302 27356944 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=27356944 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983568: '1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103260_0.png', 1386983569: '1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103285_0.png', 1386983885: '1759244826_2600010_1386983401_ac6d12c0742ca8b0cd012d068168c254_rle_crop_3981108156_0.png', 1386983886: '1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108171_0.png', 1386984819: '1759245027_2610046_1386983686_44e7bca068c51ac44b1ab99e3cbcfc2a_rle_crop_3981112151_0.png', 1386984915: '1759245065_2613136_1386983878_bc57a13f2a2a3f4b84e0300d7a0b1ce3_rle_crop_3981114008_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/052a1ab2f58be94c5490a09da5b425d3_51046146.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/4babad5446d0322f05c378fcab1e990c_31541600.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/2c475a1619628dc6bb276b676663bcc9_5202445.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/c522a7f3e4cf268f16239b2a26ff510f_8813211.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/313db88143894b2fa4a3419305ab1b65_92302771.png change filename to text .imagette273569441759245303/ imagette273569441759245303/1759244664_2591309_1386981933_c3523813141170f20f56601449754b1c_rle_crop_3981103260_0.png.png imagette273569441759245303/1759244826_2600010_1386983401_ac6d12c0742ca8b0cd012d068168c254_rle_crop_3981108156_0.png.png imagette273569441759245303/1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108171_0.png.png imagette273569441759245303/1759244664_2591309_1386981628_585c705fa816bc63718dd118b6df05e1_rle_crop_3981103285_0.png.png imagette273569441759245303/1759245065_2613136_1386983878_bc57a13f2a2a3f4b84e0300d7a0b1ce3_rle_crop_3981114008_0.png.png imagette273569441759245303/1759245027_2610046_1386983686_44e7bca068c51ac44b1ab99e3cbcfc2a_rle_crop_3981112151_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1e38cc788be4629f8ce9afb181d17909_30357599.png imagette273569441759245303 27356950 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=27356950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386983564: '1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101849_0.png', 1386983881: '1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108164_0.png', 1386983882: '1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108161_0.png', 1386983898: '1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108260_0.png', 1386985103: '1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a2de3190bc39321024d1bab25b76e736_71083027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/afd0fd5235d244c1a8d7b4129de3c236_88619902.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/287fef5c27b6ab850c4500f8dbc1f447_65847843.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9910da1d28698b88acf404864726a3e2_41590208.png change filename to text .imagette273569501759245303/ imagette273569501759245303/1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108164_0.png.png imagette273569501759245303/1759244846_2601124_1386983254_b82072bc3a58076ff12d9d847f725742_rle_crop_3981108260_0.png.png imagette273569501759245303/1759244826_2600010_1386983397_a355b693307cf3cf12048f25e0a89b94_rle_crop_3981108161_0.png.png imagette273569501759245303/1759245184_2623298_1386983593_9d84404050f18fd05b3ba286d8128190_rle_crop_3981117398_0.png.png imagette273569501759245303/1759244664_2591309_1386982803_bdbf99d18b133e3db4a4e0713426af9a_rle_crop_3981101849_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/af989d03677ec2f9e98df75715648bc0_39850336.png imagette273569501759245303 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27356877 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27356951,27356952,27356953,27356954,27356955,27356956,27356957,27356958,27356959,27356960,27356961,27356962?tags=mal_croppe,autre_refus,Teint_Dans_La_Masse,kraft,papier,Carton_brun,environnement,metal,plastique,cartonnette,flou,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1386985100] : ('0.047616180191409584',) no score found for photo 1386985100 We are sending mail with results at report@fotonower.com args[1386985098] : ('0.047616180191409584',) no score found for photo 1386985098 We are sending mail with results at report@fotonower.com args[1386985097] : ('0.047616180191409584',) no score found for photo 1386985097 We are sending mail with results at report@fotonower.com args[1386985095] : ('0.047616180191409584',) no score found for photo 1386985095 We are sending mail with results at report@fotonower.com args[1386985072] : ('0.047616180191409584',) no score found for photo 1386985072 We are sending mail with results at report@fotonower.com args[1386985052] : ('0.047616180191409584',) no score found for photo 1386985052 We are sending mail with results at report@fotonower.com args[1386985040] : ('0.047616180191409584',) no score found for photo 1386985040 We are sending mail with results at report@fotonower.com args[1386985012] : ('0.047616180191409584',) no score found for photo 1386985012 We are sending mail with results at report@fotonower.com args[1386984992] : ('0.047616180191409584',) no score found for photo 1386984992 We are sending mail with results at report@fotonower.com refus_total : 0.047616180191409584 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=27356877 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_P27356877_30-09-2025_17_15_00.pdf results_Auto_P27356877_30-09-2025_17_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_15_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','27356877','results_Auto_P27356877_30-09-2025_17_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_15_00.pdf','pdf','','0.19','0.047616180191409584') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27356877]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] map_info['map_portfolio_photo'] : {27356877: [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992, 1386984889, 1386984883, 1386984866, 1386984837, 1386984835, 1386984731, 1386984730, 1386984461, 1386984456, 1386984400, 1386984398, 1386984393, 1386984166, 1386984114, 1386984087, 1386983890, 1386983878, 1386983875, 1386983867, 1386983835, 1386983822, 1386983690, 1386983688, 1386983686, 1386983681, 1386983622, 1386983597, 1386983593, 1386983589, 1386983516, 1386983511, 1386983506, 1386983500, 1386983499, 1386983415, 1386983403, 1386983401, 1386983397, 1386983393, 1386983254, 1386983011, 1386982803, 1386982578, 1386981933, 1386981856, 1386981628]} final : False mtd_id 4302 list_pids : [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] 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, '3795212') ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27356877', '1386985100', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212')] time used for this insertion : 0.03625965118408203 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.646058559417725 time spend to save output : 0.036438703536987305 total time spend for step 4 : 4.682497262954712 step5:split_time_score Tue Sep 30 17:15:05 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 : ['27356877'] 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 : [('27356877',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27356877) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1386985100: {'path': 'temp/1759245300_386025_1386985100_be5b83f4c164143fb27552ebc8482d28.jpg', 'extension': 'jpg'}, 1386984992: {'path': 'temp/1759245300_386025_1386984992_7dd06524c9c9e1c0fbd8e56c93a05abd.jpg', 'extension': 'jpg'}, 1386985012: {'path': 'temp/1759245300_386025_1386985012_09d982f8ab18d157773ce9a38e06ba68.jpg', 'extension': 'jpg'}, 1386985072: {'path': 'temp/1759245300_386025_1386985072_cd32c952660adaa7a92dfb06972d14b0.jpg', 'extension': 'jpg'}, 1386985095: {'path': 'temp/1759245300_386025_1386985095_3ef5c67a33eb5393eb8cf41561f688c5.jpg', 'extension': 'jpg'}, 1386985097: {'path': 'temp/1759245300_386025_1386985097_83cc190d17a104cc74b50a9027560629.jpg', 'extension': 'jpg'}, 1386985098: {'path': 'temp/1759245300_386025_1386985098_4289af78322939e11eee0e004a99d0d1.jpg', 'extension': 'jpg'}, 1386985040: {'path': 'temp/1759245300_386025_1386985040_255577b1f0a0af8c5be29d9745f0893e.jpg', 'extension': 'jpg'}, 1386985052: {'path': 'temp/1759245300_386025_1386985052_bc2ad678a280ad51244a5dfc9e424d5e.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 = 27356877; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27356877 group by h (('17', 55),) 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=27356877 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 (27356877) 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 (27356877) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30092025 27356877 Nombre de photos uploadées : 55 / 23040 (0%) 30092025 27356877 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 30092025 27356877 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1386982803, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/bdbf99d18b133e3db4a4e0713426af9a.jpg', 'username': None, 'uploaded_at': 1759244468, 'text': 'image_30092025_17_00_04_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1386982578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/86c28dff7691ca21f5c0c9ece4a58e1b.jpg', 'username': None, 'uploaded_at': 1759244468, 'text': 'image_30092025_17_00_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1386981933, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/c3523813141170f20f56601449754b1c.jpg', 'username': None, 'uploaded_at': 1759244468, 'text': 'image_30092025_17_00_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1386981856, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/bd6020e4cf9fd245cd7a1792b4291070.jpg', 'username': None, 'uploaded_at': 1759244468, 'text': 'image_30092025_17_00_33_009125m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024063587188720703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27356877, '2025-09-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2363251,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.690601110458374 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= 2363251 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27335682, 'dashboard_result_id': 15806172, '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_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27335814, 'dashboard_result_id': 15806173, '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_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27335961, 'dashboard_result_id': 15806174, '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_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27336428, 'dashboard_result_id': 15806175, '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_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27337055, 'dashboard_result_id': 15806176, '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_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27337483, 'dashboard_result_id': 15806177, '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_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27338516, 'dashboard_result_id': 15806178, '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_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27338908, 'dashboard_result_id': 15806179, '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_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27339780, 'dashboard_result_id': 15806180, '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_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27339914, 'dashboard_result_id': 15806181, '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_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27346603, 'dashboard_result_id': 15806182, '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_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27346604, 'dashboard_result_id': 15806183, '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_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27346605, 'dashboard_result_id': 15806184, '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_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343961, 'dashboard_result_id': 15806185, '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_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343964, 'dashboard_result_id': 15806186, '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_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27346606, 'dashboard_result_id': 15806187, '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_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27346607, 'dashboard_result_id': 15806188, '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_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343995, 'dashboard_result_id': 15806189, '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_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27341302, 'dashboard_result_id': 15806191, '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_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343998, 'dashboard_result_id': 15806192, '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_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27344000, 'dashboard_result_id': 15806193, '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_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27341336, 'dashboard_result_id': 15806194, '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_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27344002, 'dashboard_result_id': 15806195, '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_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27340889, 'dashboard_result_id': 15806196, '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_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27342266, 'dashboard_result_id': 15806197, '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_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343199, 'dashboard_result_id': 15806198, '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_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27342690, 'dashboard_result_id': 15806199, '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_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27343836, 'dashboard_result_id': 15806200, '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_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27344539, 'dashboard_result_id': 15806201, '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_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27348083, 'dashboard_result_id': 15806202, '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_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27348699, 'dashboard_result_id': 15806203, '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_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27349371, 'dashboard_result_id': 15806204, '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_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27350226, 'dashboard_result_id': 15806205, '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_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27350819, 'dashboard_result_id': 15806206, '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_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27351603, 'dashboard_result_id': 15806207, '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_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27351983, 'dashboard_result_id': 15806208, '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_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27352576, 'dashboard_result_id': 15806209, '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_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27353601, 'dashboard_result_id': 15806210, '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_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27354235, 'dashboard_result_id': 15806211, '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_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27355020, 'dashboard_result_id': 15806212, '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_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27355733, 'dashboard_result_id': 15806213, '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_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27356323, 'dashboard_result_id': 15806214, '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_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2373927, 'mtr_portfolio_id': 27356877, 'dashboard_result_id': 15806215, '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_P27356877_30-09-2025_17_12_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, '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 = 27335682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27335682 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_30-09-2025_16_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335682 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_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}" where mtr_portfolio_id = 27335682 and dashboard_run_id = 2373927 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 = 27335814 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': 3792806, 'mtr_portfolio_id': 27335814, 'created_at': datetime.datetime(2025, 9, 30, 15, 51, 5), 'result': '0.12942168143363605', 'result_long': None, 'result_double': None}] Qualite : 0.12942168143363605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335814 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_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}" where mtr_portfolio_id = 27335814 and dashboard_run_id = 2373927 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`=27335814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806173, 0.12942168143363605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, '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 = 27335961 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': 3792807, 'mtr_portfolio_id': 27335961, 'created_at': datetime.datetime(2025, 9, 30, 15, 31, 5), 'result': '0.05682456087437678', 'result_long': None, 'result_double': None}] Qualite : 0.05682456087437678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335961 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_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}" where mtr_portfolio_id = 27335961 and dashboard_run_id = 2373927 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`=27335961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806174, 0.05682456087437678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, '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 = 27336428 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': 3792808, 'mtr_portfolio_id': 27336428, 'created_at': datetime.datetime(2025, 9, 30, 14, 56, 6), 'result': '0.03513037243292421', 'result_long': None, 'result_double': None}] Qualite : 0.03513037243292421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27336428 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_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}" where mtr_portfolio_id = 27336428 and dashboard_run_id = 2373927 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`=27336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806175, 0.03513037243292421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, '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 = 27337055 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': 3792809, 'mtr_portfolio_id': 27337055, 'created_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'result': '0.11175540744958323', 'result_long': None, 'result_double': None}] Qualite : 0.11175540744958323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337055 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_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}" where mtr_portfolio_id = 27337055 and dashboard_run_id = 2373927 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`=27337055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806176, 0.11175540744958323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, '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 = 27337483 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': 3792810, 'mtr_portfolio_id': 27337483, 'created_at': datetime.datetime(2025, 9, 30, 14, 31, 6), 'result': '0.13236143831560637', 'result_long': None, 'result_double': None}] Qualite : 0.13236143831560637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337483 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_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}" where mtr_portfolio_id = 27337483 and dashboard_run_id = 2373927 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`=27337483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806177, 0.13236143831560637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, '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 = 27338516 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': 3792811, 'mtr_portfolio_id': 27338516, 'created_at': datetime.datetime(2025, 9, 30, 13, 46, 5), 'result': '0.08477776823286796', 'result_long': None, 'result_double': None}] Qualite : 0.08477776823286796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338516 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_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}" where mtr_portfolio_id = 27338516 and dashboard_run_id = 2373927 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`=27338516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806178, 0.08477776823286796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, '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 = 27338908 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': 3792733, 'mtr_portfolio_id': 27338908, 'created_at': datetime.datetime(2025, 9, 30, 16, 48, 32), 'result': '0.018743900037648104', 'result_long': None, 'result_double': None}] Qualite : 0.018743900037648104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338908 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_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}" where mtr_portfolio_id = 27338908 and dashboard_run_id = 2373927 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`=27338908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806179, 0.018743900037648104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, '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 = 27339780 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': 3792882, 'mtr_portfolio_id': 27339780, 'created_at': datetime.datetime(2025, 9, 30, 6, 51, 25), 'result': '0.027011637195848395', 'result_long': None, 'result_double': None}] Qualite : 0.027011637195848395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339780 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_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}" where mtr_portfolio_id = 27339780 and dashboard_run_id = 2373927 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`=27339780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806180, 0.027011637195848395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, '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 = 27339914 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': 3792899, 'mtr_portfolio_id': 27339914, 'created_at': datetime.datetime(2025, 9, 30, 13, 26, 5), 'result': '0.03242617448801075', 'result_long': None, 'result_double': None}] Qualite : 0.03242617448801075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339914 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_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}" where mtr_portfolio_id = 27339914 and dashboard_run_id = 2373927 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`=27339914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806181, 0.03242617448801075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, '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 = 27346603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346603 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346603 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_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}" where mtr_portfolio_id = 27346603 and dashboard_run_id = 2373927 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 = 27346604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346604 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346604 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_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}" where mtr_portfolio_id = 27346604 and dashboard_run_id = 2373927 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 = 27346605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346605 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346605 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_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}" where mtr_portfolio_id = 27346605 and dashboard_run_id = 2373927 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 = 27343961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343961 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343961 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_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}" where mtr_portfolio_id = 27343961 and dashboard_run_id = 2373927 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 = 27343964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343964 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343964 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_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}" where mtr_portfolio_id = 27343964 and dashboard_run_id = 2373927 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 = 27346606 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346606 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346606 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_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}" where mtr_portfolio_id = 27346606 and dashboard_run_id = 2373927 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 = 27346607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346607 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346607 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_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}" where mtr_portfolio_id = 27346607 and dashboard_run_id = 2373927 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 = 27343995 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343995 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343995 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_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}" where mtr_portfolio_id = 27343995 and dashboard_run_id = 2373927 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 = 27341302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341302 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341302 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_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}" where mtr_portfolio_id = 27341302 and dashboard_run_id = 2373927 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 = 27343998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343998 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343998 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_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}" where mtr_portfolio_id = 27343998 and dashboard_run_id = 2373927 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 = 27344000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344000 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344000 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_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}" where mtr_portfolio_id = 27344000 and dashboard_run_id = 2373927 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 = 27341336 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341336 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_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}" where mtr_portfolio_id = 27341336 and dashboard_run_id = 2373927 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 = 27344002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344002 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344002 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_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}" where mtr_portfolio_id = 27344002 and dashboard_run_id = 2373927 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 = 27340889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27340889 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27340889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27340889 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_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}" where mtr_portfolio_id = 27340889 and dashboard_run_id = 2373927 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 = 27342266 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': 3793369, 'mtr_portfolio_id': 27342266, 'created_at': datetime.datetime(2025, 9, 30, 11, 36, 6), 'result': '0.032037475049841224', 'result_long': None, 'result_double': None}] Qualite : 0.032037475049841224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342266 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_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}" where mtr_portfolio_id = 27342266 and dashboard_run_id = 2373927 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`=27342266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806197, 0.032037475049841224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, '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 = 27343199 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': 3793694, 'mtr_portfolio_id': 27343199, 'created_at': datetime.datetime(2025, 9, 30, 11, 56, 5), 'result': '0.031162266974524126', 'result_long': None, 'result_double': None}] Qualite : 0.031162266974524126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343199 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_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}" where mtr_portfolio_id = 27343199 and dashboard_run_id = 2373927 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`=27343199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806198, 0.031162266974524126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, '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 = 27342690 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': 3793447, 'mtr_portfolio_id': 27342690, 'created_at': datetime.datetime(2025, 9, 30, 11, 51, 7), 'result': '0.08112103612526256', 'result_long': None, 'result_double': None}] Qualite : 0.08112103612526256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342690 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_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}" where mtr_portfolio_id = 27342690 and dashboard_run_id = 2373927 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`=27342690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806199, 0.08112103612526256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, '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 = 27343836 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': 3793803, 'mtr_portfolio_id': 27343836, 'created_at': datetime.datetime(2025, 9, 30, 12, 21, 4), 'result': '0.06402936172566988', 'result_long': None, 'result_double': None}] Qualite : 0.06402936172566988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343836 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_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}" where mtr_portfolio_id = 27343836 and dashboard_run_id = 2373927 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`=27343836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806200, 0.06402936172566988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, '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 = 27344539 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': 3793931, 'mtr_portfolio_id': 27344539, 'created_at': datetime.datetime(2025, 9, 30, 12, 39, 24), 'result': '0.06871672178279924', 'result_long': None, 'result_double': None}] Qualite : 0.06871672178279924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344539 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_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}" where mtr_portfolio_id = 27344539 and dashboard_run_id = 2373927 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`=27344539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806201, 0.06871672178279924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, '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 = 27348083 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': 3794214, 'mtr_portfolio_id': 27348083, 'created_at': datetime.datetime(2025, 9, 30, 14, 11, 6), 'result': '0.05605132116591798', 'result_long': None, 'result_double': None}] Qualite : 0.05605132116591798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348083 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_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}" where mtr_portfolio_id = 27348083 and dashboard_run_id = 2373927 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`=27348083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806202, 0.05605132116591798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, '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 = 27348699 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': 3794256, 'mtr_portfolio_id': 27348699, 'created_at': datetime.datetime(2025, 9, 30, 14, 21, 4), 'result': '0.04381904414100635', 'result_long': None, 'result_double': None}] Qualite : 0.04381904414100635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348699 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_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}" where mtr_portfolio_id = 27348699 and dashboard_run_id = 2373927 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`=27348699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806203, 0.04381904414100635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, '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 = 27349371 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': 3794299, 'mtr_portfolio_id': 27349371, 'created_at': datetime.datetime(2025, 9, 30, 14, 36, 5), 'result': '0.03183588031159431', 'result_long': None, 'result_double': None}] Qualite : 0.03183588031159431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27349371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27349371 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_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}" where mtr_portfolio_id = 27349371 and dashboard_run_id = 2373927 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`=27349371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806204, 0.03183588031159431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, '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 = 27350226 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': 3794387, 'mtr_portfolio_id': 27350226, 'created_at': datetime.datetime(2025, 9, 30, 14, 51, 5), 'result': '0.06751035463601696', 'result_long': None, 'result_double': None}] Qualite : 0.06751035463601696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350226 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_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}" where mtr_portfolio_id = 27350226 and dashboard_run_id = 2373927 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`=27350226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806205, 0.06751035463601696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, '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 = 27350819 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': 3794478, 'mtr_portfolio_id': 27350819, 'created_at': datetime.datetime(2025, 9, 30, 15, 6, 5), 'result': '0.06836435408594851', 'result_long': None, 'result_double': None}] Qualite : 0.06836435408594851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350819 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_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}" where mtr_portfolio_id = 27350819 and dashboard_run_id = 2373927 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`=27350819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806206, 0.06836435408594851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, '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 = 27351603 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': 3794570, 'mtr_portfolio_id': 27351603, 'created_at': datetime.datetime(2025, 9, 30, 15, 26, 4), 'result': '0.060426941062765714', 'result_long': None, 'result_double': None}] Qualite : 0.060426941062765714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351603 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_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}" where mtr_portfolio_id = 27351603 and dashboard_run_id = 2373927 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`=27351603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806207, 0.060426941062765714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, '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 = 27351983 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': 3794606, 'mtr_portfolio_id': 27351983, 'created_at': datetime.datetime(2025, 9, 30, 15, 36, 5), 'result': '0.03756418339818615', 'result_long': None, 'result_double': None}] Qualite : 0.03756418339818615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351983 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_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}" where mtr_portfolio_id = 27351983 and dashboard_run_id = 2373927 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`=27351983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806208, 0.03756418339818615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, '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 = 27352576 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': 3794664, 'mtr_portfolio_id': 27352576, 'created_at': datetime.datetime(2025, 9, 30, 15, 53, 25), 'result': '0.056827191337181726', 'result_long': None, 'result_double': None}] Qualite : 0.056827191337181726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27352576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27352576 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_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}" where mtr_portfolio_id = 27352576 and dashboard_run_id = 2373927 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`=27352576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806209, 0.056827191337181726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, '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 = 27353601 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': 3794801, 'mtr_portfolio_id': 27353601, 'created_at': datetime.datetime(2025, 9, 30, 16, 11, 6), 'result': '0.06005432698009597', 'result_long': None, 'result_double': None}] Qualite : 0.06005432698009597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27353601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27353601 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_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}" where mtr_portfolio_id = 27353601 and dashboard_run_id = 2373927 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`=27353601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806210, 0.06005432698009597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, '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 = 27354235 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': 3794868, 'mtr_portfolio_id': 27354235, 'created_at': datetime.datetime(2025, 9, 30, 16, 21, 7), 'result': '0.052175548624391554', 'result_long': None, 'result_double': None}] Qualite : 0.052175548624391554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27354235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27354235 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_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}" where mtr_portfolio_id = 27354235 and dashboard_run_id = 2373927 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`=27354235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806211, 0.052175548624391554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, '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 = 27355020 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': 3794930, 'mtr_portfolio_id': 27355020, 'created_at': datetime.datetime(2025, 9, 30, 16, 41, 7), 'result': '0.03992816911486089', 'result_long': None, 'result_double': None}] Qualite : 0.03992816911486089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355020 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_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}" where mtr_portfolio_id = 27355020 and dashboard_run_id = 2373929 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`=27355020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806212, 0.03992816911486089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, '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 = 27355733 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': 3795055, 'mtr_portfolio_id': 27355733, 'created_at': datetime.datetime(2025, 9, 30, 16, 51, 26), 'result': '0.03956578148142965', 'result_long': None, 'result_double': None}] Qualite : 0.03956578148142965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355733 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_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}" where mtr_portfolio_id = 27355733 and dashboard_run_id = 2373929 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`=27355733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806213, 0.03956578148142965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, '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 = 27356323 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': 3795120, 'mtr_portfolio_id': 27356323, 'created_at': datetime.datetime(2025, 9, 30, 17, 4, 59), 'result': '0.03351866036357782', 'result_long': None, 'result_double': None}] Qualite : 0.03351866036357782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356323 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_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}" where mtr_portfolio_id = 27356323 and dashboard_run_id = 2373929 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`=27356323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806214, 0.03351866036357782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, '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 = 27356877 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': 3795212, 'mtr_portfolio_id': 27356877, 'created_at': datetime.datetime(2025, 9, 30, 17, 15), 'result': '0.047616180191409584', 'result_long': None, 'result_double': None}] Qualite : 0.047616180191409584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356877 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_P27356877_30-09-2025_17_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}" where mtr_portfolio_id = 27356877 and dashboard_run_id = 2373929 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`=27356877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15806215, 0.047616180191409584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_15_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, '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 (27335682,27335814,27335961,27336428,27337055,27337483,27338516,27338908,27339780,27339914,27346603,27346604,27346605,27343961,27343964,27346606,27346607,27343995,27341302,27343998,27344000,27341336,27344002,27340889,27342266,27343199,27342690,27343836,27344539,27348083,27348699,27349371,27350226,27350819,27351603,27351983,27352576,27353601,27354235,27355020,27355733,27356323,27356877) result : ((1386830906,), (1386831058,), (1386831149,), (1386831559,), (1386831560,), (1386831612,), (1386831630,), (1386831953,), (1386834594,), (1386834611,), (1386834722,), (1386834745,), (1386834749,), (1386835358,), (1386835525,), (1386835526,), (1386835555,), (1386835577,), (1386835578,), (1386835580,), (1386835617,), (1386836087,), (1386836114,), (1386836146,), (1386836150,), (1386836173,), (1386836773,), (1386837033,), (1386837163,), (1386837614,), (1386837618,), (1386837640,), (1386838514,), (1386838480,), (1386838598,), (1386838757,), (1386838762,), (1386838817,), (1386838821,), (1386838873,), (1386839202,), (1386839206,), (1386839236,), (1386840158,), (1386840162,), (1386840829,), (1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,), (1386849361,), (1386849364,), (1386849384,), (1386849388,), (1386850015,), (1386850930,), (1386850944,), (1386851321,), (1386864607,), (1386864599,), (1386864603,), (1386865238,), (1386866133,), (1386866142,), (1386866326,), (1386866337,), (1386866524,), (1386866820,), (1386866863,), (1386866867,), (1386867039,), (1386867095,), (1386867134,), (1386867139,), (1386867143,), (1386867298,), (1386867302,), (1386867341,), (1386867364,), (1386867367,), (1386867371,), (1386867403,), (1386867505,), (1386867561,), (1386867683,), (1386867703,), (1386867914,), (1386868130,), (1386868156,), (1386868534,), (1386868833,), (1386868840,), (1386868973,), (1386868977,), (1386868979,), (1386868980,), (1386868983,), (1386869000,), (1386869003,), (1386869005,), (1386869175,), (1386869179,), (1386869337,), (1386869444,), (1386884239,), (1386884236,), (1386884259,), (1386884264,), (1386884266,), (1386884270,), (1386884273,), (1386884276,), (1386884285,), (1386884288,), (1386884495,), (1386884499,), (1386884505,), (1386884523,), (1386884526,), (1386884551,), (1386884603,), (1386884580,), (1386884592,), (1386884597,), (1386884600,), (1386884620,), (1386884624,), (1386884626,), (1386884627,), (1386884629,), (1386884647,), (1386884651,), (1386884743,), (1386884746,), (1386884748,), (1386884750,), (1386884753,), (1386884771,), (1386884775,), (1386884777,), (1386884780,), (1386884803,), (1386884807,), (1386884809,), (1386884811,), (1386884814,), (1386885703,), (1386885707,), (1386885710,), (1386885713,), (1386885733,), (1386885736,), (1386885739,), (1386885742,), (1386885746,), (1386885751,), (1386886102,), (1386886187,), (1386886190,), (1386886212,), (1386886215,), (1386886218,), (1386886222,), (1386886226,), (1386886537,), (1386886542,), (1386886548,), (1386886554,), (1386886557,), (1386886561,), (1386886565,), (1386886567,), (1386886570,), (1386886598,), (1386893352,), (1386893355,), (1386893357,), (1386893360,), (1386893363,), (1386893367,), (1386893383,), (1386893386,), (1386893400,), (1386893403,), (1386893407,), (1386893420,), (1386893423,), (1386893425,), (1386893429,), (1386893433,), (1386893453,), (1386893454,), (1386893456,), (1386893459,), (1386893462,), (1386893466,), (1386893471,), (1386893473,), (1386893475,), (1386893477,), (1386893482,), (1386893484,), (1386893487,), (1386893491,), (1386893493,), (1386893509,), (1386893513,), (1386893538,), (1386893542,), (1386893547,), (1386893550,), (1386893572,), (1386893575,), (1386893577,), (1386893580,), (1386893583,), (1386893598,), (1386893603,), (1386893607,), (1386893612,), (1386893616,), (1386893632,), (1386893637,), (1386893640,), (1386893671,), (1386893674,), (1386893678,), (1386893683,), (1386893687,), (1386893691,), (1386893704,), (1386893709,), (1386893715,), (1386893720,), (1386893726,), (1386893780,), (1386893782,), (1386893787,), (1386893789,), (1386893792,), (1386893795,), (1386893797,), (1386893799,), (1386893816,), (1386893819,), (1386891495,), (1386891526,), (1386891528,), (1386891530,), (1386891533,), (1386891536,), (1386891539,), (1386891570,), (1386891719,), (1386892445,), (1386892539,), (1386892559,), (1386892560,), (1386892561,), (1386892584,), (1386892588,), (1386892591,), (1386892623,), (1386892628,), (1386892631,), (1386892653,), (1386892657,), (1386892660,), (1386892661,), (1386892664,), (1386892668,), (1386892685,), (1386892689,), (1386892691,), (1386892713,), (1386892717,), (1386892720,), (1386892723,), (1386892727,), (1386892731,), (1386892747,), (1386892750,), (1386892751,), (1386892752,), (1386892755,), (1386892774,), (1386892776,), (1386892778,), (1386892783,), (1386892790,), (1386892792,), (1386892808,), (1386892811,), (1386892813,), (1386892815,), (1386892817,), (1386892820,), (1386892826,), (1386892828,), (1386892831,), (1386892833,), (1386892838,), (1386892842,), (1386892856,), (1386893766,), (1386893769,), (1386893773,), (1386893777,), (1386893802,), (1386893804,), (1386893807,), (1386893810,), (1386893813,), (1386893826,), (1386893829,), (1386893832,), (1386893836,), (1386893840,), (1386893841,), (1386893853,), (1386893856,), (1386893857,), (1386893859,), (1386893882,), (1386893885,), (1386893888,), (1386893892,), (1386893896,), (1386893899,), (1386893911,), (1386893915,), (1386893918,), (1386893922,), (1386893927,), (1386893953,), (1386893957,), (1386893959,), (1386893961,), (1386893965,), (1386893981,), (1386893983,), (1386893985,), (1386893988,), (1386893992,), (1386893996,), (1386894015,), (1386894018,), (1386894020,), (1386894022,), (1386894066,), (1386894079,), (1386894097,), (1386894113,), (1386894119,), (1386894134,), (1386894152,), (1386894160,), (1386894164,), (1386894167,), (1386894173,), (1386894178,), (1386894209,), (1386894211,), (1386894215,), (1386894217,), (1386894222,), (1386894230,), (1386894232,), (1386894236,), (1386894239,), (1386894246,), (1386894253,), (1386894836,), (1386894850,), (1386894854,), (1386894915,), (1386895141,), (1386895144,), (1386895146,), (1386895148,), (1386895156,), (1386895162,), (1386895299,), (1386895309,), (1386895342,), (1386895723,), (1386895735,), (1386895926,), (1386900156,), (1386900188,), (1386900194,), (1386900201,), (1386900206,), (1386900412,), (1386900446,), (1386900448,), (1386900505,), (1386900545,), (1386900548,), (1386900550,), (1386900552,), (1386900555,), (1386900716,), (1386900720,), (1386900723,), (1386900726,), (1386900730,), (1386900760,), (1386900826,), (1386900955,), (1386900985,), (1386900990,), (1386901085,), (1386901090,), (1386901093,), (1386901118,), (1386901123,), (1386901126,), (1386901152,), (1386901161,), (1386901166,), (1386901170,), (1386901188,), (1386901328,), (1386901335,), (1386901337,), (1386901338,), (1386901354,), (1386901357,), (1386901359,), (1386901362,), (1386901366,), (1386901484,), (1386901487,), (1386901532,), (1386901535,), (1386901538,), (1386902218,), (1386902222,), (1386902224,), (1386902226,), (1386902853,), (1386902907,), (1386902909,), (1386902911,), (1386902914,), (1386903185,), (1386903190,), (1386903209,), (1386903606,), (1386903609,), (1386903610,), (1386903648,), (1386903701,), (1386903705,), (1386903707,), (1386903711,), (1386903719,), (1386903723,), (1386903810,), (1386895910,), (1386895914,), (1386895922,), (1386895924,), (1386895925,), (1386896032,), (1386896038,), (1386896051,), (1386896054,), (1386896057,), (1386896131,), (1386896134,), (1386896138,), (1386896142,), (1386896147,), (1386896151,), (1386896618,), (1386896624,), (1386896637,), (1386896638,), (1386897098,), (1386897100,), (1386897103,), (1386897108,), (1386897576,), (1386897585,), (1386897599,), (1386897603,), (1386897608,), (1386897618,), (1386897874,), (1386897977,), (1386897990,), (1386898003,), (1386898005,), (1386898032,), (1386898038,), (1386898179,), (1386898183,), (1386898217,), (1386898233,), (1386898363,), (1386898368,), (1386898400,), (1386898410,), (1386898441,), (1386898481,), (1386898486,), (1386898489,), (1386898492,), (1386898534,), (1386898599,), (1386898601,), (1386898604,), (1386898606,), (1386898609,), (1386898641,), (1386898924,), (1386898950,), (1386898952,), (1386898956,), (1386899097,), (1386899210,), (1386899213,), (1386899223,), (1386899237,), (1386899240,), (1386899406,), (1386899410,), (1386899411,), (1386899417,), (1386899623,), (1386899835,), (1386899935,), (1386899942,), (1386899953,), (1386899978,), (1386900214,), (1386903798,), (1386903803,), (1386903807,), (1386903828,), (1386903832,), (1386903833,), (1386903835,), (1386903840,), (1386903925,), (1386903939,), (1386903942,), (1386903981,), (1386904001,), (1386904006,), (1386904033,), (1386904036,), (1386904173,), (1386904825,), (1386905049,), (1386905099,), (1386905224,), (1386905287,), (1386905328,), (1386905701,), (1386905704,), (1386905706,), (1386905709,), (1386905712,), (1386905900,), (1386905917,), (1386905934,), (1386905939,), (1386905944,), (1386905947,), (1386906360,), (1386906370,), (1386906479,), (1386906481,), (1386906520,), (1386906617,), (1386906644,), (1386906654,), (1386906658,), (1386906662,), (1386906665,), (1386906709,), (1386906713,), (1386906739,), (1386906744,), (1386906768,), (1386906771,), (1386906773,), (1386906971,), (1386906973,), (1386907263,), (1386907267,), (1386907270,), (1386907274,), (1386907284,), (1386907349,), (1386907352,), (1386907356,), (1386907360,), (1386908221,), (1386908290,), (1386908385,), (1386908388,), (1386908393,), (1386908444,), (1386908474,), (1386908484,), (1386908517,), (1386908556,), (1386887862,), (1386887869,), (1386887949,), (1386888130,), (1386888160,), (1386888165,), (1386888201,), (1386888232,), (1386888221,), (1386888225,), (1386888229,), (1386888256,), (1386888259,), (1386888262,), (1386888264,), (1386888265,), (1386888267,), (1386888284,), (1386888285,), (1386888305,), (1386888307,), (1386888310,), (1386888312,), (1386888314,), (1386888316,), (1386888328,), (1386888334,), (1386888338,), (1386888341,), (1386888343,), (1386888361,), (1386888365,), (1386888368,), (1386888372,), (1386888377,), (1386888380,), (1386888396,), (1386888399,), (1386888402,), (1386888405,), (1386888408,), (1386888424,), (1386888426,), (1386888430,), (1386888432,), (1386888433,), (1386888447,), (1386888451,), (1386888454,), (1386888457,), (1386888461,), (1386888464,), (1386888479,), (1386888481,), (1386888483,), (1386888486,), (1386888489,), (1386888491,), (1386888494,), (1386888497,), (1386888499,), (1386888501,), (1386888511,), (1386888514,), (1386888517,), (1386888521,), (1386888525,), (1386888544,), (1386888546,), (1386888548,), (1386888551,), (1386888556,), (1386888580,), (1386888584,), (1386888591,), (1386888594,), (1386888606,), (1386888612,), (1386888616,), (1386888620,), (1386888623,), (1386888626,), (1386888638,), (1386888641,), (1386888644,), (1386888648,), (1386888653,), (1386888656,), (1386888678,), (1386889632,), (1386889660,), (1386889691,), (1386889695,), (1386889699,), (1386889735,), (1386889739,), (1386889743,), (1386889744,), (1386889747,), (1386889772,), (1386889774,), (1386889777,), (1386889781,), (1386889785,), (1386889789,), (1386889815,), (1386889819,), (1386889825,), (1386889828,), (1386889846,), (1386889850,), (1386889854,), (1386889859,), (1386889864,), (1386889868,), (1386889888,), (1386889890,), (1386889891,), (1386889893,), (1386889895,), (1386889899,), (1386889918,), (1386889922,), (1386889925,), (1386889928,), (1386889956,), (1386889960,), (1386889963,), (1386889967,), (1386889971,), (1386889975,), (1386889992,), (1386890028,), (1386890032,), (1386890037,), (1386890039,), (1386890044,), (1386890070,), (1386890076,), (1386890080,), (1386890085,), (1386890118,), (1386890124,), (1386890130,), (1386890136,), (1386890140,), (1386890145,), (1386890169,), (1386891885,), (1386891919,), (1386891924,), (1386891926,), (1386891928,), (1386891931,), (1386891945,), (1386891947,), (1386892029,), (1386892034,), (1386892037,), (1386892065,), (1386892061,), (1386892128,), (1386892276,), (1386892279,), (1386892281,), (1386892285,), (1386892305,), (1386892307,), (1386892310,), (1386892313,), (1386892316,), (1386892330,), (1386892337,), (1386892338,), (1386892340,), (1386892342,), (1386892345,), (1386892356,), (1386892358,), (1386892449,), (1386892849,), (1386892851,), (1386892853,), (1386892871,), (1386892872,), (1386892874,), (1386892876,), (1386892882,), (1386892885,), (1386892907,), (1386892911,), (1386892914,), (1386892917,), (1386892936,), (1386892938,), (1386892940,), (1386892942,), (1386892945,), (1386892962,), (1386892965,), (1386892968,), (1386892971,), (1386892973,), (1386892988,), (1386892989,), (1386892990,), (1386892992,), (1386893010,), (1386893014,), (1386893017,), (1386893021,), (1386893025,), (1386893029,), (1386893045,), (1386893047,), (1386893049,), (1386893050,), (1386893053,), (1386893074,), (1386893079,), (1386893082,), (1386893086,), (1386893091,), (1386893111,), (1386893115,), (1386893119,), (1386893122,), (1386893138,), (1386893144,), (1386893146,), (1386893148,), (1386893151,), (1386893154,), (1386893167,), (1386893169,), (1386893172,), (1386893176,), (1386893178,), (1386893182,), (1386893198,), (1386893206,), (1386893211,), (1386893214,), (1386893217,), (1386893232,), (1386893236,), (1386893238,), (1386893241,), (1386893245,), (1386893248,), (1386893273,), (1386893276,), (1386893325,), (1386908539,), (1386908544,), (1386908549,), (1386908552,), (1386908553,), (1386909801,), (1386909836,), (1386909842,), (1386910212,), (1386910274,), (1386910277,), (1386910280,), (1386910282,), (1386910462,), (1386910465,), (1386910468,), (1386910469,), (1386910505,), (1386910507,), (1386910509,), (1386910511,), (1386910515,), (1386910522,), (1386910539,), (1386910545,), (1386910550,), (1386910946,), (1386910950,), (1386911121,), (1386911141,), (1386911143,), (1386911145,), (1386911147,), (1386911285,), (1386911288,), (1386911301,), (1386911306,), (1386911486,), (1386911566,), (1386911815,), (1386911888,), (1386911911,), (1386911915,), (1386912114,), (1386912117,), (1386912119,), (1386912122,), (1386912243,), (1386912306,), (1386912310,), (1386912346,), (1386912354,), (1386920013,), (1386886587,), (1386886592,), (1386886594,), (1386886596,), (1386886613,), (1386886616,), (1386886620,), (1386886626,), (1386886631,), (1386886635,), (1386886646,), (1386886650,), (1386886653,), (1386886657,), (1386886678,), (1386886682,), (1386886686,), (1386886690,), (1386886694,), (1386886696,), (1386886703,), (1386886705,), (1386886707,), (1386886710,), (1386886713,), (1386886734,), (1386886735,), (1386886738,), (1386886764,), (1386886769,), (1386886772,), (1386886775,), (1386886780,), (1386886793,), (1386886796,), (1386886798,), (1386886804,), (1386886815,), (1386886817,), (1386886819,), (1386886822,), (1386886838,), (1386886845,), (1386886848,), (1386886852,), (1386886855,), (1386886864,), (1386886867,), (1386886870,), (1386886872,), (1386886875,), (1386886877,), (1386886895,), (1386886899,), (1386886900,), (1386886901,), (1386886924,), (1386886927,), (1386886930,), (1386886933,), (1386886935,), (1386886938,), (1386886947,), (1386886950,), (1386886953,), (1386886957,), (1386886979,), (1386886982,), (1386886985,), (1386886986,), (1386886988,), (1386887024,), (1386887009,), (1386887013,), (1386887015,), (1386887018,), (1386887021,), (1386887037,), (1386887040,), (1386887042,), (1386887044,), (1386887047,), (1386887065,), (1386887070,), (1386887074,), (1386887076,), (1386887094,), (1386887095,), (1386887096,), (1386887098,), (1386887101,), (1386887104,), (1386887121,), (1386887124,), (1386887129,), (1386887134,), (1386887137,), (1386887140,), (1386887145,), (1386887147,), (1386887148,), (1386887150,), (1386887153,), (1386887158,), (1386887167,), (1386887170,), (1386887174,), (1386887175,), (1386887183,), (1386887187,), (1386887190,), (1386887192,), (1386887194,), (1386887197,), (1386887211,), (1386887213,), (1386887217,), (1386887220,), (1386887237,), (1386887241,), (1386887244,), (1386887248,), (1386887252,), (1386887256,), (1386887280,), (1386887284,), (1386887286,), (1386887287,), (1386887289,), (1386887305,), (1386887308,), (1386887310,), (1386887315,), (1386887319,), (1386887336,), (1386887338,), (1386887340,), (1386887342,), (1386887345,), (1386887348,), (1386887362,), (1386887371,), (1386887374,), (1386887377,), (1386887380,), (1386887397,), (1386887398,), (1386887400,), (1386887403,), (1386887406,), (1386887407,), (1386887423,), (1386887426,), (1386887429,), (1386887431,), (1386887433,), (1386887434,), (1386887456,), (1386887453,), (1386887455,), (1386887477,), (1386887481,), (1386887484,), (1386887488,), (1386887492,), (1386887495,), (1386887509,), (1386887514,), (1386887518,), (1386887522,), (1386887527,), (1386887531,), (1386887541,), (1386887543,), (1386887545,), (1386887548,), (1386887552,), (1386887564,), (1386887571,), (1386887573,), (1386887575,), (1386887578,), (1386887579,), (1386887592,), (1386887596,), (1386887598,), (1386887618,), (1386887623,), (1386887627,), (1386887629,), (1386887631,), (1386887633,), (1386887644,), (1386887648,), (1386887651,), (1386887654,), (1386887658,), (1386887662,), (1386887686,), (1386887687,), (1386887688,), (1386887713,), (1386887717,), (1386887721,), (1386887726,), (1386887749,), (1386887752,), (1386887755,), (1386887759,), (1386887775,), (1386887776,), (1386887871,), (1386888668,), (1386888671,), (1386888675,), (1386888695,), (1386888697,), (1386888698,), (1386888700,), (1386888703,), (1386888718,), (1386888723,), (1386888727,), (1386888761,), (1386888765,), (1386888767,), (1386888768,), (1386888772,), (1386888776,), (1386888789,), (1386888790,), (1386888793,), (1386888797,), (1386888800,), (1386888803,), (1386888808,), (1386888809,), (1386888810,), (1386888811,), (1386888815,), (1386888823,), (1386888828,), (1386888832,), (1386888834,), (1386888844,), (1386888846,), (1386888847,), (1386888849,), (1386888852,), (1386888869,), (1386888872,), (1386888875,), (1386888877,), (1386888889,), (1386888892,), (1386888895,), (1386888899,), (1386888903,), (1386888932,), (1386888936,), (1386888939,), (1386888944,), (1386888967,), (1386889014,), (1386889047,), (1386889051,), (1386889053,), (1386889056,), (1386889060,), (1386889076,), (1386889078,), (1386889081,), (1386889084,), (1386889087,), (1386889088,), (1386889109,), (1386889102,), (1386889105,), (1386889107,), (1386889134,), (1386889137,), (1386889141,), (1386889165,), (1386889168,), (1386889170,), (1386889172,), (1386889175,), (1386889177,), (1386889193,), (1386889196,), (1386889199,), (1386889203,), (1386889224,), (1386889228,), (1386889230,), (1386889233,), (1386889238,), (1386889266,), (1386889270,), (1386889273,), (1386889276,), (1386889280,), (1386889284,), (1386889307,), (1386889312,), (1386889315,), (1386889317,), (1386889320,), (1386889347,), (1386889352,), (1386889357,), (1386889362,), (1386889366,), (1386889449,), (1386889454,), (1386889484,), (1386889488,), (1386889491,), (1386889493,), (1386889497,), (1386889501,), (1386889528,), (1386889532,), (1386889535,), (1386889537,), (1386889539,), (1386889566,), (1386889569,), (1386889572,), (1386889600,), (1386889604,), (1386889606,), (1386889636,), (1386934434,), (1386934714,), (1386934768,), (1386934771,), (1386934773,), (1386934774,), (1386934777,), (1386934942,), (1386934972,), (1386934996,), (1386935001,), (1386935076,), (1386935080,), (1386935295,), (1386935299,), (1386935334,), (1386935337,), (1386935341,), (1386935344,), (1386935357,), (1386935361,), (1386935365,), (1386935369,), (1386935373,), (1386935420,), (1386935426,), (1386935429,), (1386935431,), (1386935434,), (1386935437,), (1386935461,), (1386935464,), (1386935646,), (1386935856,), (1386935871,), (1386935873,), (1386935876,), (1386935880,), (1386935890,), (1386935929,), (1386935933,), (1386935935,), (1386935937,), (1386935939,), (1386935940,), (1386937204,), (1386937530,), (1386937581,), (1386937830,), (1386937834,), (1386937842,), (1386937844,), (1386937814,), (1386937817,), (1386937819,), (1386937823,), (1386937868,), (1386937872,), (1386937875,), (1386937879,), (1386937896,), (1386937899,), (1386937901,), (1386937903,), (1386937906,), (1386937913,), (1386937947,), (1386937951,), (1386937953,), (1386937963,), (1386937970,), (1386938005,), (1386938008,), (1386938011,), (1386938373,), (1386938405,), (1386938427,), (1386938433,), (1386938437,), (1386938747,), (1386939573,), (1386939578,), (1386939590,), (1386939591,), (1386939593,), (1386939596,), (1386939974,), (1386939983,), (1386940099,), (1386940241,), (1386940364,), (1386940368,), (1386940373,), (1386940441,), (1386940444,), (1386940446,), (1386940478,), (1386940481,), (1386940482,), (1386940483,), (1386940504,), (1386940547,), (1386940550,), (1386940553,), (1386940556,), (1386940961,), (1386940992,), (1386941007,), (1386941010,), (1386941012,), (1386941197,), (1386941200,), (1386941203,), (1386941207,), (1386941215,), (1386941217,), (1386941235,), (1386941238,), (1386941239,), (1386941241,), (1386941245,), (1386941248,), (1386941260,), (1386941264,), (1386941614,), (1386941873,), (1386941847,), (1386941866,), (1386941870,), (1386941937,), (1386941950,), (1386941951,), (1386941952,), (1386941954,), (1386942276,), (1386942279,), (1386942282,), (1386942370,), (1386942477,), (1386942480,), (1386942483,), (1386942487,), (1386942511,), (1386942825,), (1386942827,), (1386942829,), (1386942831,), (1386942933,), (1386943012,), (1386943054,), (1386943441,), (1386943445,), (1386943447,), (1386943482,), (1386943484,), (1386943486,), (1386943489,), (1386943512,), (1386943516,), (1386943517,), (1386943519,), (1386943521,), (1386943523,), (1386943909,), (1386943919,), (1386943921,), (1386943923,), (1386943925,), (1386943939,), (1386943943,), (1386943946,), (1386943949,), (1386943951,), (1386943953,), (1386943964,), (1386943965,), (1386943966,), (1386944327,), (1386944330,), (1386944380,), (1386944408,), (1386944411,), (1386944900,), (1386944904,), (1386944921,), (1386945254,), (1386945291,), (1386945293,), (1386945295,), (1386945297,), (1386945347,), (1386945351,), (1386945353,), (1386945356,), (1386945359,), (1386945368,), (1386945404,), (1386945412,), (1386945415,), (1386945418,), (1386945422,), (1386945780,), (1386945782,), (1386945783,), (1386945784,), (1386945807,), (1386945810,), (1386945812,), (1386945814,), (1386945829,), (1386945831,), (1386945832,), (1386945834,), (1386945838,), (1386945841,), (1386945877,), (1386945880,), (1386945882,), (1386945904,), (1386945907,), (1386945910,), (1386946010,), (1386946588,), (1386946621,), (1386946625,), (1386946627,), (1386946771,), (1386946864,), (1386946953,), (1386946954,), (1386946977,), (1386946979,), (1386947350,), (1386947708,), (1386947636,), (1386947678,), (1386947681,), (1386947748,), (1386947754,), (1386947755,), (1386947756,), (1386947758,), (1386948084,), (1386948087,), (1386948089,), (1386948180,), (1386948212,), (1386948291,), (1386948329,), (1386948330,), (1386948355,), (1386948360,), (1386948362,), (1386948364,), (1386948366,), (1386948692,), (1386948695,), (1386948698,), (1386948826,), (1386948902,), (1386948913,), (1386948934,), (1386948937,), (1386948939,), (1386948941,), (1386948951,), (1386948954,), (1386948958,), (1386948968,), (1386948972,), (1386949023,), (1386949026,), (1386949330,), (1386949332,), (1386949497,), (1386949502,), (1386949504,), (1386949525,), (1386949527,), (1386949539,), (1386949586,), (1386949597,), (1386949608,), (1386949653,), (1386949669,), (1386949671,), (1386949673,), (1386950288,), (1386950292,), (1386950295,), (1386950577,), (1386950584,), (1386950586,), (1386950700,), (1386950702,), (1386950704,), (1386951421,), (1386952364,), (1386952409,), (1386952411,), (1386950694,), (1386950697,), (1386950699,), (1386952421,), (1386952423,), (1386953378,), (1386953396,), (1386953407,), (1386953413,), (1386953418,), (1386953479,), (1386953483,), (1386953485,), (1386953487,), (1386953489,), (1386953513,), (1386953518,), (1386953521,), (1386953522,), (1386953602,), (1386953608,), (1386953611,), (1386953614,), (1386953617,), (1386953650,), (1386953655,), (1386953670,), (1386953673,), (1386953676,), (1386953710,), (1386953714,), (1386953718,), (1386953720,), (1386953744,), (1386953747,), (1386953750,), (1386953824,), (1386953828,), (1386953830,), (1386954463,), (1386954647,), (1386954648,), (1386954769,), (1386955025,), (1386955039,), (1386955100,), (1386955104,), (1386955106,), (1386955133,), (1386955136,), (1386955571,), (1386955769,), (1386955759,), (1386955762,), (1386955765,), (1386955791,), (1386955802,), (1386955813,), (1386955822,), (1386955825,), (1386955835,), (1386955839,), (1386955843,), (1386955845,), (1386955872,), (1386955876,), (1386955880,), (1386955900,), (1386955904,), (1386955908,), (1386955926,), (1386955930,), (1386955933,), (1386956050,), (1386956059,), (1386956122,), (1386956674,), (1386956678,), (1386956820,), (1386956826,), (1386956829,), (1386956832,), (1386957209,), (1386957230,), (1386957232,), (1386957297,), (1386957477,), (1386957950,), (1386958259,), (1386958390,), (1386958393,), (1386958394,), (1386958396,), (1386958399,), (1386958913,), (1386958916,), (1386958919,), (1386958922,), (1386959242,), (1386959246,), (1386959248,), (1386959251,), (1386959253,), (1386959255,), (1386959261,), (1386959281,), (1386959282,), (1386959307,), (1386959297,), (1386959301,), (1386959303,), (1386959476,), (1386959493,), (1386959496,), (1386959560,), (1386959596,), (1386959638,), (1386959641,), (1386959644,), (1386959655,), (1386959694,), (1386959697,), (1386959700,), (1386959703,), (1386959706,), (1386960601,), (1386960605,), (1386960645,), (1386960664,), (1386961011,), (1386961015,), (1386961201,), (1386961205,), (1386961207,), (1386961441,), (1386961445,), (1386961448,), (1386961451,), (1386961885,), (1386961899,), (1386961902,), (1386961904,), (1386962002,), (1386962075,), (1386962078,), (1386962080,), (1386962110,), (1386962113,), (1386962115,), (1386962773,), (1386962802,), (1386962808,), (1386962810,), (1386962912,), (1386962903,), (1386962906,), (1386962908,), (1386962967,), (1386962982,), (1386963142,), (1386963146,), (1386963196,), (1386963323,), (1386963328,), (1386963377,), (1386963461,), (1386963468,), (1386963479,), (1386963520,), (1386963521,), (1386963522,), (1386963524,), (1386963881,), (1386963886,), (1386963889,), (1386963893,), (1386963896,), (1386964068,), (1386964071,), (1386964073,), (1386964075,), (1386964094,), (1386964097,), (1386964099,), (1386964103,), (1386964130,), (1386964134,), (1386964137,), (1386964140,), (1386964144,), (1386964659,), (1386964682,), (1386964701,), (1386964703,), (1386964874,), (1386964925,), (1386964941,), (1386964950,), (1386964990,), (1386965002,), (1386965058,), (1386965061,), (1386965785,), (1386965791,), (1386965797,), (1386965802,), (1386965883,), (1386965888,), (1386965891,), (1386965902,), (1386965920,), (1386965926,), (1386965931,), (1386965964,), (1386965973,), (1386966900,), (1386965867,), (1386965873,), (1386965877,), (1386966845,), (1386966894,), (1386966897,), (1386967080,), (1386967268,), (1386967270,), (1386967273,), (1386967548,), (1386967933,), (1386967937,), (1386967941,), (1386968009,), (1386968014,), (1386968017,), (1386968018,), (1386968021,), (1386968045,), (1386968049,), (1386968647,), (1386968656,), (1386968804,), (1386968812,), (1386968844,), (1386968874,), (1386968904,), (1386968908,), (1386968911,), (1386968913,), (1386968917,), (1386968935,), (1386968937,), (1386968939,), (1386968942,), (1386969529,), (1386969532,), (1386969534,), (1386969759,), (1386969812,), (1386969844,), (1386969849,), (1386970340,), (1386970352,), (1386970354,), (1386970358,), (1386970362,), (1386970379,), (1386970451,), (1386970459,), (1386970470,), (1386970489,), (1386970491,), (1386970492,), (1386970494,), (1386970496,), (1386970512,), (1386970517,), (1386970519,), (1386970522,), (1386970526,), (1386971320,), (1386971192,), (1386971316,), (1386971709,), (1386971712,), (1386971829,), (1386971832,), (1386971923,), (1386971926,), (1386972462,), (1386972621,), (1386972645,), (1386972672,), (1386972677,), (1386972856,), (1386972857,), (1386972866,), (1386972935,), (1386972957,), (1386972960,), (1386972966,), (1386972967,), (1386972968,), (1386972996,), (1386973094,), (1386973107,), (1386973113,), (1386973132,), (1386973149,), (1386973157,), (1386973158,), (1386973160,), (1386973161,), (1386973163,), (1386973165,), (1386973167,), (1386973168,), (1386973172,), (1386973173,), (1386973185,), (1386973189,), (1386973191,), (1386973193,), (1386973543,), (1386973546,), (1386973648,), (1386973704,), (1386973709,), (1386973724,), (1386973728,), (1386973735,), (1386973755,), (1386973900,), (1386973903,), (1386973906,), (1386973966,), (1386973983,), (1386974016,), (1386974037,), (1386974077,), (1386974081,), (1386974084,), (1386974086,), (1386974089,), (1386974091,), (1386974203,), (1386974206,), (1386974209,), (1386976025,), (1386976009,), (1386976019,), (1386976339,), (1386976343,), (1386976386,), (1386976388,), (1386976432,), (1386976435,), (1386976479,), (1386976481,), (1386976502,), (1386976506,), (1386976509,), (1386977428,), (1386977344,), (1386977370,), (1386977410,), (1386977412,), (1386977424,), (1386977590,), (1386977593,), (1386977604,), (1386977868,), (1386977966,), (1386978090,), (1386978095,), (1386978104,), (1386978125,), (1386978128,), (1386978150,), (1386978152,), (1386978154,), (1386978525,), (1386978528,), (1386978532,), (1386978646,), (1386978711,), (1386978743,), (1386978754,), (1386978758,), (1386978923,), (1386978953,), (1386978957,), (1386978959,), (1386979087,), (1386979225,), (1386979226,), (1386979227,), (1386979229,), (1386979280,), (1386979289,), (1386979293,), (1386979297,), (1386979300,), (1386979302,), (1386979367,), (1386979369,), (1386979371,), (1386979373,), (1386979375,), (1386979580,), (1386979592,), (1386979598,), (1386979794,), (1386979798,), (1386979800,), (1386979803,), (1386979806,), (1386979845,), (1386980044,), (1386980607,), (1386980723,), (1386980728,), (1386980755,), (1386982809,), (1386982878,), (1386982917,), (1386982918,), (1386982919,), (1386982939,), (1386982963,), (1386983256,), (1386983257,), (1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30092025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27356877]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] map_info['map_portfolio_photo'] : {27356877: [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992, 1386984889, 1386984883, 1386984866, 1386984837, 1386984835, 1386984731, 1386984730, 1386984461, 1386984456, 1386984400, 1386984398, 1386984393, 1386984166, 1386984114, 1386984087, 1386983890, 1386983878, 1386983875, 1386983867, 1386983835, 1386983822, 1386983690, 1386983688, 1386983686, 1386983681, 1386983622, 1386983597, 1386983593, 1386983589, 1386983516, 1386983511, 1386983506, 1386983500, 1386983499, 1386983415, 1386983403, 1386983401, 1386983397, 1386983393, 1386983254, 1386983011, 1386982803, 1386982578, 1386981933, 1386981856, 1386981628]} final : True mtd_id 4302 list_pids : [1386985100, 1386985098, 1386985097, 1386985095, 1386985072, 1386985052, 1386985040, 1386985012, 1386984992] Looping around the photos to save general results len do output : 1 /27356877Didn'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, '3795212') ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212') ('4302', None, None, None, None, None, None, None, '3795212') ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27356877', 'None', None, None, None, None, '3795212'), ('4302', '27356877', '1386985100', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985098', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985097', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985095', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985072', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985052', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985040', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386985012', None, None, None, None, None, '3795212'), ('4302', '27356877', '1386984992', None, None, None, None, None, '3795212')] time used for this insertion : 0.037091970443725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.734126329421997 time spend to save output : 0.037352561950683594 total time spend for step 5 : 8.77147889137268 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 (3795212) 2.08user 2.33system 0:19.39elapsed 22%CPU (0avgtext+0avgdata 158236maxresident)k 352inputs+10040outputs (9major+63961minor)pagefaults 0swaps