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 : 1649047 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 (3900520) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3900520) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630015 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3900520'] with mtr_portfolio_ids : ['27630015'] and first list_photo_ids : [] new path : /proc/1649047/ Name: python3 Umask: 0002 State: R (running) Tgid: 1649047 Ngid: 0 Pid: 1649047 PPid: 1649046 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1649047 NSpid: 1649047 NSpgid: 1648478 NSsid: 1648478 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98144 kB VmRSS: 98144 kB RssAnon: 59840 kB RssFile: 38304 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 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: 47 nonvoluntary_ctxt_switches: 82 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1649047', 'Ngid': '0', 'Pid': '1649047', 'PPid': '1649046', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1649047', 'NSpid': '1649047', 'NSpgid': '1648478', 'NSsid': '1648478', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98144 kB', 'VmRSS': '98144 kB', 'RssAnon': '59840 kB', 'RssFile': '38304 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 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': '47', 'nonvoluntary_ctxt_switches': '82'} ('datou_batch_current', '1649047', '1106856', '0', '1106856', '865608', '98144', b'', 'marlene', '3900520') 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 (27630015) 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 (3900520 ) ) 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 (27630015) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1388322495, 'portfolio_id': 27630015}, {'photo_id': 1388322484, 'portfolio_id': 27630015}, {'photo_id': 1388322482, 'portfolio_id': 27630015}, {'photo_id': 1388322480, 'portfolio_id': 27630015}, {'photo_id': 1388322478, 'portfolio_id': 27630015}, {'photo_id': 1388322475, 'portfolio_id': 27630015}, {'photo_id': 1388322465, 'portfolio_id': 27630015}, {'photo_id': 1388322462, 'portfolio_id': 27630015}, {'photo_id': 1388322460, 'portfolio_id': 27630015}, {'photo_id': 1388322458, 'portfolio_id': 27630015}, {'photo_id': 1388322456, 'portfolio_id': 27630015}, {'photo_id': 1388322402, 'portfolio_id': 27630015}, {'photo_id': 1388322328, 'portfolio_id': 27630015}, {'photo_id': 1388322238, 'portfolio_id': 27630015}, {'photo_id': 1388322236, 'portfolio_id': 27630015}, {'photo_id': 1388322231, 'portfolio_id': 27630015}, {'photo_id': 1388322044, 'portfolio_id': 27630015}, {'photo_id': 1388322041, 'portfolio_id': 27630015}, {'photo_id': 1388322024, 'portfolio_id': 27630015}, {'photo_id': 1388322023, 'portfolio_id': 27630015}, {'photo_id': 1388321999, 'portfolio_id': 27630015}, {'photo_id': 1388321998, 'portfolio_id': 27630015}, {'photo_id': 1388321995, 'portfolio_id': 27630015}, {'photo_id': 1388321994, 'portfolio_id': 27630015}, {'photo_id': 1388321989, 'portfolio_id': 27630015}, {'photo_id': 1388321988, 'portfolio_id': 27630015}, {'photo_id': 1388321977, 'portfolio_id': 27630015}, {'photo_id': 1388321976, 'portfolio_id': 27630015}, {'photo_id': 1388321969, 'portfolio_id': 27630015}, {'photo_id': 1388321968, 'portfolio_id': 27630015}, {'photo_id': 1388321077, 'portfolio_id': 27630015}, {'photo_id': 1388321076, 'portfolio_id': 27630015}, {'photo_id': 1388321072, 'portfolio_id': 27630015}] map_portfolio_id_photo_id: {27630015: [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456, 1388322402, 1388322328, 1388322238, 1388322236, 1388322231, 1388322044, 1388322041, 1388322024, 1388322023, 1388321999, 1388321998, 1388321995, 1388321994, 1388321989, 1388321988, 1388321977, 1388321976, 1388321969, 1388321968, 1388321077, 1388321076, 1388321072]} ##### 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.052307844161987305 #### 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 Thu Oct 9 08:07:27 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 (27630015) 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 : 27630015 get user id for portfolio 27630015 get sub ptf for main ptf 27630015, type 3726 and hashtags ['flou', 'cartonnette', 'Carton_brun', 'environnement', 'autre_refus', 'plastique', 'kraft', 'mal_croppe', 'metal', 'Teint_Dans_La_Masse', 'papier', 'Carton_gris'] 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`=27630015 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','environnement','autre_refus','plastique','kraft','mal_croppe','metal','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=27630015 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','environnement','autre_refus','plastique','kraft','mal_croppe','metal','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 27630015, 'sub_port_id': 27630051, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641590, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'plastique': {'main_port_id': 27630015, 'sub_port_id': 27630052, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641591, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'mal_croppe': {'main_port_id': 27630015, 'sub_port_id': 27630053, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641592, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'cartonnette': {'main_port_id': 27630015, 'sub_port_id': 27630054, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641593, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'Carton_gris': {'main_port_id': 27630015, 'sub_port_id': 27630055, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641594, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'autre_refus': {'main_port_id': 27630015, 'sub_port_id': 27630056, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641595, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'papier': {'main_port_id': 27630015, 'sub_port_id': 27630057, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641596, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'flou': {'main_port_id': 27630015, 'sub_port_id': 27630058, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641597, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'metal': {'main_port_id': 27630015, 'sub_port_id': 27630059, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641598, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 27630015, 'sub_port_id': 27630060, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641599, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'kraft': {'main_port_id': 27630015, 'sub_port_id': 27630061, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641600, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}, 'Carton_brun': {'main_port_id': 27630015, 'sub_port_id': 27630062, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641601, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630051 , 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=27630015 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 (27630051) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630052 , 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=27630015 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 (27630052) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630053 , 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=27630015 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 (27630053) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630054 , 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=27630015 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 (27630054) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630055 , 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=27630015 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 (27630055) result : ((1388323514,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630056 , 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=27630015 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 (27630056) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630057 , 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=27630015 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 (27630057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630058 , 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=27630015 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 (27630058) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630059 , 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=27630015 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 (27630059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630060 , 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=27630015 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 (27630060) result : ((1388323510,), (1388323511,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630061 , 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=27630015 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 (27630061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27630062 , 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=27630015 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 (27630062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27630015) result : ((1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27630015 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','environnement','autre_refus','plastique','kraft','mal_croppe','metal','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=27630015 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','environnement','autre_refus','plastique','kraft','mal_croppe','metal','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 27630015, 'sub_port_id': 27630064, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641602, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'plastique': {'main_port_id': 27630015, 'sub_port_id': 27630065, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641603, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'mal_croppe': {'main_port_id': 27630015, 'sub_port_id': 27630066, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641604, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'cartonnette': {'main_port_id': 27630015, 'sub_port_id': 27630067, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641605, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'Carton_gris': {'main_port_id': 27630015, 'sub_port_id': 27630068, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641606, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'autre_refus': {'main_port_id': 27630015, 'sub_port_id': 27630069, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641607, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'papier': {'main_port_id': 27630015, 'sub_port_id': 27630070, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641608, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'flou': {'main_port_id': 27630015, 'sub_port_id': 27630071, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641609, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'metal': {'main_port_id': 27630015, 'sub_port_id': 27630072, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641610, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 27630015, 'sub_port_id': 27630073, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641611, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'kraft': {'main_port_id': 27630015, 'sub_port_id': 27630074, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641612, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}, 'Carton_brun': {'main_port_id': 27630015, 'sub_port_id': 27630075, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18641613, 'last_updated_at': datetime.datetime(2025, 10, 9, 8, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 8, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 8, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630064,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630051 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630065,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630052 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630067,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27630075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27630062 lien utilise dans velours : https://marlene.fotonower.com/velours/27630064,27630065,27630066,27630067,27630068,27630069,27630070,27630071,27630072,27630073,27630074,27630075?tags=environnement,plastique,mal_croppe,cartonnette,Carton_gris,autre_refus,papier,flou,metal,Teint_Dans_La_Masse,kraft,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27630015]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] map_info['map_portfolio_photo'] : {27630015: [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456, 1388322402, 1388322328, 1388322238, 1388322236, 1388322231, 1388322044, 1388322041, 1388322024, 1388322023, 1388321999, 1388321998, 1388321995, 1388321994, 1388321989, 1388321988, 1388321977, 1388321976, 1388321969, 1388321968, 1388321077, 1388321076, 1388321072]} final : False mtd_id 4302 list_pids : [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] Looping around the photos to save general results len do output : 1 /27630015. 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, '3900520') ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27630015', "{'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062}", None, None, None, None, '3900520'), ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520')] time used for this insertion : 0.03569602966308594 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.064114570617676 time spend to save output : 0.03597116470336914 total time spend for step 1 : 5.100085735321045 step2:final Thu Oct 9 08:07:32 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 (27630015) 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 27630015 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1388321077,1388322402,1388321076,1388322328,1388321072,1388322024,1388322023,1388321998,1388321999,1388321994,1388321995,1388321988,1388321989,1388321976,1388321977,1388321968,1388321969,1388322238,1388322236,1388322231,1388322044,1388322041,1388322465,1388322462,1388322460,1388322458,1388322456,1388322495,1388322484,1388322482,1388322480,1388322478,1388322475); 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([27630015]) Inside saveOutput : final : False verbose : True original output for save of step final : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} new output for save of step final : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] map_info['map_portfolio_photo'] : {27630015: [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456, 1388322402, 1388322328, 1388322238, 1388322236, 1388322231, 1388322044, 1388322041, 1388322024, 1388322023, 1388321999, 1388321998, 1388321995, 1388321994, 1388321989, 1388321988, 1388321977, 1388321976, 1388321969, 1388321968, 1388321077, 1388321076, 1388321072]} final : False mtd_id 4302 list_pids : [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] Looping around the photos to save general results len do output : 11 /1388322495.Didn't retrieve data . /1388322484.Didn't retrieve data . /1388322482.Didn't retrieve data . /1388322480.Didn't retrieve data . /1388322478.Didn't retrieve data . /1388322475.Didn't retrieve data . /1388322465.Didn't retrieve data . /1388322462.Didn't retrieve data . /1388322460.Didn't retrieve data . /1388322458.Didn't retrieve data . /1388322456.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, '3900520') ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27630015', '1388322495', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322484', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322482', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322480', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322478', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322475', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322465', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322462', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322460', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322458', '0.037896567306044224', None, None, None, None, '3900520'), ('4302', '27630015', '1388322456', '0.037896567306044224', None, None, None, None, '3900520')] time used for this insertion : 0.04414558410644531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23431110382080078 time spend to save output : 0.044660091400146484 total time spend for step 2 : 0.27897119522094727 step3:velours_tree Thu Oct 9 08:07:33 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 : {27630015: [{'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062}]} input_args_next_step : {27630015: ()} output_args : {27630015: [{'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062}]} args : 27630015 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 : ({'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27630015) 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([27630015]) 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.2833068370819092 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.2833554744720459 step4:send_mail_cod Thu Oct 9 08:07:33 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 : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} input_args_next_step : {1388322495: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322495 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322484 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322482 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322480 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322478 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322475 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322465 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322462 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322460 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322458 depend.output_id : 0 input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ()} output_args : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',)} args : 1388322456 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 : {27630015: [{'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062}]} input_args_next_step : {1388322495: ('0.037896567306044224',), 1388322484: ('0.037896567306044224',), 1388322482: ('0.037896567306044224',), 1388322480: ('0.037896567306044224',), 1388322478: ('0.037896567306044224',), 1388322475: ('0.037896567306044224',), 1388322465: ('0.037896567306044224',), 1388322462: ('0.037896567306044224',), 1388322460: ('0.037896567306044224',), 1388322458: ('0.037896567306044224',), 1388322456: ('0.037896567306044224',), 27630015: ()} output_args : {27630015: [{'environnement': 27630051, 'plastique': 27630052, 'mal_croppe': 27630053, 'cartonnette': 27630054, 'Carton_gris': 27630055, 'autre_refus': 27630056, 'papier': 27630057, 'flou': 27630058, 'metal': 27630059, 'Teint_Dans_La_Masse': 27630060, 'kraft': 27630061, 'Carton_brun': 27630062}]} args : 27630015 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.037896567306044224',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27630015) 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 (1388322495,1388322484,1388322482,1388322480,1388322478,1388322475,1388322465,1388322462,1388322460,1388322458,1388322456) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1388322456 begin to download photo : 1388322462 begin to download photo : 1388322478 begin to download photo : 1388322484 download finish for photo 1388322478 begin to download photo : 1388322480 download finish for photo 1388322462 begin to download photo : 1388322465 download finish for photo 1388322484 begin to download photo : 1388322495 download finish for photo 1388322456 begin to download photo : 1388322458 download finish for photo 1388322495 download finish for photo 1388322465 begin to download photo : 1388322475 download finish for photo 1388322480 begin to download photo : 1388322482 download finish for photo 1388322458 begin to download photo : 1388322460 download finish for photo 1388322482 download finish for photo 1388322475 download finish for photo 1388322460 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette276300521759990054/ imagette276300531759990054/ imagette276300541759990054/ imagette276300561759990054/ imagette276300581759990054/ imagette276300591759990054/ imagette276300611759990054/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P27630015_09-10-2025_08_07_34.pdf 27630052 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=27630052 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300521759990054 27630053 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=27630053 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300531759990054 27630054 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=27630054 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300541759990054 27630056 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=27630056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300561759990054 27630058 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=27630058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300581759990054 27630059 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=27630059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300591759990054 27630061 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=27630061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300611759990054 27630055 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=27630055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388323514: '1759990023_987345_1388321076_f0b3bafa6d03ae0cc5da8dd0f388dc35_rle_crop_3989971961_0.png'} change filename to text .imagette276300551759990054/ imagette276300551759990054/1759990023_987345_1388321076_f0b3bafa6d03ae0cc5da8dd0f388dc35_rle_crop_3989971961_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/e2f283eff42b2fb1b65aa6991c10c8c0_79933487.png imagette276300551759990054 27630060 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=27630060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388323510: '1759990023_987345_1388321076_f0b3bafa6d03ae0cc5da8dd0f388dc35_rle_crop_3989971965_0.png', 1388323511: '1759990023_987345_1388321072_a49d069d261689bb6eeb167dd17575b1_rle_crop_3989971981_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/7f0fd25d437b845fcc1540a04175246a_2239986.png change filename to text .imagette276300601759990054/ imagette276300601759990054/1759990023_987345_1388321076_f0b3bafa6d03ae0cc5da8dd0f388dc35_rle_crop_3989971965_0.png.png imagette276300601759990054/1759990023_987345_1388321072_a49d069d261689bb6eeb167dd17575b1_rle_crop_3989971981_0.png.png imagette276300621759990054/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/692b2a1ac324586a05e16387feaa3b12_83707806.png imagette276300601759990054 27630062 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=27630062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276300621759990054 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27630015 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27630064,27630065,27630066,27630067,27630068,27630069,27630070,27630071,27630072,27630073,27630074,27630075?tags=environnement,plastique,mal_croppe,cartonnette,Carton_gris,autre_refus,papier,flou,metal,Teint_Dans_La_Masse,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1388322495] : ('0.037896567306044224',) no score found for photo 1388322495 We are sending mail with results at report@fotonower.com args[1388322484] : ('0.037896567306044224',) no score found for photo 1388322484 We are sending mail with results at report@fotonower.com args[1388322482] : ('0.037896567306044224',) no score found for photo 1388322482 We are sending mail with results at report@fotonower.com args[1388322480] : ('0.037896567306044224',) no score found for photo 1388322480 We are sending mail with results at report@fotonower.com args[1388322478] : ('0.037896567306044224',) no score found for photo 1388322478 We are sending mail with results at report@fotonower.com args[1388322475] : ('0.037896567306044224',) no score found for photo 1388322475 We are sending mail with results at report@fotonower.com args[1388322465] : ('0.037896567306044224',) no score found for photo 1388322465 We are sending mail with results at report@fotonower.com args[1388322462] : ('0.037896567306044224',) no score found for photo 1388322462 We are sending mail with results at report@fotonower.com args[1388322460] : ('0.037896567306044224',) no score found for photo 1388322460 We are sending mail with results at report@fotonower.com args[1388322458] : ('0.037896567306044224',) no score found for photo 1388322458 We are sending mail with results at report@fotonower.com args[1388322456] : ('0.037896567306044224',) no score found for photo 1388322456 We are sending mail with results at report@fotonower.com refus_total : 0.037896567306044224 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=27630015 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_P27630015_09-10-2025_08_07_34.pdf results_Auto_P27630015_09-10-2025_08_07_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_07_34.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','27630015','results_Auto_P27630015_09-10-2025_08_07_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_07_34.pdf','pdf','','0.12','0.037896567306044224') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27630015]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] map_info['map_portfolio_photo'] : {27630015: [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456, 1388322402, 1388322328, 1388322238, 1388322236, 1388322231, 1388322044, 1388322041, 1388322024, 1388322023, 1388321999, 1388321998, 1388321995, 1388321994, 1388321989, 1388321988, 1388321977, 1388321976, 1388321969, 1388321968, 1388321077, 1388321076, 1388321072]} final : False mtd_id 4302 list_pids : [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] 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, '3900520') ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27630015', '1388322495', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520')] time used for this insertion : 0.03608202934265137 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4572319984436035 time spend to save output : 0.036333322525024414 total time spend for step 4 : 2.493565320968628 step5:split_time_score Thu Oct 9 08:07:36 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 : ['27630015'] 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 : [('27630015',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27630015) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1388322484: {'path': 'temp/1759990053_1649047_1388322484_eaf0f9a1e255c225ca238cc499f4849f.jpg', 'extension': 'jpg'}, 1388322495: {'path': 'temp/1759990053_1649047_1388322495_7be5d04bf082c80e5c4f438ace6e04e4.jpg', 'extension': 'jpg'}, 1388322478: {'path': 'temp/1759990053_1649047_1388322478_af6dabf34fd3afba2ae13e005cf51428.jpg', 'extension': 'jpg'}, 1388322480: {'path': 'temp/1759990053_1649047_1388322480_6c9ba9def82c0bc3189fe928316b6f05.jpg', 'extension': 'jpg'}, 1388322482: {'path': 'temp/1759990053_1649047_1388322482_0739552ae692c76f9ef724e42b59da93.jpg', 'extension': 'jpg'}, 1388322462: {'path': 'temp/1759990053_1649047_1388322462_6b5e6ee7a2b11c70f5d86795a8d2c0e7.jpg', 'extension': 'jpg'}, 1388322465: {'path': 'temp/1759990053_1649047_1388322465_2bcbc077117c46c17ed1651e59329682.jpg', 'extension': 'jpg'}, 1388322475: {'path': 'temp/1759990053_1649047_1388322475_966e12c0fbf73bd378e00e0db2514e94.jpg', 'extension': 'jpg'}, 1388322456: {'path': 'temp/1759990053_1649047_1388322456_7c51ba43711c153f92a5b1ab6cabafb4.jpg', 'extension': 'jpg'}, 1388322458: {'path': 'temp/1759990053_1649047_1388322458_94d9809fd774e614683b2340da6eee65.jpg', 'extension': 'jpg'}, 1388322460: {'path': 'temp/1759990053_1649047_1388322460_ab1eed0615acebc9ff381a686e7d19eb.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 = 27630015; (('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 = 27630015 group by h (('08', 33),) 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=27630015 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 (27630015) 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 (27630015) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09102025 27630015 Nombre de photos uploadées : 33 / 23040 (0%) 09102025 27630015 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 09102025 27630015 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1388321077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/5c7a8f29aa1e6cc2390bf4d71666b641.jpg', 'username': None, 'uploaded_at': 1759989687, 'text': 'image_09102025_08_00_14_10480.jpg'}, {'photo_id': 1388322402, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/8488c46e38b3f5a193d0f7dd62abafe7.jpg', 'username': None, 'uploaded_at': 1759989828, 'text': 'image_09102025_08_00_14_10480.jpg'}, {'photo_id': 1388321076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/f0b3bafa6d03ae0cc5da8dd0f388dc35.jpg', 'username': None, 'uploaded_at': 1759989687, 'text': 'image_09102025_08_00_24_9633.jpg'}, {'photo_id': 1388322328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/baa8683a830e6873e7fa56e4c0691b9a.jpg', 'username': None, 'uploaded_at': 1759989793, 'text': 'image_09102025_08_00_24_9633.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001430511474609375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27630015, '2025-10-09' ) 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-10-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2413509,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6727771759033203 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= 2413509 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27616397, 'dashboard_result_id': 16167775, '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_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27616511, 'dashboard_result_id': 16167776, '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_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27616659, 'dashboard_result_id': 16167777, '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_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27616991, 'dashboard_result_id': 16167778, '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_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27618012, 'dashboard_result_id': 16167779, '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_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27618241, 'dashboard_result_id': 16167780, '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_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27618510, 'dashboard_result_id': 16167781, '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_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27618804, 'dashboard_result_id': 16167782, '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_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27619103, 'dashboard_result_id': 16167783, '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_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27619532, 'dashboard_result_id': 16167784, '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_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27620022, 'dashboard_result_id': 16167785, '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_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27620507, 'dashboard_result_id': 16167786, '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_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27620936, 'dashboard_result_id': 16167787, '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_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27621421, 'dashboard_result_id': 16167788, '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_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27621858, 'dashboard_result_id': 16167789, '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_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27622985, 'dashboard_result_id': 16167790, '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_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27623042, 'dashboard_result_id': 16167791, '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_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27623172, 'dashboard_result_id': 16167792, '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_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27623708, 'dashboard_result_id': 16167793, '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_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27624416, 'dashboard_result_id': 16167794, '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_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27625035, 'dashboard_result_id': 16167795, '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_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27625716, 'dashboard_result_id': 16167796, '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_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27626354, 'dashboard_result_id': 16167797, '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_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27626904, 'dashboard_result_id': 16167798, '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_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27627828, 'dashboard_result_id': 16167799, '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_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27628633, 'dashboard_result_id': 16167800, '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_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27629335, 'dashboard_result_id': 16167801, '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_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2422041, 'mtr_portfolio_id': 27630015, 'dashboard_result_id': 16167802, '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_P27630015_09-10-2025_08_05_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, '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 = 27616397 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 = 27616397 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 = 27616397 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 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 = 27616397 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 = 27616397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616397_09-10-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616397 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_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}" where mtr_portfolio_id = 27616397 and dashboard_run_id = 2422041 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 = 27616511 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 = 27616511 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 = 27616511 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 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 = 27616511 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 = 27616511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616511_09-10-2025_00_35_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616511 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_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}" where mtr_portfolio_id = 27616511 and dashboard_run_id = 2422041 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 = 27616659 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 = 27616659 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 = 27616659 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 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 = 27616659 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 = 27616659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616659_09-10-2025_00_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616659 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_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}" where mtr_portfolio_id = 27616659 and dashboard_run_id = 2422041 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 = 27616991 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 = 27616991 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 = 27616991 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 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 = 27616991 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 = 27616991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616991_09-10-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616991 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_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}" where mtr_portfolio_id = 27616991 and dashboard_run_id = 2422041 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 = 27618012 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 = 27618012 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 = 27618012 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 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 = 27618012 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 = 27618012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618012_09-10-2025_01_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618012 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_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}" where mtr_portfolio_id = 27618012 and dashboard_run_id = 2422041 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 = 27618241 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 = 27618241 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 = 27618241 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 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 = 27618241 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 = 27618241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618241_09-10-2025_02_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618241 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_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}" where mtr_portfolio_id = 27618241 and dashboard_run_id = 2422041 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 = 27618510 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 = 27618510 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 = 27618510 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 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 = 27618510 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 = 27618510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618510_09-10-2025_02_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618510 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_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}" where mtr_portfolio_id = 27618510 and dashboard_run_id = 2422041 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 = 27618804 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 = 27618804 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 = 27618804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 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 = 27618804 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 = 27618804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618804_09-10-2025_02_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618804 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_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}" where mtr_portfolio_id = 27618804 and dashboard_run_id = 2422041 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 = 27619103 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 = 27619103 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 = 27619103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 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 = 27619103 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 = 27619103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619103_09-10-2025_02_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619103 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_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}" where mtr_portfolio_id = 27619103 and dashboard_run_id = 2422041 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 = 27619532 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 = 27619532 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 = 27619532 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 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 = 27619532 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 = 27619532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619532_09-10-2025_03_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619532 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_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}" where mtr_portfolio_id = 27619532 and dashboard_run_id = 2422041 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 = 27620022 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 = 27620022 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 = 27620022 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 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 = 27620022 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 = 27620022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620022_09-10-2025_03_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620022 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_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}" where mtr_portfolio_id = 27620022 and dashboard_run_id = 2422041 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 = 27620507 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 = 27620507 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 = 27620507 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 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 = 27620507 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 = 27620507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620507_09-10-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620507 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_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}" where mtr_portfolio_id = 27620507 and dashboard_run_id = 2422041 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 = 27620936 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 = 27620936 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 = 27620936 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 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 = 27620936 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 = 27620936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620936_09-10-2025_03_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620936 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_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}" where mtr_portfolio_id = 27620936 and dashboard_run_id = 2422041 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 = 27621421 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 = 27621421 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 = 27621421 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 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 = 27621421 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 = 27621421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621421_09-10-2025_04_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621421 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_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}" where mtr_portfolio_id = 27621421 and dashboard_run_id = 2422041 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 = 27621858 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 = 27621858 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 = 27621858 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 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 = 27621858 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 = 27621858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621858_09-10-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621858 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_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}" where mtr_portfolio_id = 27621858 and dashboard_run_id = 2422041 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 = 27622985 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 = 27622985 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 = 27622985 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 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 = 27622985 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 = 27622985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27622985_09-10-2025_05_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27622985 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_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}" where mtr_portfolio_id = 27622985 and dashboard_run_id = 2422041 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 = 27623042 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': 3897498, 'mtr_portfolio_id': 27623042, 'created_at': datetime.datetime(2025, 10, 9, 5, 37, 5), 'result': '0.054959480903174554', 'result_long': None, 'result_double': None}] Qualite : 0.054959480903174554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623042 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_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}" where mtr_portfolio_id = 27623042 and dashboard_run_id = 2422041 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`=27623042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167791, 0.054959480903174554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, '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 = 27623172 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': 3897621, 'mtr_portfolio_id': 27623172, 'created_at': datetime.datetime(2025, 10, 9, 5, 49), 'result': '0.034426929585649114', 'result_long': None, 'result_double': None}] Qualite : 0.034426929585649114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623172 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_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}" where mtr_portfolio_id = 27623172 and dashboard_run_id = 2422041 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`=27623172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167792, 0.034426929585649114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, '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 = 27623708 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': 3897927, 'mtr_portfolio_id': 27623708, 'created_at': datetime.datetime(2025, 10, 9, 6, 7, 29), 'result': '0.03610732122848751', 'result_long': None, 'result_double': None}] Qualite : 0.03610732122848751 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623708 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_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}" where mtr_portfolio_id = 27623708 and dashboard_run_id = 2422041 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`=27623708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167793, 0.03610732122848751, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, '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 = 27624416 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': 3898223, 'mtr_portfolio_id': 27624416, 'created_at': datetime.datetime(2025, 10, 9, 6, 19, 4), 'result': '0.03564480013695679', 'result_long': None, 'result_double': None}] Qualite : 0.03564480013695679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27624416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27624416 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_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, 'pht': 3726}}" where mtr_portfolio_id = 27624416 and dashboard_run_id = 2422041 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`=27624416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167794, 0.03564480013695679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27624416_09-10-2025_06_19_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27624426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27624427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27624428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27624429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27624430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27624431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27624432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27624434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27624435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27624436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27624437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27624438, '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 = 27625035 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': 3898504, 'mtr_portfolio_id': 27625035, 'created_at': datetime.datetime(2025, 10, 9, 6, 37, 5), 'result': '0.05966947842045925', 'result_long': None, 'result_double': None}] Qualite : 0.05966947842045925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27625035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27625035 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_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, 'pht': 3726}}" where mtr_portfolio_id = 27625035 and dashboard_run_id = 2422041 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`=27625035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167795, 0.05966947842045925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625035_09-10-2025_06_37_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625069, '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 = 27625716 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': 3898774, 'mtr_portfolio_id': 27625716, 'created_at': datetime.datetime(2025, 10, 9, 6, 49, 33), 'result': '0.04499809824099856', 'result_long': None, 'result_double': None}] Qualite : 0.04499809824099856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27625716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27625716 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_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, 'pht': 3726}}" where mtr_portfolio_id = 27625716 and dashboard_run_id = 2422041 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`=27625716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167796, 0.04499809824099856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27625716_09-10-2025_06_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27625736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27625737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27625738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27625739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27625740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27625741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27625742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27625743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27625744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27625745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27625746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27625747, '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 = 27626354 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': 3899066, 'mtr_portfolio_id': 27626354, 'created_at': datetime.datetime(2025, 10, 9, 7, 2, 59), 'result': '0.03583350773143944', 'result_long': None, 'result_double': None}] Qualite : 0.03583350773143944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27626354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27626354 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_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, 'pht': 3726}}" where mtr_portfolio_id = 27626354 and dashboard_run_id = 2422041 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`=27626354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167797, 0.03583350773143944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626354_09-10-2025_07_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626377, '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 = 27626904 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': 3899336, 'mtr_portfolio_id': 27626904, 'created_at': datetime.datetime(2025, 10, 9, 7, 18, 59), 'result': '0.0437124675682206', 'result_long': None, 'result_double': None}] Qualite : 0.0437124675682206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27626904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27626904 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_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, 'pht': 3726}}" where mtr_portfolio_id = 27626904 and dashboard_run_id = 2422041 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`=27626904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167798, 0.0437124675682206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27626904_09-10-2025_07_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27626955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27626956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27626957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27626958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27626959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27626960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27626961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27626962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27626963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27626964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27626965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27626966, '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 = 27627828 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': 3899669, 'mtr_portfolio_id': 27627828, 'created_at': datetime.datetime(2025, 10, 9, 7, 33, 3), 'result': '0.05105046600093983', 'result_long': None, 'result_double': None}] Qualite : 0.05105046600093983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27627828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27627828 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_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, 'pht': 3726}}" where mtr_portfolio_id = 27627828 and dashboard_run_id = 2422043 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`=27627828 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167799, 0.05105046600093983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27627828_09-10-2025_07_33_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27627860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27627861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27627862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27627863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27627864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27627865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27627866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27627867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27627868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27627869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27627870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27627871, '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 = 27628633 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': 3899942, 'mtr_portfolio_id': 27628633, 'created_at': datetime.datetime(2025, 10, 9, 7, 49, 30), 'result': '0.0687370207241468', 'result_long': None, 'result_double': None}] Qualite : 0.0687370207241468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27628633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27628633 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_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, 'pht': 3726}}" where mtr_portfolio_id = 27628633 and dashboard_run_id = 2422043 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`=27628633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167800, 0.0687370207241468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27628633_09-10-2025_07_49_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27628706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27628707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27628708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27628709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27628710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27628711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27628712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27628713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27628714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27628715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27628716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27628717, '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 = 27629335 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': 3900247, 'mtr_portfolio_id': 27629335, 'created_at': datetime.datetime(2025, 10, 9, 8, 7, 5), 'result': '0.05953414897567306', 'result_long': None, 'result_double': None}] Qualite : 0.05953414897567306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27629335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27629335 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_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, 'pht': 3726}}" where mtr_portfolio_id = 27629335 and dashboard_run_id = 2422043 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`=27629335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167801, 0.05953414897567306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27629335_09-10-2025_08_07_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27629349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27629350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27629352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27629353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27629354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27629355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27629356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27629357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27629358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27629359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27629360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27629361, '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 = 27630015 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': 3900520, 'mtr_portfolio_id': 27630015, 'created_at': datetime.datetime(2025, 10, 9, 8, 7, 33), 'result': '0.037896567306044224', 'result_long': None, 'result_double': None}] Qualite : 0.037896567306044224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27630015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_07_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27630015 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_P27630015_09-10-2025_08_07_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, 'pht': 3726}}" where mtr_portfolio_id = 27630015 and dashboard_run_id = 2422043 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`=27630015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16167802, 0.037896567306044224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27630015_09-10-2025_08_07_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27630051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27630052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27630053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27630054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27630055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27630056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27630057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27630058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27630059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27630060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27630061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27630062, '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 (27616397,27616511,27616659,27616991,27618012,27618241,27618510,27618804,27619103,27619532,27620022,27620507,27620936,27621421,27621858,27622985,27623042,27623172,27623708,27624416,27625035,27625716,27626354,27626904,27627828,27628633,27629335,27630015) result : ((1388277422,), (1388277424,), (1388277426,), (1388277449,), (1388277450,), (1388277452,), (1388277458,), (1388277459,), (1388277461,), (1388277465,), (1388277469,), (1388277478,), (1388277480,), (1388277482,), (1388277498,), (1388277499,), (1388277500,), (1388277502,), (1388277505,), (1388277518,), (1388277520,), (1388277522,), (1388277525,), (1388277542,), (1388277544,), (1388277547,), (1388277550,), (1388277553,), (1388277562,), (1388277564,), (1388277567,), (1388277585,), (1388277592,), (1388277607,), (1388277646,), (1388277648,), (1388277649,), (1388277668,), (1388277669,), (1388277670,), (1388277674,), (1388277678,), (1388277681,), (1388277688,), (1388277690,), (1388277693,), (1388277696,), (1388277699,), (1388277702,), (1388277707,), (1388277709,), (1388277713,), (1388277716,), (1388277718,), (1388277719,), (1388277724,), (1388277730,), (1388277733,), (1388277736,), (1388277740,), (1388277748,), (1388277768,), (1388277772,), (1388277776,), (1388277779,), (1388277782,), (1388277784,), (1388277786,), (1388277789,), (1388277804,), (1388277805,), (1388277839,), (1388277820,), (1388277823,), (1388277828,), (1388277832,), (1388277837,), (1388277846,), (1388277847,), (1388277848,), (1388277850,), (1388277854,), (1388277858,), (1388277885,), (1388277887,), (1388277889,), (1388277914,), (1388277915,), (1388277916,), (1388277918,), (1388277930,), (1388277932,), (1388277934,), (1388277938,), (1388277957,), (1388277958,), (1388277960,), (1388277963,), (1388277966,), (1388277969,), (1388277978,), (1388277981,), (1388277984,), (1388277987,), (1388277991,), (1388277993,), (1388277999,), (1388278001,), (1388278020,), (1388278028,), (1388278043,), (1388278051,), (1388278055,), (1388278056,), (1388278058,), (1388278060,), (1388278062,), (1388278064,), (1388278068,), (1388278071,), (1388278074,), (1388278077,), (1388278094,), (1388278099,), (1388278101,), (1388278105,), (1388278109,), (1388278120,), (1388278122,), (1388278124,), (1388278128,), (1388278141,), (1388278142,), (1388278146,), (1388278151,), (1388278155,), (1388278159,), (1388278184,), (1388278186,), (1388278188,), (1388278192,), (1388278196,), (1388278202,), (1388278217,), (1388278220,), (1388278225,), (1388278256,), (1388278328,), (1388278330,), (1388278332,), (1388278244,), (1388278246,), (1388278249,), (1388278252,), (1388278254,), (1388278264,), (1388278266,), (1388278269,), (1388278272,), (1388278281,), (1388278295,), (1388278307,), (1388278309,), (1388278311,), (1388278314,), (1388278316,), (1388278319,), (1388278324,), (1388278327,), (1388278334,), (1388278337,), (1388278341,), (1388278344,), (1388278357,), (1388278358,), (1388278359,), (1388278362,), (1388278366,), (1388278376,), (1388278378,), (1388278381,), (1388278384,), (1388278388,), (1388278399,), (1388278401,), (1388278403,), (1388278441,), (1388278443,), (1388278445,), (1388278449,), (1388278463,), (1388278464,), (1388278466,), (1388278469,), (1388278472,), (1388278475,), (1388278484,), (1388278486,), (1388278488,), (1388278492,), (1388278503,), (1388278505,), (1388278507,), (1388278509,), (1388278511,), (1388278513,), (1388278521,), (1388278524,), (1388278526,), (1388278529,), (1388278533,), (1388278540,), (1388278559,), (1388278561,), (1388278573,), (1388278575,), (1388278577,), (1388278585,), (1388278586,), (1388278588,), (1388278589,), (1388278590,), (1388278591,), (1388278592,), (1388278593,), (1388278595,), (1388278597,), (1388278600,), (1388278604,), (1388278608,), (1388278618,), (1388278619,), (1388278643,), (1388278634,), (1388278636,), (1388278638,), (1388278642,), (1388278651,), (1388278653,), (1388278655,), (1388278697,), (1388278699,), (1388278700,), (1388278703,), (1388278706,), (1388278723,), (1388278725,), (1388278727,), (1388278742,), (1388278743,), (1388278744,), (1388278746,), (1388278750,), (1388278762,), (1388278764,), (1388278767,), (1388278771,), (1388278774,), (1388278775,), (1388278779,), (1388278782,), (1388278785,), (1388278788,), (1388278789,), (1388278791,), (1388278794,), (1388278796,), (1388278803,), (1388278809,), (1388278825,), (1388278837,), (1388278855,), (1388278858,), (1388278861,), (1388278863,), (1388278864,), (1388278865,), (1388278868,), (1388278869,), (1388278871,), (1388278874,), (1388278877,), (1388278880,), (1388278894,), (1388278896,), (1388278898,), (1388278902,), (1388278911,), (1388278913,), (1388278915,), (1388278918,), (1388278934,), (1388278936,), (1388278939,), (1388278942,), (1388278946,), (1388278948,), (1388278956,), (1388278967,), (1388278979,), (1388278991,), (1388279001,), (1388279010,), (1388279036,), (1388279039,), (1388279041,), (1388279043,), (1388279046,), (1388279049,), (1388279069,), (1388279072,), (1388279073,), (1388279075,), (1388279078,), (1388279081,), (1388279089,), (1388279090,), (1388279092,), (1388279095,), (1388279097,), (1388279100,), (1388279106,), (1388279735,), (1388279733,), (1388279751,), (1388279753,), (1388279755,), (1388279759,), (1388279792,), (1388279794,), (1388279797,), (1388279812,), (1388279814,), (1388279816,), (1388279820,), (1388279828,), (1388279830,), (1388279832,), (1388279836,), (1388279840,), (1388279843,), (1388279852,), (1388279853,), (1388279854,), (1388279880,), (1388279882,), (1388279884,), (1388279888,), (1388279891,), (1388279894,), (1388279926,), (1388279928,), (1388279932,), (1388279936,), (1388279939,), (1388279941,), (1388279947,), (1388279948,), (1388279950,), (1388279952,), (1388279954,), (1388279961,), (1388279963,), (1388279966,), (1388279971,), (1388279973,), (1388279974,), (1388279978,), (1388279982,), (1388279994,), (1388279997,), (1388280002,), (1388280005,), (1388280008,), (1388280010,), (1388280019,), (1388280022,), (1388280025,), (1388280028,), (1388280038,), (1388280046,), (1388280060,), (1388280066,), (1388280068,), (1388280070,), (1388280072,), (1388280074,), (1388280083,), (1388280084,), (1388280087,), (1388280089,), (1388280091,), (1388280092,), (1388280096,), (1388280097,), (1388280101,), (1388280102,), (1388280105,), (1388280106,), (1388280110,), (1388280111,), (1388280113,), (1388280115,), (1388280118,), (1388280122,), (1388280132,), (1388280135,), (1388280138,), (1388280144,), (1388280147,), (1388280157,), (1388280153,), (1388280155,), (1388280174,), (1388280176,), (1388280177,), (1388280180,), (1388280184,), (1388280228,), (1388280230,), (1388280232,), (1388280256,), (1388280257,), (1388280258,), (1388280260,), (1388280263,), (1388280266,), (1388280276,), (1388280278,), (1388280280,), (1388280283,), (1388280296,), (1388280297,), (1388280299,), (1388280302,), (1388280305,), (1388280308,), (1388280319,), (1388280323,), (1388280327,), (1388280331,), (1388280334,), (1388280349,), (1388280362,), (1388280363,), (1388280365,), (1388280369,), (1388280371,), (1388280375,), (1388280381,), (1388280383,), (1388280386,), (1388280388,), (1388280390,), (1388280392,), (1388280394,), (1388280396,), (1388280399,), (1388280402,), (1388280406,), (1388280409,), (1388280422,), (1388280424,), (1388280426,), (1388280430,), (1388280435,), (1388280439,), (1388280448,), (1388280450,), (1388280467,), (1388280468,), (1388280469,), (1388280471,), (1388280474,), (1388280480,), (1388280555,), (1388280548,), (1388280549,), (1388280550,), (1388280551,), (1388280566,), (1388280569,), (1388280572,), (1388280604,), (1388280607,), (1388280609,), (1388280611,), (1388280614,), (1388280616,), (1388280626,), (1388280629,), (1388280633,), (1388280645,), (1388280646,), (1388280650,), (1388280660,), (1388280662,), (1388280667,), (1388280670,), (1388280672,), (1388280676,), (1388280694,), (1388280696,), (1388280698,), (1388280699,), (1388280703,), (1388280733,), (1388280735,), (1388280738,), (1388280741,), (1388280745,), (1388280751,), (1388280753,), (1388280755,), (1388280757,), (1388280761,), (1388280764,), (1388280771,), (1388280773,), (1388280775,), (1388280791,), (1388280792,), (1388280794,), (1388280797,), (1388280800,), (1388280803,), (1388280809,), (1388280812,), (1388280816,), (1388280819,), (1388280827,), (1388280835,), (1388280838,), (1388280841,), (1388280845,), (1388280848,), (1388280850,), (1388280852,), (1388280857,), (1388280861,), (1388280864,), (1388280866,), (1388280869,), (1388280871,), (1388280874,), (1388280877,), (1388280879,), (1388280882,), (1388280885,), (1388280888,), (1388280891,), (1388280897,), (1388280900,), (1388280903,), (1388280908,), (1388280935,), (1388280921,), (1388280923,), (1388280924,), (1388280927,), (1388280932,), (1388280943,), (1388280945,), (1388280947,), (1388280950,), (1388280953,), (1388280985,), (1388280987,), (1388280989,), (1388281010,), (1388281011,), (1388281012,), (1388281015,), (1388281019,), (1388281022,), (1388281030,), (1388281032,), (1388281034,), (1388281038,), (1388281042,), (1388281044,), (1388281051,), (1388281053,), (1388281055,), (1388281058,), (1388281061,), (1388281063,), (1388281074,), (1388281076,), (1388281079,), (1388281094,), (1388281101,), (1388281115,), (1388281119,), (1388281120,), (1388281122,), (1388281124,), (1388281127,), (1388281131,), (1388281139,), (1388281140,), (1388281143,), (1388281144,), (1388281147,), (1388281148,), (1388281150,), (1388281151,), (1388281153,), (1388281154,), (1388281156,), (1388281157,), (1388281160,), (1388281162,), (1388281163,), (1388281165,), (1388281168,), (1388281171,), (1388281179,), (1388281182,), (1388281194,), (1388281196,), (1388281198,), (1388281201,), (1388281205,), (1388281209,), (1388281217,), (1388281219,), (1388281220,), (1388281222,), (1388281236,), (1388281238,), (1388281241,), (1388281244,), (1388281247,), (1388281250,), (1388281288,), (1388281289,), (1388281290,), (1388281293,), (1388281305,), (1388281307,), (1388281309,), (1388281311,), (1388281314,), (1388281317,), (1388281328,), (1388281333,), (1388281337,), (1388281340,), (1388281370,), (1388281407,), (1388281409,), (1388281433,), (1388281436,), (1388281437,), (1388281440,), (1388281460,), (1388281361,), (1388281364,), (1388281366,), (1388281367,), (1388281369,), (1388281371,), (1388281372,), (1388281374,), (1388281378,), (1388281381,), (1388281384,), (1388281400,), (1388281401,), (1388281403,), (1388281405,), (1388281416,), (1388281417,), (1388281420,), (1388281422,), (1388281423,), (1388281427,), (1388281428,), (1388281432,), (1388281444,), (1388281446,), (1388281447,), (1388281449,), (1388281453,), (1388281455,), (1388281463,), (1388281465,), (1388281468,), (1388281470,), (1388281482,), (1388281484,), (1388281486,), (1388281489,), (1388281506,), (1388281508,), (1388281509,), (1388281513,), (1388281518,), (1388281557,), (1388281561,), (1388281565,), (1388281569,), (1388281572,), (1388281574,), (1388281578,), (1388281580,), (1388281582,), (1388281585,), (1388281588,), (1388281599,), (1388281601,), (1388281603,), (1388281605,), (1388281608,), (1388281610,), (1388281620,), (1388281622,), (1388281625,), (1388281628,), (1388281630,), (1388281633,), (1388281645,), (1388281646,), (1388281649,), (1388281656,), (1388281662,), (1388281671,), (1388281676,), (1388281678,), (1388281687,), (1388281689,), (1388281691,), (1388281695,), (1388281705,), (1388281707,), (1388281709,), (1388281710,), (1388281711,), (1388281713,), (1388281720,), (1388281723,), (1388281727,), (1388281731,), (1388281734,), (1388281736,), (1388281741,), (1388281745,), (1388281746,), (1388281767,), (1388281759,), (1388281761,), (1388281763,), (1388281781,), (1388281782,), (1388281783,), (1388281785,), (1388281788,), (1388281791,), (1388281825,), (1388281826,), (1388281827,), (1388281846,), (1388281848,), (1388281850,), (1388281852,), (1388281868,), (1388281882,), (1388281884,), (1388281886,), (1388281889,), (1388281892,), (1388281903,), (1388281904,), (1388281905,), (1388281906,), (1388281950,), (1388281953,), (1388281956,), (1388281959,), (1388281961,), (1388281964,), (1388281972,), (1388281974,), (1388281977,), (1388281981,), (1388282001,), (1388282003,), (1388282005,), (1388282007,), (1388282011,), (1388282022,), (1388282024,), (1388282026,), (1388282029,), (1388282041,), (1388282043,), (1388282045,), (1388282047,), (1388282097,), (1388282099,), (1388282102,), (1388282105,), (1388282107,), (1388282119,), (1388282121,), (1388282125,), (1388282128,), (1388282131,), (1388282158,), (1388282161,), (1388282163,), (1388282166,), (1388282212,), (1388282217,), (1388282219,), (1388282220,), (1388282221,), (1388282223,), (1388282225,), (1388282237,), (1388282239,), (1388282242,), (1388282154,), (1388282157,), (1388282180,), (1388282192,), (1388282198,), (1388282208,), (1388282210,), (1388282229,), (1388282232,), (1388282234,), (1388282247,), (1388282248,), (1388282250,), (1388282252,), (1388282254,), (1388282270,), (1388282271,), (1388282272,), (1388282275,), (1388282290,), (1388282292,), (1388282295,), (1388282299,), (1388282301,), (1388282304,), (1388282314,), (1388282316,), (1388282318,), (1388282321,), (1388282325,), (1388282359,), (1388282361,), (1388282363,), (1388282366,), (1388282380,), (1388282382,), (1388282384,), (1388282388,), (1388282392,), (1388282402,), (1388282403,), (1388282405,), (1388282408,), (1388282411,), (1388282414,), (1388282424,), (1388282426,), (1388282430,), (1388282433,), (1388282436,), (1388282438,), (1388282443,), (1388282446,), (1388282449,), (1388282451,), (1388282453,), (1388282466,), (1388282488,), (1388282492,), (1388282494,), (1388282496,), (1388282497,), (1388282499,), (1388282510,), (1388282514,), (1388282517,), (1388282519,), (1388282520,), (1388282521,), (1388282525,), (1388282528,), (1388282531,), (1388282534,), (1388282537,), (1388282547,), (1388282550,), (1388282552,), (1388282555,), (1388282558,), (1388282581,), (1388282568,), (1388282570,), (1388282572,), (1388282575,), (1388282578,), (1388282590,), (1388282592,), (1388282594,), (1388282598,), (1388282602,), (1388282605,), (1388282636,), (1388282637,), (1388282651,), (1388282653,), (1388282655,), (1388282658,), (1388282674,), (1388282676,), (1388282677,), (1388282696,), (1388282698,), (1388282701,), (1388282704,), (1388282706,), (1388282709,), (1388282714,), (1388282717,), (1388282720,), (1388282723,), (1388282727,), (1388282735,), (1388282762,), (1388282771,), (1388282772,), (1388282774,), (1388282776,), (1388282780,), (1388282786,), (1388282789,), (1388282792,), (1388282794,), (1388282795,), (1388282798,), (1388282800,), (1388282805,), (1388282820,), (1388282822,), (1388282824,), (1388282828,), (1388282833,), (1388282841,), (1388282843,), (1388282846,), (1388282849,), (1388282852,), (1388282862,), (1388282864,), (1388282865,), (1388282918,), (1388282920,), (1388282921,), (1388282925,), (1388282929,), (1388282932,), (1388282938,), (1388282940,), (1388282943,), (1388282947,), (1388282950,), (1388282961,), (1388282963,), (1388282964,), (1388282991,), (1388282994,), (1388282996,), (1388283060,), (1388283066,), (1388283068,), (1388283082,), (1388282982,), (1388282984,), (1388282988,), (1388283003,), (1388283005,), (1388283008,), (1388283011,), (1388283013,), (1388283017,), (1388283031,), (1388283041,), (1388283050,), (1388283073,), (1388283076,), (1388283079,), (1388283089,), (1388283090,), (1388283091,), (1388283094,), (1388283106,), (1388283108,), (1388283111,), (1388283115,), (1388283118,), (1388283121,), (1388283126,), (1388283128,), (1388283132,), (1388283135,), (1388283139,), (1388283141,), (1388283150,), (1388283152,), (1388283153,), (1388283156,), (1388283194,), (1388283196,), (1388283198,), (1388283200,), (1388283239,), (1388283240,), (1388283243,), (1388283255,), (1388283256,), (1388283257,), (1388283259,), (1388283262,), (1388283265,), (1388283320,), (1388283322,), (1388283324,), (1388283341,), (1388283343,), (1388283345,), (1388283348,), (1388283363,), (1388283366,), (1388283368,), (1388283372,), (1388283375,), (1388283378,), (1388283398,), (1388283386,), (1388283388,), (1388283390,), (1388283394,), (1388283404,), (1388283406,), (1388283408,), (1388283412,), (1388283416,), (1388283419,), (1388283482,), (1388283484,), (1388283485,), (1388283488,), (1388283504,), (1388283506,), (1388283508,), (1388283512,), (1388283516,), (1388283520,), (1388283528,), (1388283529,), (1388283532,), (1388283534,), (1388283537,), (1388283548,), (1388283549,), (1388283551,), (1388283553,), (1388283556,), (1388283560,), (1388283569,), (1388283581,), (1388283591,), (1388283599,), (1388283602,), (1388283605,), (1388283608,), (1388283611,), (1388283613,), (1388283616,), (1388283618,), (1388283621,), (1388283632,), (1388283633,), (1388283636,), (1388283638,), (1388283640,), (1388283644,), (1388283645,), (1388283648,), (1388283649,), (1388283651,), (1388283652,), (1388283654,), (1388283657,), (1388283662,), (1388283664,), (1388283666,), (1388283679,), (1388283682,), (1388283684,), (1388283714,), (1388283716,), (1388283717,), (1388283719,), (1388283757,), (1388283759,), (1388283761,), (1388283779,), (1388283780,), (1388283783,), (1388283786,), (1388283811,), (1388283816,), (1388283819,), (1388283822,), (1388283865,), (1388283868,), (1388283871,), (1388283876,), (1388283880,), (1388283804,), (1388283808,), (1388283843,), (1388283848,), (1388283851,), (1388283854,), (1388283856,), (1388283859,), (1388283889,), (1388283899,), (1388283902,), (1388283909,), (1388283911,), (1388283913,), (1388283917,), (1388283922,), (1388283926,), (1388283935,), (1388283938,), (1388283942,), (1388283963,), (1388283965,), (1388283967,), (1388283970,), (1388283990,), (1388283992,), (1388284004,), (1388284030,), (1388284032,), (1388284034,), (1388284054,), (1388284057,), (1388284060,), (1388284077,), (1388284080,), (1388284084,), (1388284088,), (1388284106,), (1388284108,), (1388284111,), (1388284119,), (1388285441,), (1388285470,), (1388285494,), (1388285582,), (1388285585,), (1388285612,), (1388285617,), (1388285623,), (1388285628,), (1388285631,), (1388285641,), (1388285644,), (1388285646,), (1388285675,), (1388285678,), (1388285681,), (1388285684,), (1388285709,), (1388285713,), (1388285716,), (1388285719,), (1388285735,), (1388285738,), (1388285750,), (1388285754,), (1388285758,), (1388285762,), (1388285769,), (1388285773,), (1388285777,), (1388285786,), (1388285790,), (1388285802,), (1388285822,), (1388285826,), (1388285829,), (1388285857,), (1388285850,), (1388285852,), (1388285854,), (1388285873,), (1388285875,), (1388285878,), (1388285932,), (1388285936,), (1388285941,), (1388285946,), (1388285952,), (1388285954,), (1388285963,), (1388285966,), (1388285968,), (1388285971,), (1388285986,), (1388285988,), (1388285990,), (1388285993,), (1388285997,), (1388286008,), (1388286011,), (1388286015,), (1388286018,), (1388286021,), (1388286035,), (1388286038,), (1388286040,), (1388286046,), (1388286059,), (1388286079,), (1388286081,), (1388286082,), (1388286084,), (1388286086,), (1388286090,), (1388286097,), (1388286102,), (1388286103,), (1388286105,), (1388286107,), (1388286117,), (1388286119,), (1388286121,), (1388286124,), (1388286127,), (1388286142,), (1388286144,), (1388286147,), (1388286150,), (1388286152,), (1388286161,), (1388286163,), (1388286165,), (1388286169,), (1388286173,), (1388286213,), (1388286217,), (1388286222,), (1388286226,), (1388286229,), (1388286231,), (1388286232,), (1388286233,), (1388286234,), (1388286237,), (1388286242,), (1388286245,), (1388286248,), (1388286251,), (1388286259,), (1388286261,), (1388286262,), (1388286265,), (1388286268,), (1388286271,), (1388286314,), (1388286435,), (1388286303,), (1388286306,), (1388286309,), (1388286312,), (1388286351,), (1388286360,), (1388286371,), (1388286372,), (1388286374,), (1388286377,), (1388286388,), (1388286391,), (1388286400,), (1388286401,), (1388286402,), (1388286403,), (1388286410,), (1388286413,), (1388286416,), (1388286419,), (1388286422,), (1388286423,), (1388286429,), (1388286433,), (1388286440,), (1388286449,), (1388286451,), (1388286454,), (1388286460,), (1388286462,), (1388286463,), (1388286466,), (1388286473,), (1388286476,), (1388286515,), (1388286517,), (1388286519,), (1388287106,), (1388287109,), (1388287114,), (1388287219,), (1388287237,), (1388287266,), (1388287330,), (1388287332,), (1388287334,), (1388287337,), (1388287353,), (1388287356,), (1388287377,), (1388287381,), (1388287385,), (1388287388,), (1388287398,), (1388287399,), (1388287531,), (1388287704,), (1388287706,), (1388287708,), (1388288640,), (1388288642,), (1388288648,), (1388288650,), (1388288653,), (1388288669,), (1388288716,), (1388288734,), (1388288744,), (1388288746,), (1388288999,), (1388289003,), (1388289010,), (1388289077,), (1388289090,), (1388289091,), (1388289093,), (1388289094,), (1388289178,), (1388289184,), (1388289310,), (1388289311,), (1388289347,), (1388289348,), (1388289386,), (1388289388,), (1388289423,), (1388289426,), (1388289648,), (1388289696,), (1388289777,), (1388289778,), (1388289782,), (1388289784,), (1388289798,), (1388289859,), (1388289926,), (1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,), (1388294369,), (1388294372,), (1388294374,), (1388294377,), (1388294381,), (1388294384,), (1388294393,), (1388294397,), (1388294400,), (1388294402,), (1388294405,), (1388294423,), (1388294427,), (1388294961,), (1388295350,), (1388295362,), (1388295418,), (1388295419,), (1388295420,), (1388295423,), (1388297113,), (1388297117,), (1388297119,), (1388297123,), (1388297127,), (1388297497,), (1388295405,), (1388295408,), (1388295836,), (1388295930,), (1388295932,), (1388295933,), (1388295936,), (1388296024,), (1388296041,), (1388296044,), (1388296130,), (1388296153,), (1388296714,), (1388297108,), (1388297109,), (1388297134,), (1388297135,), (1388297137,), (1388297338,), (1388297342,), (1388297377,), (1388297458,), (1388297479,), (1388297489,), (1388297494,), (1388298417,), (1388298419,), (1388298478,), (1388298486,), (1388298491,), (1388299308,), (1388299310,), (1388299333,), (1388299391,), (1388299395,), (1388299497,), (1388299628,), (1388299631,), (1388299633,), (1388299636,), (1388299652,), (1388299653,), (1388299654,), (1388299657,), (1388299660,), (1388299664,), (1388299682,), (1388299685,), (1388299695,), (1388299705,), (1388299717,), (1388299719,), (1388299721,), (1388299724,), (1388300085,), (1388300392,), (1388300425,), (1388300426,), (1388300428,), (1388300437,), (1388300441,), (1388300444,), (1388300467,), (1388300556,), (1388300687,), (1388300692,), (1388300802,), (1388300814,), (1388300817,), (1388300828,), (1388300831,), (1388300833,), (1388300836,), (1388300838,), (1388300843,), (1388300847,), (1388300850,), (1388301739,), (1388301742,), (1388301748,), (1388301755,), (1388301757,), (1388302049,), (1388302025,), (1388302038,), (1388302039,), (1388302042,), (1388302046,), (1388302064,), (1388302065,), (1388302068,), (1388302070,), (1388302926,), (1388302928,), (1388302930,), (1388302934,), (1388302937,), (1388302941,), (1388302966,), (1388302967,), (1388303197,), (1388303257,), (1388304068,), (1388304071,), (1388304073,), (1388304077,), (1388304174,), (1388304208,), (1388304278,), (1388304280,), (1388304284,), (1388304287,), (1388304301,), (1388304315,), (1388304369,), (1388304380,), (1388304383,), (1388304386,), (1388304390,), (1388304393,), (1388304405,), (1388304411,), (1388304421,), (1388304427,), (1388304441,), (1388304973,), (1388305173,), (1388305174,), (1388305176,), (1388305177,), (1388305179,), (1388305180,), (1388305182,), (1388305183,), (1388305185,), (1388305186,), (1388305187,), (1388305188,), (1388305354,), (1388305393,), (1388305396,), (1388305658,), (1388305836,), (1388305845,), (1388305888,), (1388306043,), (1388306045,), (1388306047,), (1388306081,), (1388306120,), (1388306134,), (1388306306,), (1388306339,), (1388306341,), (1388306345,), (1388306348,), (1388306689,), (1388306693,), (1388306719,), (1388306737,), (1388306740,), (1388306743,), (1388306795,), (1388306801,), (1388306804,), (1388306808,), (1388306849,), (1388306850,), (1388306851,), (1388306853,), (1388306856,), (1388306859,), (1388306899,), (1388306903,), (1388306907,), (1388306910,), (1388306913,), (1388306916,), (1388306946,), (1388307456,), (1388307948,), (1388307961,), (1388308004,), (1388308006,), (1388308008,), (1388308205,), (1388308661,), (1388306936,), (1388306938,), (1388306941,), (1388306944,), (1388307639,), (1388307812,), (1388307816,), (1388307818,), (1388307855,), (1388307857,), (1388307907,), (1388307915,), (1388307934,), (1388307942,), (1388307986,), (1388307990,), (1388307992,), (1388308013,), (1388308015,), (1388308018,), (1388308021,), (1388308024,), (1388308664,), (1388308666,), (1388308668,), (1388308672,), (1388308675,), (1388309220,), (1388309289,), (1388309295,), (1388309309,), (1388309425,), (1388309434,), (1388309436,), (1388309440,), (1388309445,), (1388309466,), (1388309469,), (1388309472,), (1388309475,), (1388309490,), (1388309492,), (1388309493,), (1388309496,), (1388309499,), (1388309501,), (1388309529,), (1388309532,), (1388309534,), (1388309537,), (1388309541,), (1388309551,), (1388309553,), (1388309554,), (1388309557,), (1388309563,), (1388309564,), (1388310798,), (1388310801,), (1388310804,), (1388310807,), (1388310811,), (1388310853,), (1388310855,), (1388310858,), (1388310862,), (1388311238,), (1388311241,), (1388311296,), (1388311311,), (1388311326,), (1388311329,), (1388311339,), (1388311342,), (1388311344,), (1388311395,), (1388311373,), (1388311375,), (1388311377,), (1388311380,), (1388311393,), (1388312011,), (1388312129,), (1388312132,), (1388312136,), (1388312139,), (1388312403,), (1388312410,), (1388312411,), (1388312414,), (1388312418,), (1388312421,), (1388312444,), (1388312446,), (1388312449,), (1388312451,), (1388312457,), (1388312473,), (1388312474,), (1388312475,), (1388312478,), (1388312482,), (1388312486,), (1388312495,), (1388312498,), (1388312501,), (1388312507,), (1388312510,), (1388312512,), (1388312527,), (1388312528,), (1388312530,), (1388312555,), (1388312571,), (1388312575,), (1388312578,), (1388312580,), (1388312582,), (1388312585,), (1388312625,), (1388312628,), (1388312629,), (1388312632,), (1388312661,), (1388312664,), (1388312667,), (1388312672,), (1388312692,), (1388312694,), (1388312696,), (1388312726,), (1388312729,), (1388312775,), (1388312779,), (1388312780,), (1388312786,), (1388312800,), (1388312806,), (1388312852,), (1388312854,), (1388312856,), (1388312859,), (1388312862,), (1388312874,), (1388312879,), (1388312884,), (1388312886,), (1388312890,), (1388312917,), (1388312909,), (1388312912,), (1388312915,), (1388312951,), (1388312959,), (1388312970,), (1388312973,), (1388312975,), (1388312978,), (1388313800,), (1388313803,), (1388313805,), (1388313834,), (1388313852,), (1388313856,), (1388313860,), (1388313864,), (1388314743,), (1388314746,), (1388314901,), (1388314949,), (1388314967,), (1388314969,), (1388314995,), (1388314998,), (1388315001,), (1388315005,), (1388315008,), (1388315022,), (1388315024,), (1388315026,), (1388315052,), (1388315055,), (1388315057,), (1388315078,), (1388315080,), (1388315082,), (1388315085,), (1388315165,), (1388315167,), (1388315169,), (1388315172,), (1388315175,), (1388315192,), (1388315195,), (1388315198,), (1388315201,), (1388315204,), (1388315225,), (1388315234,), (1388315237,), (1388315240,), (1388315415,), (1388315442,), (1388315456,), (1388315465,), (1388315468,), (1388315669,), (1388315726,), (1388315736,), (1388315742,), (1388315792,), (1388315923,), (1388315931,), (1388315933,), (1388315936,), (1388315938,), (1388315947,), (1388315971,), (1388315973,), (1388315977,), (1388315980,), (1388316065,), (1388316003,), (1388316005,), (1388316055,), (1388316058,), (1388316062,), (1388316079,), (1388316092,), (1388316095,), (1388316116,), (1388316120,), (1388316233,), (1388316241,), (1388316274,), (1388316277,), (1388316301,), (1388316306,), (1388316327,), (1388316337,), (1388316339,), (1388316342,), (1388316420,), (1388316422,), (1388316423,), (1388316507,), (1388316515,), (1388316517,), (1388316549,), (1388316672,), (1388316676,), (1388316696,), (1388316914,), (1388316923,), (1388316938,), (1388316946,), (1388316964,), (1388316988,), (1388316991,), (1388316993,), (1388317028,), (1388317035,), (1388317036,), (1388317039,), (1388317043,), (1388317049,), (1388317073,), (1388317370,), (1388317435,), (1388317439,), (1388317551,), (1388317583,), (1388317596,), (1388317597,), (1388317614,), (1388317623,), (1388317625,), (1388317662,), (1388317686,), (1388317689,), (1388317692,), (1388317705,), (1388317717,), (1388317719,), (1388317721,), (1388317724,), (1388317728,), (1388317731,), (1388317862,), (1388317869,), (1388317887,), (1388317892,), (1388317895,), (1388317965,), (1388317970,), (1388317997,), (1388318005,), (1388318006,), (1388318007,), (1388317938,), (1388317943,), (1388317945,), (1388317962,), (1388318090,), (1388318092,), (1388318096,), (1388318099,), (1388318102,), (1388318104,), (1388318193,), (1388318215,), (1388318218,), (1388318244,), (1388318255,), (1388318273,), (1388318276,), (1388318278,), (1388318281,), (1388318286,), (1388318301,), (1388318303,), (1388318305,), (1388318309,), (1388318313,), (1388318329,), (1388318331,), (1388318333,), (1388318336,), (1388318338,), (1388318375,), (1388318380,), (1388318393,), (1388318407,), (1388318409,), (1388318518,), (1388318525,), (1388318532,), (1388318537,), (1388318540,), (1388318559,), (1388318560,), (1388318561,), (1388318564,), (1388318568,), (1388318571,), (1388318606,), (1388318609,), (1388318613,), (1388318616,), (1388318618,), (1388318626,), (1388318628,), (1388318630,), (1388318792,), (1388318938,), (1388318950,), (1388318959,), (1388318974,), (1388318988,), (1388319003,), (1388319190,), (1388319203,), (1388319207,), (1388319235,), (1388319239,), (1388319246,), (1388319462,), (1388319464,), (1388319465,), (1388319468,), (1388319472,), (1388319608,), (1388319610,), (1388319660,), (1388319663,), (1388319700,), (1388319688,), (1388319691,), (1388319693,), (1388319696,), (1388319709,), (1388319711,), (1388319712,), (1388319716,), (1388319720,), (1388319729,), (1388319891,), (1388319894,), (1388319896,), (1388319901,), (1388319918,), (1388319920,), (1388319923,), (1388319927,), (1388319931,), (1388319954,), (1388319956,), (1388319957,), (1388319961,), (1388319965,), (1388319968,), (1388319978,), (1388319980,), (1388319983,), (1388319989,), (1388320124,), (1388320129,), (1388320150,), (1388320152,), (1388320155,), (1388320158,), (1388320167,), (1388320175,), (1388320198,), (1388320210,), (1388320235,), (1388320238,), (1388320280,), (1388320282,), (1388320284,), (1388320288,), (1388320292,), (1388320301,), (1388320480,), (1388320509,), (1388320510,), (1388320557,), (1388320640,), (1388320711,), (1388320716,), (1388320724,), (1388320727,), (1388320760,), (1388320761,), (1388320763,), (1388320766,), (1388320792,), (1388320809,), (1388320859,), (1388320860,), (1388320861,), (1388320864,), (1388320866,), (1388320873,), (1388320878,), (1388320896,), (1388320898,), (1388320913,), (1388320915,), (1388320939,), (1388320961,), (1388320964,), (1388320968,), (1388321032,), (1388321035,), (1388321038,), (1388321040,), (1388321043,), (1388321046,), (1388321079,), (1388321082,), (1388321084,), (1388322405,), (1388322408,), (1388322444,), (1388322448,), (1388322452,), (1388322468,), (1388322499,), (1388321072,), (1388321076,), (1388321077,), (1388321968,), (1388321969,), (1388321976,), (1388321977,), (1388321988,), (1388321989,), (1388321994,), (1388321995,), (1388321998,), (1388321999,), (1388322023,), (1388322024,), (1388322041,), (1388322044,), (1388322231,), (1388322236,), (1388322238,), (1388322328,), (1388322402,), (1388322456,), (1388322458,), (1388322460,), (1388322462,), (1388322465,), (1388322475,), (1388322478,), (1388322480,), (1388322482,), (1388322484,), (1388322495,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09102025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27630015]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] map_info['map_portfolio_photo'] : {27630015: [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456, 1388322402, 1388322328, 1388322238, 1388322236, 1388322231, 1388322044, 1388322041, 1388322024, 1388322023, 1388321999, 1388321998, 1388321995, 1388321994, 1388321989, 1388321988, 1388321977, 1388321976, 1388321969, 1388321968, 1388321077, 1388321076, 1388321072]} final : True mtd_id 4302 list_pids : [1388322495, 1388322484, 1388322482, 1388322480, 1388322478, 1388322475, 1388322465, 1388322462, 1388322460, 1388322458, 1388322456] Looping around the photos to save general results len do output : 1 /27630015Didn'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, '3900520') ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520') ('4302', None, None, None, None, None, None, None, '3900520') ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27630015', 'None', None, None, None, None, '3900520'), ('4302', '27630015', '1388322495', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322484', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322482', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322480', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322478', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322475', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322465', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322462', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322460', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322458', None, None, None, None, None, '3900520'), ('4302', '27630015', '1388322456', None, None, None, None, None, '3900520')] time used for this insertion : 0.037245750427246094 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.362693786621094 time spend to save output : 0.03745269775390625 total time spend for step 5 : 5.400146484375 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 (3900520) 2.06user 2.19system 0:16.06elapsed 26%CPU (0avgtext+0avgdata 159652maxresident)k 0inputs+7696outputs (17major+64340minor)pagefaults 0swaps