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 : 25449 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 (3518338) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3518338) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25935949 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3518338'] with mtr_portfolio_ids : ['25935949'] and first list_photo_ids : [] new path : /proc/25449/ Name: python3 Umask: 0002 State: R (running) Tgid: 25449 Ngid: 0 Pid: 25449 PPid: 25448 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 25449 NSpid: 25449 NSpgid: 25206 NSsid: 25206 VmPeak: 1106900 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 101044 kB VmRSS: 101044 kB RssAnon: 59876 kB RssFile: 41168 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 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: 41 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '25449', 'Ngid': '0', 'Pid': '25449', 'PPid': '25448', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '25449', 'NSpid': '25449', 'NSpgid': '25206', 'NSsid': '25206', 'VmPeak': '1106900 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '101044 kB', 'VmRSS': '101044 kB', 'RssAnon': '59876 kB', 'RssFile': '41168 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 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': '41', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '25449', '1106900', '0', '1106884', '865636', '101044', b'', 'marlene', '3518338') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25935949) 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 (3518338 ) ) 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 (25935949) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376745905, 'portfolio_id': 25935949}, {'photo_id': 1376745903, 'portfolio_id': 25935949}, {'photo_id': 1376745902, 'portfolio_id': 25935949}, {'photo_id': 1376745901, 'portfolio_id': 25935949}, {'photo_id': 1376745899, 'portfolio_id': 25935949}, {'photo_id': 1376745894, 'portfolio_id': 25935949}, {'photo_id': 1376745892, 'portfolio_id': 25935949}, {'photo_id': 1376745884, 'portfolio_id': 25935949}, {'photo_id': 1376745882, 'portfolio_id': 25935949}, {'photo_id': 1376745880, 'portfolio_id': 25935949}, {'photo_id': 1376745878, 'portfolio_id': 25935949}, {'photo_id': 1376745872, 'portfolio_id': 25935949}, {'photo_id': 1376745859, 'portfolio_id': 25935949}, {'photo_id': 1376745847, 'portfolio_id': 25935949}, {'photo_id': 1376745845, 'portfolio_id': 25935949}, {'photo_id': 1376745842, 'portfolio_id': 25935949}, {'photo_id': 1376745839, 'portfolio_id': 25935949}, {'photo_id': 1376745828, 'portfolio_id': 25935949}, {'photo_id': 1376745827, 'portfolio_id': 25935949}] map_portfolio_id_photo_id: {25935949: [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827]} ##### 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.014467239379882812 #### 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 Wed Aug 13 15:14: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 (25935949) 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 : 25935949 get user id for portfolio 25935949 get sub ptf for main ptf 25935949, type 3726 and hashtags ['Carton_gris', 'cartonnette', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'flou', 'kraft', 'mal_croppe', 'papier', 'environnement'] 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`=25935949 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) 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`=25935949 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[25935949, 25936597, 3726, 0.5, 2107753020, 979], [25935949, 25936598, 3726, 0.5, 702398920, 979], [25935949, 25936599, 3726, 0.5, 2107753024, 979], [25935949, 25936600, 3726, 0.5, 2107752406, 979], [25935949, 25936601, 3726, 0.5, 2107752385, 979], [25935949, 25936602, 3726, 0.5, 492628673, 979], [25935949, 25936603, 3726, 0.5, 492725882, 979], [25935949, 25936604, 3726, 0.5, 492777938, 979], [25935949, 25936605, 3726, 0.5, 493202403, 979], [25935949, 25936606, 3726, 0.5, 2107755527, 979], [25935949, 25936607, 3726, 0.5, 492668766, 979], [25935949, 25936608, 3726, 0.5, 493012381, 979]] 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`=25935949 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) 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`=25935949 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25935949, 'sub_port_id': 25936597, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472300, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'cartonnette': {'main_port_id': 25935949, 'sub_port_id': 25936598, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472301, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'Carton_brun': {'main_port_id': 25935949, 'sub_port_id': 25936599, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472302, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'autre_refus': {'main_port_id': 25935949, 'sub_port_id': 25936600, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472303, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25935949, 'sub_port_id': 25936601, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472304, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'metal': {'main_port_id': 25935949, 'sub_port_id': 25936602, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472305, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'plastique': {'main_port_id': 25935949, 'sub_port_id': 25936603, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472306, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'flou': {'main_port_id': 25935949, 'sub_port_id': 25936604, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472307, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'kraft': {'main_port_id': 25935949, 'sub_port_id': 25936605, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472308, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'mal_croppe': {'main_port_id': 25935949, 'sub_port_id': 25936606, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472309, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'papier': {'main_port_id': 25935949, 'sub_port_id': 25936607, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472310, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}, 'environnement': {'main_port_id': 25935949, 'sub_port_id': 25936608, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472311, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25936597 , 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=25935949 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 (25936597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936598 , 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=25935949 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 (25936598) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936599 , 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=25935949 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 (25936599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936600 , 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=25935949 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 (25936600) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936601 , 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=25935949 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 (25936601) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936602 , 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=25935949 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 (25936602) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936603 , 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=25935949 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 (25936603) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936604 , 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=25935949 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 (25936604) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936605 , 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=25935949 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 (25936605) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936606 , 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=25935949 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 (25936606) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936607 , 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=25935949 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 (25936607) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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 25936608 , 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=25935949 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 (25936608) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25935949) result : ((1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,)) 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`=25935949 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) 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`=25935949 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__13082025_05_02_24_10134_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[25935949, 25936610, 4417, 0.5, 2107753020, 979], [25935949, 25936611, 4417, 0.5, 702398920, 979], [25935949, 25936612, 4417, 0.5, 2107753024, 979], [25935949, 25936613, 4417, 0.5, 2107752406, 979], [25935949, 25936614, 4417, 0.5, 2107752385, 979], [25935949, 25936615, 4417, 0.5, 492628673, 979], [25935949, 25936616, 4417, 0.5, 492725882, 979], [25935949, 25936617, 4417, 0.5, 492777938, 979], [25935949, 25936618, 4417, 0.5, 493202403, 979], [25935949, 25936619, 4417, 0.5, 2107755527, 979], [25935949, 25936620, 4417, 0.5, 492668766, 979], [25935949, 25936621, 4417, 0.5, 493012381, 979]] 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`=25935949 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) 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`=25935949 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25935949, 'sub_port_id': 25936610, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472312, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'cartonnette': {'main_port_id': 25935949, 'sub_port_id': 25936611, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472313, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'Carton_brun': {'main_port_id': 25935949, 'sub_port_id': 25936612, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472314, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'autre_refus': {'main_port_id': 25935949, 'sub_port_id': 25936613, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472315, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25935949, 'sub_port_id': 25936614, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472316, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'metal': {'main_port_id': 25935949, 'sub_port_id': 25936615, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472317, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'plastique': {'main_port_id': 25935949, 'sub_port_id': 25936616, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472318, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'flou': {'main_port_id': 25935949, 'sub_port_id': 25936617, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472319, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'kraft': {'main_port_id': 25935949, 'sub_port_id': 25936618, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472320, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'mal_croppe': {'main_port_id': 25935949, 'sub_port_id': 25936619, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472321, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'papier': {'main_port_id': 25935949, 'sub_port_id': 25936620, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472322, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}, 'environnement': {'main_port_id': 25935949, 'sub_port_id': 25936621, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17472323, 'last_updated_at': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 13, 15, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 13, 15, 14, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936606 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936607 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25936621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25936608 lien utilise dans velours : https://www.fotonower.com/velours/25936610,25936611,25936612,25936613,25936614,25936615,25936616,25936617,25936618,25936619,25936620,25936621?tags=Carton_gris,cartonnette,Carton_brun,autre_refus,Teint_Dans_La_Masse,metal,plastique,flou,kraft,mal_croppe,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25935949]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] map_info['map_portfolio_photo'] : {25935949: [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827]} final : False mtd_id 4302 list_pids : [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] Looping around the photos to save general results len do output : 1 /25935949. 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, '3518338') ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25935949', "{'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608}", None, None, None, None, '3518338'), ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338')] time used for this insertion : 0.015503883361816406 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.007545232772827 time spend to save output : 0.015927791595458984 total time spend for step 1 : 2.023473024368286 step2:final Wed Aug 13 15:14:29 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 (25935949) 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 25935949 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376745905,1376745903,1376745902,1376745901,1376745899,1376745894,1376745892,1376745884,1376745882,1376745880,1376745878,1376745872,1376745859,1376745847,1376745845,1376745842,1376745839,1376745828,1376745827); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25935949]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} new output for save of step final : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] map_info['map_portfolio_photo'] : {25935949: [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827]} final : False mtd_id 4302 list_pids : [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] Looping around the photos to save general results len do output : 19 /1376745905.Didn't retrieve data . /1376745903.Didn't retrieve data . /1376745902.Didn't retrieve data . /1376745901.Didn't retrieve data . /1376745899.Didn't retrieve data . /1376745894.Didn't retrieve data . /1376745892.Didn't retrieve data . /1376745884.Didn't retrieve data . /1376745882.Didn't retrieve data . /1376745880.Didn't retrieve data . /1376745878.Didn't retrieve data . /1376745872.Didn't retrieve data . /1376745859.Didn't retrieve data . /1376745847.Didn't retrieve data . /1376745845.Didn't retrieve data . /1376745842.Didn't retrieve data . /1376745839.Didn't retrieve data . /1376745828.Didn't retrieve data . /1376745827.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, '3518338') ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '25935949', '1376745905', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745903', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745902', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745901', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745899', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745894', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745892', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745884', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745882', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745880', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745878', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745872', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745859', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745847', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745845', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745842', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745839', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745828', '0.0', None, None, None, None, '3518338'), ('4302', '25935949', '1376745827', '0.0', None, None, None, None, '3518338')] time used for this insertion : 0.01614689826965332 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.014481544494628906 time spend to save output : 0.016855716705322266 total time spend for step 2 : 0.03133726119995117 step3:velours_tree Wed Aug 13 15:14:29 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 : {25935949: [{'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608}]} input_args_next_step : {25935949: ()} output_args : {25935949: [{'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608}]} args : 25935949 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25935949) 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([25935949]) 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.32651519775390625 time spend to save output : 8.273124694824219e-05 total time spend for step 3 : 0.3265979290008545 step4:send_mail_cod Wed Aug 13 15:14:30 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 : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} input_args_next_step : {1376745905: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745905 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745903 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745902 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745901 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745899 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745894 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745892 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745884 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745882 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745880 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745878 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745872 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745859 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745847 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745845 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745842 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745839 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745828 depend.output_id : 0 input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ()} output_args : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',)} args : 1376745827 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 : {25935949: [{'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608}]} input_args_next_step : {1376745905: ('0.0',), 1376745903: ('0.0',), 1376745902: ('0.0',), 1376745901: ('0.0',), 1376745899: ('0.0',), 1376745894: ('0.0',), 1376745892: ('0.0',), 1376745884: ('0.0',), 1376745882: ('0.0',), 1376745880: ('0.0',), 1376745878: ('0.0',), 1376745872: ('0.0',), 1376745859: ('0.0',), 1376745847: ('0.0',), 1376745845: ('0.0',), 1376745842: ('0.0',), 1376745839: ('0.0',), 1376745828: ('0.0',), 1376745827: ('0.0',), 25935949: ()} output_args : {25935949: [{'Carton_gris': 25936597, 'cartonnette': 25936598, 'Carton_brun': 25936599, 'autre_refus': 25936600, 'Teint_Dans_La_Masse': 25936601, 'metal': 25936602, 'plastique': 25936603, 'flou': 25936604, 'kraft': 25936605, 'mal_croppe': 25936606, 'papier': 25936607, 'environnement': 25936608}]} args : 25935949 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 :20, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25935949) 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 ph WHERE photo_id IN (1376745905,1376745903,1376745902,1376745901,1376745899,1376745894,1376745892,1376745884,1376745882,1376745880,1376745878,1376745872,1376745859,1376745847,1376745845,1376745842,1376745839,1376745828,1376745827) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376745827 begin to download photo : 1376745845 begin to download photo : 1376745878 begin to download photo : 1376745892 begin to download photo : 1376745902 download finish for photo 1376745827 begin to download photo : 1376745828 download finish for photo 1376745902 begin to download photo : 1376745903 download finish for photo 1376745845 begin to download photo : 1376745847 download finish for photo 1376745892 begin to download photo : 1376745894 download finish for photo 1376745847 begin to download photo : 1376745859 download finish for photo 1376745903 begin to download photo : 1376745905 download finish for photo 1376745894 begin to download photo : 1376745899 download finish for photo 1376745905 download finish for photo 1376745859 begin to download photo : 1376745872 download finish for photo 1376745899 begin to download photo : 1376745901 download finish for photo 1376745872 download finish for photo 1376745901 download finish for photo 1376745828 begin to download photo : 1376745839 download finish for photo 1376745839 begin to download photo : 1376745842 download finish for photo 1376745842 download finish for photo 1376745878 begin to download photo : 1376745880 download finish for photo 1376745880 begin to download photo : 1376745882 download finish for photo 1376745882 begin to download photo : 1376745884 download finish for photo 1376745884 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette259365981755090872/ imagette259366001755090872/ imagette259366021755090872/ imagette259366031755090872/ imagette259366041755090872/ imagette259366051755090872/ imagette259366061755090872/ imagette259365971755090872/ imagette259365991755090872/ imagette259366011755090872/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P25935949_13-08-2025_15_14_32.pdf Dont find os.environ['TEMPS'] 25936598 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259365981755090872 25936600 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366001755090872 25936602 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366021755090872 25936603 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366031755090872 25936604 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366041755090872 25936605 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936605 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366051755090872 25936606 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366061755090872 25936597 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259365971755090872 25936599 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259365991755090872 25936601 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25936601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette259366011755090872 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25935949 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25936610,25936611,25936612,25936613,25936614,25936615,25936616,25936617,25936618,25936619,25936620,25936621?tags=Carton_gris,cartonnette,Carton_brun,autre_refus,Teint_Dans_La_Masse,metal,plastique,flou,kraft,mal_croppe,papier,environnement Dont find os.environ['TEMPS'] your option no_mail is active, we will not send the real mail to your client args[1376745905] : ('0.0',) no score found for photo 1376745905 We are sending mail with results at report@fotonower.com args[1376745903] : ('0.0',) no score found for photo 1376745903 We are sending mail with results at report@fotonower.com args[1376745902] : ('0.0',) no score found for photo 1376745902 We are sending mail with results at report@fotonower.com args[1376745901] : ('0.0',) no score found for photo 1376745901 We are sending mail with results at report@fotonower.com args[1376745899] : ('0.0',) no score found for photo 1376745899 We are sending mail with results at report@fotonower.com args[1376745894] : ('0.0',) no score found for photo 1376745894 We are sending mail with results at report@fotonower.com args[1376745892] : ('0.0',) no score found for photo 1376745892 We are sending mail with results at report@fotonower.com args[1376745884] : ('0.0',) no score found for photo 1376745884 We are sending mail with results at report@fotonower.com args[1376745882] : ('0.0',) no score found for photo 1376745882 We are sending mail with results at report@fotonower.com args[1376745880] : ('0.0',) no score found for photo 1376745880 We are sending mail with results at report@fotonower.com args[1376745878] : ('0.0',) no score found for photo 1376745878 We are sending mail with results at report@fotonower.com args[1376745872] : ('0.0',) no score found for photo 1376745872 We are sending mail with results at report@fotonower.com args[1376745859] : ('0.0',) no score found for photo 1376745859 We are sending mail with results at report@fotonower.com args[1376745847] : ('0.0',) no score found for photo 1376745847 We are sending mail with results at report@fotonower.com args[1376745845] : ('0.0',) no score found for photo 1376745845 We are sending mail with results at report@fotonower.com args[1376745842] : ('0.0',) no score found for photo 1376745842 We are sending mail with results at report@fotonower.com args[1376745839] : ('0.0',) no score found for photo 1376745839 We are sending mail with results at report@fotonower.com args[1376745828] : ('0.0',) no score found for photo 1376745828 We are sending mail with results at report@fotonower.com args[1376745827] : ('0.0',) no score found for photo 1376745827 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 Dont find os.environ['TEMPS'] SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25935949 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_P25935949_13-08-2025_15_14_32.pdf results_Auto_P25935949_13-08-2025_15_14_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935949_13-08-2025_15_14_32.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','25935949','results_Auto_P25935949_13-08-2025_15_14_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935949_13-08-2025_15_14_32.pdf','pdf','','0.15','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25935949]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] map_info['map_portfolio_photo'] : {25935949: [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827]} final : False mtd_id 4302 list_pids : [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] 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, '3518338') ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '25935949', '1376745905', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338')] time used for this insertion : 0.014681816101074219 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.396036148071289 time spend to save output : 0.014993906021118164 total time spend for step 4 : 3.4110300540924072 step5:split_time_score Wed Aug 13 15:14: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 : ['25935949'] 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 : [('25935949',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25935949) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376745902: {'path': 'temp/1755090870_25449_1376745902_a79c6894606c66191b242957f158e1d5.jpg', 'extension': 'jpg'}, 1376745903: {'path': 'temp/1755090870_25449_1376745903_801705ba2f3c1019a2588fbb0198a09b.jpg', 'extension': 'jpg'}, 1376745905: {'path': 'temp/1755090870_25449_1376745905_15993e63350024558973d60e0f3cada8.jpg', 'extension': 'jpg'}, 1376745845: {'path': 'temp/1755090870_25449_1376745845_8da271399c1118bf667a2fb8418f641a.jpg', 'extension': 'jpg'}, 1376745847: {'path': 'temp/1755090870_25449_1376745847_f068f6ea473c512b3f8264b1bf563c86.jpg', 'extension': 'jpg'}, 1376745859: {'path': 'temp/1755090870_25449_1376745859_b536c7ee7265758de50217cb921ad82e.jpg', 'extension': 'jpg'}, 1376745872: {'path': 'temp/1755090870_25449_1376745872_48c645a55d57726c9df102ec348be81f.jpg', 'extension': 'jpg'}, 1376745892: {'path': 'temp/1755090870_25449_1376745892_9085028f1ecebcb74770eb8f72d9cd57.jpg', 'extension': 'jpg'}, 1376745894: {'path': 'temp/1755090870_25449_1376745894_5fa8e6801e9c92d5f22468972f8ff8bc.jpg', 'extension': 'jpg'}, 1376745899: {'path': 'temp/1755090870_25449_1376745899_e72a5b3ffb8bb4b1474630c88666b2fa.jpg', 'extension': 'jpg'}, 1376745901: {'path': 'temp/1755090870_25449_1376745901_cfc29cc5648945c9d6f33545b2130bc7.jpg', 'extension': 'jpg'}, 1376745827: {'path': 'temp/1755090870_25449_1376745827_5727396860237652f6cc91300694ca11.jpg', 'extension': 'jpg'}, 1376745828: {'path': 'temp/1755090870_25449_1376745828_ffe9a27045aa8ac7d2ff0c49f97125be.jpg', 'extension': 'jpg'}, 1376745839: {'path': 'temp/1755090870_25449_1376745839_c23bfbde83437522b3ebd1b87a761f06.jpg', 'extension': 'jpg'}, 1376745842: {'path': 'temp/1755090870_25449_1376745842_102feb2845ce811e5c5df674072ab6e8.jpg', 'extension': 'jpg'}, 1376745878: {'path': 'temp/1755090870_25449_1376745878_2d1328e19f5769d88b46e38a881dd142.jpg', 'extension': 'jpg'}, 1376745880: {'path': 'temp/1755090870_25449_1376745880_db2d07fcdfb6c5776e9f9f0ee7396874.jpg', 'extension': 'jpg'}, 1376745882: {'path': 'temp/1755090870_25449_1376745882_2bb0671e626ce781c4a1f15d87f9574b.jpg', 'extension': 'jpg'}, 1376745884: {'path': 'temp/1755090870_25449_1376745884_66ed35ea74bae462ff4cc209643bf30b.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 = 25935949; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25935949 group by h (('05', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25935949 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 (25935949) 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 (25935949) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13082025 25935949 Nombre de photos uploadées : 19 / 23040 (0%) 13082025 25935949 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 13082025 25935949 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1376745905, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/13/15993e63350024558973d60e0f3cada8.jpg', 'username': None, 'uploaded_at': 1755079912, 'text': 'image_13082025_05_02_24_10132.jpg'}, {'photo_id': 1376745903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/13/801705ba2f3c1019a2588fbb0198a09b.jpg', 'username': None, 'uploaded_at': 1755079912, 'text': 'image_13082025_05_06_04_10145.jpg'}, {'photo_id': 1376745902, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/13/a79c6894606c66191b242957f158e1d5.jpg', 'username': None, 'uploaded_at': 1755079912, 'text': 'image_13082025_05_06_14_10134.jpg'}, {'photo_id': 1376745901, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/13/cfc29cc5648945c9d6f33545b2130bc7.jpg', 'username': None, 'uploaded_at': 1755079912, 'text': 'image_13082025_05_08_13_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 6.4373016357421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010671615600585938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25935949, '2025-08-13' ) 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-08-13' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2111483,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.19587063789367676 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= 2111483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935930, 'dashboard_result_id': 13941118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935933, 'dashboard_result_id': 13941119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935936, 'dashboard_result_id': 13941120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935939, 'dashboard_result_id': 13941121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935942, 'dashboard_result_id': 13941122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935945, 'dashboard_result_id': 13941123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935949, 'dashboard_result_id': 13941124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935952, 'dashboard_result_id': 13941125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935958, 'dashboard_result_id': 13941126, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935964, 'dashboard_result_id': 13941127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934442, 'dashboard_result_id': 13941128, '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_P25934442_13-08-2025_13_01_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934459, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935967, 'dashboard_result_id': 13941129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935970, 'dashboard_result_id': 13941130, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935972, 'dashboard_result_id': 13941131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934918, 'dashboard_result_id': 13941132, '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_P25934918_13-08-2025_14_01_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934932, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935975, 'dashboard_result_id': 13941133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934137, 'dashboard_result_id': 13941134, '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_P25934137_13-08-2025_11_01_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934178, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934345, 'dashboard_result_id': 13941135, '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_P25934345_13-08-2025_12_01_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25934348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934359, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934139, 'dashboard_result_id': 13941136, '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_P25934139_13-08-2025_11_00_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934152, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934513, 'dashboard_result_id': 13941137, '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_P25934513_13-08-2025_13_17_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25934514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934525, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934542, 'dashboard_result_id': 13941138, '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_P25934542_13-08-2025_13_21_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934554, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25934663, 'dashboard_result_id': 13941139, '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_P25934663_13-08-2025_13_37_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934675, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935085, 'dashboard_result_id': 13941140, '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_P25935085_13-08-2025_14_09_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935098, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935405, 'dashboard_result_id': 13941141, '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_P25935405_13-08-2025_14_29_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935427, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935977, 'dashboard_result_id': 13941142, '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_P25935977_13-08-2025_15_09_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936227, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25935663, 'dashboard_result_id': 13941143, '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_P25935663_13-08-2025_14_43_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935675, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25936044, 'dashboard_result_id': 13941144, '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_P25936044_13-08-2025_15_07_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936091, 'pht': 3726}}"}, {'dashboat_entry_day': 2111483, 'dashboard_run_id': 2119303, 'mtr_portfolio_id': 25936045, 'dashboard_result_id': 13941145, '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_P25936045_13-08-2025_15_12_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936057, '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 = 25935930 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 = 25935930 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935930 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25935930%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935930 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 25935930 and dashboard_run_id = 2119303 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 = 25935933 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 = 25935933 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935933 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25935933%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 25935933 and dashboard_run_id = 2119303 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 = 25935936 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 = 25935936 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935936 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25935936%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935936 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 25935936 and dashboard_run_id = 2119303 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 = 25935939 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 = 25935939 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 = 25935939 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935939 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 = 25935939 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 = 25935939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935939_13-08-2025_15_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935939 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_P25935939_13-08-2025_15_01_35.pdf'}" where mtr_portfolio_id = 25935939 and dashboard_run_id = 2119303 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 = 25935942 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 = 25935942 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935942 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25935942%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 25935942 and dashboard_run_id = 2119303 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 = 25935945 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 = 25935945 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935945 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25935945%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935945 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 25935945 and dashboard_run_id = 2119303 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 = 25935949 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 = 25935949 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 = 25935949 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935949 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 = 25935949 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 = 25935949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935949_13-08-2025_15_14_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935949 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_P25935949_13-08-2025_15_14_32.pdf'}" where mtr_portfolio_id = 25935949 and dashboard_run_id = 2119303 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 = 25935952 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 = 25935952 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 = 25935952 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935952 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 = 25935952 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 = 25935952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935952_13-08-2025_15_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935952 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_P25935952_13-08-2025_15_14_03.pdf'}" where mtr_portfolio_id = 25935952 and dashboard_run_id = 2119303 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 = 25935958 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 = 25935958 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 = 25935958 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935958 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 = 25935958 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 = 25935958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935958_13-08-2025_15_13_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935958 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_P25935958_13-08-2025_15_13_35.pdf'}" where mtr_portfolio_id = 25935958 and dashboard_run_id = 2119303 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 = 25935964 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 = 25935964 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 = 25935964 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935964 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 = 25935964 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 = 25935964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935964_13-08-2025_15_13_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935964 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_P25935964_13-08-2025_15_13_05.pdf'}" where mtr_portfolio_id = 25935964 and dashboard_run_id = 2119303 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 = 25934442 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 = 25934442 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 = 25934442 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934442 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 = 25934442 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 = 25934442 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934442_13-08-2025_13_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934442 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_P25934442_13-08-2025_13_01_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934459, 'pht': 3726}}" where mtr_portfolio_id = 25934442 and dashboard_run_id = 2119303 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 = 25935967 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 = 25935967 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 = 25935967 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935967 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 = 25935967 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 = 25935967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935967_13-08-2025_15_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935967 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_P25935967_13-08-2025_15_12_02.pdf'}" where mtr_portfolio_id = 25935967 and dashboard_run_id = 2119303 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 = 25935970 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 = 25935970 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 = 25935970 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935970 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 = 25935970 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 = 25935970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935970_13-08-2025_15_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935970 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_P25935970_13-08-2025_15_10_31.pdf'}" where mtr_portfolio_id = 25935970 and dashboard_run_id = 2119303 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 = 25935972 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 = 25935972 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 = 25935972 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935972 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 = 25935972 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 = 25935972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935972_13-08-2025_15_11_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935972 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_P25935972_13-08-2025_15_11_30.pdf'}" where mtr_portfolio_id = 25935972 and dashboard_run_id = 2119303 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 = 25934918 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 = 25934918 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 = 25934918 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934918 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 = 25934918 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 = 25934918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934918_13-08-2025_14_01_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934918 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_P25934918_13-08-2025_14_01_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934932, 'pht': 3726}}" where mtr_portfolio_id = 25934918 and dashboard_run_id = 2119303 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 = 25935975 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 = 25935975 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 = 25935975 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25935975 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 = 25935975 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 = 25935975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935975_13-08-2025_15_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935975 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_P25935975_13-08-2025_15_10_00.pdf'}" where mtr_portfolio_id = 25935975 and dashboard_run_id = 2119303 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 = 25934137 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 = 25934137 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 = 25934137 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934137 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 = 25934137 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 = 25934137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934137_13-08-2025_11_01_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934137 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_P25934137_13-08-2025_11_01_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934178, 'pht': 3726}}" where mtr_portfolio_id = 25934137 and dashboard_run_id = 2119303 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 = 25934345 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 = 25934345 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 = 25934345 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934345 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 = 25934345 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 = 25934345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934345_13-08-2025_12_01_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934345 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_P25934345_13-08-2025_12_01_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25934348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934359, 'pht': 3726}}" where mtr_portfolio_id = 25934345 and dashboard_run_id = 2119303 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 = 25934139 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 = 25934139 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 = 25934139 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934139 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 = 25934139 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 = 25934139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934139_13-08-2025_11_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934139 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_P25934139_13-08-2025_11_00_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934152, 'pht': 3726}}" where mtr_portfolio_id = 25934139 and dashboard_run_id = 2119303 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 = 25934513 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 = 25934513 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 = 25934513 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934513 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 = 25934513 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 = 25934513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934513_13-08-2025_13_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934513 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_P25934513_13-08-2025_13_17_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25934514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934525, 'pht': 3726}}" where mtr_portfolio_id = 25934513 and dashboard_run_id = 2119303 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 = 25934542 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 = 25934542 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 = 25934542 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934542 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 = 25934542 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 = 25934542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934542_13-08-2025_13_21_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934542 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_P25934542_13-08-2025_13_21_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934554, 'pht': 3726}}" where mtr_portfolio_id = 25934542 and dashboard_run_id = 2119303 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 = 25934663 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 = 25934663 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 = 25934663 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25934663 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 = 25934663 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 = 25934663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25934663_13-08-2025_13_37_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25934663 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_P25934663_13-08-2025_13_37_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25934664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25934665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25934666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25934667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25934668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25934669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25934670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25934671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25934672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25934673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25934674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25934675, 'pht': 3726}}" where mtr_portfolio_id = 25934663 and dashboard_run_id = 2119303 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 = 25935085 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': 3517879, 'mtr_portfolio_id': 25935085, 'created_at': datetime.datetime(2025, 8, 13, 14, 9, 31), 'result': '0.048939354374723514', 'result_long': None, 'result_double': None}] Qualite : 0.048939354374723514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935085_13-08-2025_14_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935085 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_P25935085_13-08-2025_14_09_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935098, 'pht': 3726}}" where mtr_portfolio_id = 25935085 and dashboard_run_id = 2119303 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`=25935085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941140, 0.048939354374723514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935085_13-08-2025_14_09_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935098, '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 = 25935405 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': 3518024, 'mtr_portfolio_id': 25935405, 'created_at': datetime.datetime(2025, 8, 13, 14, 29, 30), 'result': '0.07268717194542583', 'result_long': None, 'result_double': None}] Qualite : 0.07268717194542583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935405_13-08-2025_14_29_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935405 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_P25935405_13-08-2025_14_29_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935427, 'pht': 3726}}" where mtr_portfolio_id = 25935405 and dashboard_run_id = 2119303 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`=25935405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941141, 0.07268717194542583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935405_13-08-2025_14_29_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935427, '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 = 25935977 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': 3518346, 'mtr_portfolio_id': 25935977, 'created_at': datetime.datetime(2025, 8, 13, 15, 9, 29), 'result': '0.041068805150732114', 'result_long': None, 'result_double': None}] Qualite : 0.041068805150732114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935977_13-08-2025_15_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935977 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_P25935977_13-08-2025_15_09_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936227, 'pht': 3726}}" where mtr_portfolio_id = 25935977 and dashboard_run_id = 2119305 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`=25935977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941142, 0.041068805150732114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935977_13-08-2025_15_09_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936227, '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 = 25935663 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': 3518151, 'mtr_portfolio_id': 25935663, 'created_at': datetime.datetime(2025, 8, 13, 14, 43, 33), 'result': '0.014974130365863583', 'result_long': None, 'result_double': None}] Qualite : 0.014974130365863583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25935663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935663_13-08-2025_14_43_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25935663 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_P25935663_13-08-2025_14_43_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935675, 'pht': 3726}}" where mtr_portfolio_id = 25935663 and dashboard_run_id = 2119305 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`=25935663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941143, 0.014974130365863583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25935663_13-08-2025_14_43_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25935664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25935665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25935666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25935667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25935668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25935669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25935670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25935671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25935672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25935673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25935674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25935675, '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 = 25936044 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': 3518394, 'mtr_portfolio_id': 25936044, 'created_at': datetime.datetime(2025, 8, 13, 15, 7, 31), 'result': '0.06281819863072642', 'result_long': None, 'result_double': None}] Qualite : 0.06281819863072642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25936044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25936044_13-08-2025_15_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25936044 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_P25936044_13-08-2025_15_07_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936091, 'pht': 3726}}" where mtr_portfolio_id = 25936044 and dashboard_run_id = 2119305 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`=25936044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941144, 0.06281819863072642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25936044_13-08-2025_15_07_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936091, '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 = 25936045 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': 3518395, 'mtr_portfolio_id': 25936045, 'created_at': datetime.datetime(2025, 8, 13, 15, 12, 31), 'result': '0.060216598289100164', 'result_long': None, 'result_double': None}] Qualite : 0.060216598289100164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25936045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25936045_13-08-2025_15_12_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25936045 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_P25936045_13-08-2025_15_12_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936057, 'pht': 3726}}" where mtr_portfolio_id = 25936045 and dashboard_run_id = 2119305 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`=25936045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13941145, 0.060216598289100164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25936045_13-08-2025_15_12_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25936046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25936047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25936048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25936049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25936050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25936051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25936052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25936053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25936054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25936055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25936056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25936057, '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 (25935930,25935933,25935936,25935939,25935942,25935945,25935949,25935952,25935958,25935964,25934442,25935967,25935970,25935972,25934918,25935975,25934137,25934345,25934139,25934513,25934542,25934663,25935085,25935405,25935977,25935663,25936044,25936045) result : ((1376741462,), (1376741465,), (1376741469,), (1376741473,), (1376741477,), (1376741480,), (1376741483,), (1376741488,), (1376741492,), (1376741494,), (1376741496,), (1376741498,), (1376741502,), (1376741512,), (1376741520,), (1376741530,), (1376741533,), (1376741535,), (1376741536,), (1376741550,), (1376741552,), (1376741553,), (1376741554,), (1376741556,), (1376741560,), (1376741568,), (1376741572,), (1376741574,), (1376741578,), (1376741581,), (1376741582,), (1376741594,), (1376741596,), (1376741600,), (1376741602,), (1376741604,), (1376741606,), (1376741613,), (1376741615,), (1376741620,), (1376741624,), (1376741628,), (1376741631,), (1376741636,), (1376741637,), (1376741639,), (1376741644,), (1376741647,), (1376741649,), (1376741662,), (1376741666,), (1376741669,), (1376741670,), (1376741671,), (1376741672,), (1376741678,), (1376741681,), (1376741685,), (1376741689,), (1376741692,), (1376741694,), (1376741696,), (1376741067,), (1376741075,), (1376741077,), (1376741080,), (1376741083,), (1376741086,), (1376741090,), (1376741099,), (1376741103,), (1376741105,), (1376741109,), (1376741111,), (1376741115,), (1376741124,), (1376741127,), (1376741129,), (1376741132,), (1376741134,), (1376741137,), (1376741145,), (1376741147,), (1376741149,), (1376741151,), (1376741154,), (1376741156,), (1376741161,), (1376741164,), (1376741167,), (1376741170,), (1376741172,), (1376741175,), (1376741187,), (1376741189,), (1376741191,), (1376741195,), (1376741198,), (1376741200,), (1376741219,), (1376741221,), (1376741223,), (1376741225,), (1376741227,), (1376741228,), (1376741234,), (1376741237,), (1376741239,), (1376741241,), (1376741243,), (1376741245,), (1376741254,), (1376741256,), (1376741259,), (1376741262,), (1376741265,), (1376741267,), (1376741273,), (1376741276,), (1376741279,), (1376741282,), (1376741285,), (1376741288,), (1376741296,), (1376741299,), (1376741302,), (1376741306,), (1376741309,), (1376741312,), (1376741324,), (1376741326,), (1376741328,), (1376741331,), (1376741332,), (1376741334,), (1376741340,), (1376741342,), (1376741346,), (1376741350,), (1376741354,), (1376741357,), (1376741364,), (1376741366,), (1376741369,), (1376741374,), (1376741376,), (1376741379,), (1376741386,), (1376741388,), (1376741393,), (1376741394,), (1376741397,), (1376741399,), (1376741403,), (1376741405,), (1376741409,), (1376741412,), (1376741415,), (1376741417,), (1376741424,), (1376741427,), (1376741430,), (1376741435,), (1376741437,), (1376741439,), (1376741452,), (1376741456,), (1376741458,), (1376741460,), (1376741461,), (1376744015,), (1376744019,), (1376744026,), (1376744034,), (1376744055,), (1376744060,), (1376744062,), (1376744064,), (1376744068,), (1376744079,), (1376744081,), (1376744083,), (1376744086,), (1376744088,), (1376744090,), (1376744091,), (1376744093,), (1376744094,), (1376744096,), (1376744100,), (1376744109,), (1376744114,), (1376744116,), (1376744118,), (1376744120,), (1376744124,), (1376744126,), (1376744130,), (1376744138,), (1376744141,), (1376744144,), (1376744147,), (1376744150,), (1376744155,), (1376744156,), (1376744157,), (1376744159,), (1376744168,), (1376744171,), (1376744177,), (1376744179,), (1376744181,), (1376744183,), (1376744185,), (1376744189,), (1376744201,), (1376744203,), (1376744205,), (1376744206,), (1376744209,), (1376744213,), (1376744214,), (1376744217,), (1376744220,), (1376744221,), (1376744222,), (1376744223,), (1376744225,), (1376744226,), (1376744229,), (1376744237,), (1376744240,), (1376744243,), (1376744246,), (1376744247,), (1376744248,), (1376744252,), (1376744254,), (1376744256,), (1376744273,), (1376744274,), (1376744276,), (1376744277,), (1376744279,), (1376744292,), (1376744294,), (1376744296,), (1376744298,), (1376744300,), (1376744302,), (1376747885,), (1376747947,), (1376747972,), (1376747975,), (1376747976,), (1376747978,), (1376747980,), (1376747996,), (1376747998,), (1376748000,), (1376748003,), (1376748022,), (1376748045,), (1376748047,), (1376748048,), (1376748076,), (1376748070,), (1376748074,), (1376748096,), (1376748116,), (1376748150,), (1376748154,), (1376748156,), (1376748320,), (1376748326,), (1376748328,), (1376748331,), (1376748333,), (1376748366,), (1376748367,), (1376748369,), (1376748388,), (1376748395,), (1376748438,), (1376748432,), (1376748434,), (1376748436,), (1376748457,), (1376748460,), (1376748462,), (1376748465,), (1376748469,), (1376748495,), (1376748497,), (1376748500,), (1376748503,), (1376748522,), (1376748525,), (1376748526,), (1376748529,), (1376748537,), (1376748554,), (1376748555,), (1376748557,), (1376748560,), (1376748568,), (1376748578,), (1376748586,), (1376748593,), (1376748595,), (1376748597,), (1376748606,), (1376748607,), (1376748627,), (1376748631,), (1376748633,), (1376748635,), (1376748652,), (1376748654,), (1376748656,), (1376748704,), (1376748705,), (1376748726,), (1376748730,), (1376748732,), (1376748734,), (1376748759,), (1376748761,), (1376748786,), (1376748787,), (1376748790,), (1376748807,), (1376748808,), (1376748809,), (1376748812,), (1376748816,), (1376748849,), (1376741938,), (1376741940,), (1376741942,), (1376741943,), (1376741944,), (1376741948,), (1376741958,), (1376741962,), (1376741966,), (1376741969,), (1376741970,), (1376741973,), (1376741979,), (1376741981,), (1376741982,), (1376741985,), (1376741989,), (1376741992,), (1376742001,), (1376742003,), (1376742005,), (1376742006,), (1376742007,), (1376742010,), (1376742016,), (1376742021,), (1376742024,), (1376742026,), (1376742029,), (1376742032,), (1376742039,), (1376742042,), (1376742046,), (1376742050,), (1376742053,), (1376742056,), (1376742065,), (1376742066,), (1376742067,), (1376742070,), (1376742071,), (1376742072,), (1376742080,), (1376742082,), (1376742084,), (1376742087,), (1376742089,), (1376742091,), (1376742095,), (1376742100,), (1376742106,), (1376742110,), (1376742115,), (1376748833,), (1376748837,), (1376748839,), (1376748841,), (1376748843,), (1376748857,), (1376748858,), (1376748860,), (1376748863,), (1376748880,), (1376748885,), (1376748903,), (1376748928,), (1376748931,), (1376748934,), (1376748943,), (1376748953,), (1376748957,), (1376748960,), (1376748962,), (1376748977,), (1376748980,), (1376748998,), (1376749000,), (1376749002,), (1376749004,), (1376749019,), (1376749022,), (1376749024,), (1376749027,), (1376749029,), (1376749039,), (1376749040,), (1376749057,), (1376749060,), (1376749104,), (1376749131,), (1376749135,), (1376749146,), (1376749148,), (1376749317,), (1376749196,), (1376749227,), (1376749256,), (1376749286,), (1376749580,), (1376749608,), (1376749745,), (1376749776,), (1376749806,), (1376749839,), (1376749877,), (1376749955,), (1376749957,), (1376749959,), (1376749961,), (1376749978,), (1376749979,), (1376749994,), (1376749998,), (1376750050,), (1376750054,), (1376750067,), (1376750068,), (1376750069,), (1376750071,), (1376750089,), (1376750092,), (1376750094,), (1376750102,), (1376750104,), (1376750106,), (1376750115,), (1376750116,), (1376750118,), (1376750121,), (1376750130,), (1376750133,), (1376750135,), (1376750143,), (1376750147,), (1376750150,), (1376750152,), (1376750162,), (1376750164,), (1376750167,), (1376750176,), (1376750190,), (1376750193,), (1376750196,), (1376750200,), (1376750220,), (1376750221,), (1376750222,), (1376750226,), (1376750257,), (1376750633,), (1376750635,), (1376750637,), (1376750641,), (1376750663,), (1376750667,), (1376750669,), (1376750671,), (1376750674,), (1376750689,), (1376750691,), (1376750692,), (1376750715,), (1376750717,), (1376750721,), (1376750735,), (1376750736,), (1376750737,), (1376750739,), (1376750749,), (1376750752,), (1376750758,), (1376750761,), (1376750762,), (1376750764,), (1376750787,), (1376750789,), (1376750791,), (1376750808,), (1376750812,), (1376750813,), (1376750816,), (1376750825,), (1376750838,), (1376750840,), (1376750842,), (1376750846,), (1376750855,), (1376750862,), (1376750865,), (1376750867,), (1376750876,), (1376750878,), (1376750907,), (1376750910,), (1376750929,), (1376750932,), (1376750951,), (1376750952,), (1376750953,), (1376750955,), (1376750974,), (1376750977,), (1376750994,), (1376750995,), (1376750996,), (1376751038,), (1376746300,), (1376746301,), (1376746303,), (1376746309,), (1376746319,), (1376746321,), (1376746323,), (1376746325,), (1376746245,), (1376746258,), (1376746262,), (1376746264,), (1376746266,), (1376746278,), (1376746286,), (1376746288,), (1376746290,), (1376746292,), (1376746297,), (1376746298,), (1376746206,), (1376746208,), (1376746223,), (1376746224,), (1376746227,), (1376746228,), (1376746231,), (1376746232,), (1376746235,), (1376746236,), (1376746238,), (1376746239,), (1376746241,), (1376746242,), (1376746244,), (1376746275,), (1376746149,), (1376746150,), (1376746152,), (1376746156,), (1376746166,), (1376746173,), (1376746199,), (1376746200,), (1376746202,), (1376746075,), (1376746079,), (1376746087,), (1376746089,), (1376746092,), (1376746105,), (1376746108,), (1376746111,), (1376746114,), (1376746118,), (1376746137,), (1376746140,), (1376746143,), (1376746145,), (1376746146,), (1376746148,), (1376745927,), (1376745929,), (1376745932,), (1376745934,), (1376745936,), (1376745941,), (1376745944,), (1376745954,), (1376745827,), (1376745828,), (1376745839,), (1376745842,), (1376745845,), (1376745847,), (1376745859,), (1376745872,), (1376745878,), (1376745880,), (1376745882,), (1376745884,), (1376745892,), (1376745894,), (1376745899,), (1376745901,), (1376745902,), (1376745903,), (1376745905,), (1376745202,), (1376745231,), (1376745264,), (1376745298,), (1376745411,), (1376745416,), (1376745417,), (1376745419,), (1376745421,), (1376745424,), (1376745555,), (1376745569,), (1376745579,), (1376745581,), (1376745603,), (1376745614,), (1376745622,), (1376745623,), (1376745625,), (1376745628,), (1376745637,), (1376745640,), (1376745646,), (1376745647,), (1376745648,), (1376745651,), (1376745653,), (1376745655,), (1376745663,), (1376745666,), (1376745669,), (1376745672,), (1376745674,), (1376745677,), (1376745683,), (1376745684,), (1376745686,), (1376745694,), (1376745697,), (1376745703,), (1376745710,), (1376745714,), (1376745717,), (1376745719,), (1376745721,), (1376745728,), (1376745730,), (1376745733,), (1376745736,), (1376745739,), (1376745742,), (1376745748,), (1376745751,), (1376745759,), (1376745761,), (1376745763,), (1376745766,), (1376745775,), (1376745785,), (1376745788,), (1376745790,), (1376745792,), (1376745793,), (1376745797,), (1376745801,), (1376745803,), (1376745804,), (1376745807,), (1376745810,), (1376745821,), (1376745823,), (1376745825,), (1376745826,), (1376744584,), (1376744586,), (1376744611,), (1376744614,), (1376744640,), (1376744642,), (1376744644,), (1376744645,), (1376744647,), (1376744649,), (1376744652,), (1376744655,), (1376744668,), (1376744671,), (1376744683,), (1376744693,), (1376744695,), (1376744697,), (1376744701,), (1376744703,), (1376744712,), (1376744715,), (1376744718,), (1376744720,), (1376744725,), (1376744727,), (1376744728,), (1376744731,), (1376744733,), (1376744736,), (1376744750,), (1376744752,), (1376744754,), (1376744757,), (1376744768,), (1376744771,), (1376744779,), (1376744780,), (1376744781,), (1376744782,), (1376744784,), (1376744787,), (1376744800,), (1376744804,), (1376744806,), (1376744808,), (1376744809,), (1376744811,), (1376744817,), (1376744819,), (1376744821,), (1376744824,), (1376744834,), (1376744836,), (1376744842,), (1376744844,), (1376744846,), (1376744849,), (1376744850,), (1376744851,), (1376744865,), (1376744866,), (1376744869,), (1376744871,), (1376744872,), (1376744874,), (1376744875,), (1376744877,), (1376744879,), (1376744881,), (1376744882,), (1376744885,), (1376744894,), (1376744897,), (1376744906,), (1376744908,), (1376744911,), (1376744913,), (1376744918,), (1376744927,), (1376744930,), (1376744933,), (1376744936,), (1376744938,), (1376744945,), (1376744949,), (1376744958,), (1376744960,), (1376744963,), (1376744998,), (1376745129,), (1376745168,), (1376744308,), (1376744317,), (1376744320,), (1376744323,), (1376744326,), (1376744330,), (1376744334,), (1376744337,), (1376744339,), (1376744341,), (1376744344,), (1376744347,), (1376744361,), (1376744366,), (1376744382,), (1376744384,), (1376744386,), (1376744391,), (1376744397,), (1376744408,), (1376744411,), (1376744415,), (1376744418,), (1376744421,), (1376744426,), (1376744428,), (1376744429,), (1376744431,), (1376744436,), (1376744446,), (1376744452,), (1376744456,), (1376744461,), (1376744464,), (1376744467,), (1376744469,), (1376744481,), (1376744484,), (1376744486,), (1376744488,), (1376744489,), (1376744490,), (1376744492,), (1376744496,), (1376744504,), (1376744507,), (1376744509,), (1376744511,), (1376744514,), (1376744516,), (1376744521,), (1376744523,), (1376744525,), (1376744528,), (1376744539,), (1376744543,), (1376744545,), (1376744547,), (1376744548,), (1376744549,), (1376744553,), (1376744562,), (1376744565,), (1376744568,), (1376744570,), (1376744572,), (1376744576,), (1376744578,), (1376744580,), (1376744582,), (1376744599,), (1376744600,), (1376744601,), (1376744603,), (1376744624,), (1376744625,), (1376744627,), (1376744638,), (1376743679,), (1376743681,), (1376743686,), (1376743688,), (1376743690,), (1376743699,), (1376743701,), (1376743704,), (1376743717,), (1376743746,), (1376743758,), (1376743760,), (1376743761,), (1376743763,), (1376743778,), (1376743780,), (1376743781,), (1376743782,), (1376743783,), (1376743790,), (1376743791,), (1376743792,), (1376743793,), (1376743794,), (1376743796,), (1376743800,), (1376743813,), (1376743816,), (1376743817,), (1376743819,), (1376743822,), (1376743824,), (1376743828,), (1376743830,), (1376743832,), (1376743834,), (1376743837,), (1376743847,), (1376743851,), (1376743854,), (1376743856,), (1376743858,), (1376743860,), (1376743864,), (1376743874,), (1376743875,), (1376743879,), (1376743880,), (1376743883,), (1376743885,), (1376743887,), (1376743890,), (1376743892,), (1376743895,), (1376743896,), (1376743899,), (1376743904,), (1376743906,), (1376743914,), (1376743916,), (1376743918,), (1376743920,), (1376743926,), (1376743928,), (1376743932,), (1376743934,), (1376743936,), (1376743938,), (1376743953,), (1376743954,), (1376743955,), (1376743957,), (1376743967,), (1376743975,), (1376743977,), (1376743979,), (1376743980,), (1376743981,), (1376743986,), (1376743990,), (1376743998,), (1376744000,), (1376744002,), (1376744005,), (1376744007,), (1376744009,), (1376744011,), (1376744013,), (1376743258,), (1376743260,), (1376743263,), (1376743284,), (1376743286,), (1376743289,), (1376743292,), (1376743295,), (1376743301,), (1376743306,), (1376743310,), (1376743314,), (1376743322,), (1376743325,), (1376743327,), (1376743329,), (1376743331,), (1376743333,), (1376743345,), (1376743347,), (1376743348,), (1376743349,), (1376743351,), (1376743359,), (1376743374,), (1376743376,), (1376743377,), (1376743378,), (1376743393,), (1376743450,), (1376743451,), (1376743453,), (1376743454,), (1376743455,), (1376743456,), (1376743457,), (1376743458,), (1376743459,), (1376743460,), (1376743479,), (1376743482,), (1376743484,), (1376743486,), (1376743487,), (1376743490,), (1376743494,), (1376743501,), (1376743503,), (1376743506,), (1376743508,), (1376743515,), (1376743518,), (1376743520,), (1376743521,), (1376743524,), (1376743527,), (1376743540,), (1376743541,), (1376743542,), (1376743543,), (1376743544,), (1376743546,), (1376743553,), (1376743556,), (1376743563,), (1376743566,), (1376743570,), (1376743574,), (1376743576,), (1376743578,), (1376743579,), (1376743580,), (1376743583,), (1376743589,), (1376743597,), (1376743600,), (1376743603,), (1376743606,), (1376743608,), (1376743612,), (1376743627,), (1376743628,), (1376743629,), (1376743631,), (1376743632,), (1376743633,), (1376743650,), (1376743651,), (1376743654,), (1376743655,), (1376743656,), (1376743658,), (1376743673,), (1376743675,), (1376743677,), (1376742118,), (1376742123,), (1376742124,), (1376742145,), (1376742147,), (1376742150,), (1376742153,), (1376742162,), (1376742165,), (1376742180,), (1376742210,), (1376742241,), (1376742351,), (1376742392,), (1376742424,), (1376742458,), (1376742489,), (1376742519,), (1376742613,), (1376742645,), (1376742675,), (1376742708,), (1376742738,), (1376742770,), (1376742816,), (1376742821,), (1376742825,), (1376742828,), (1376742830,), (1376742832,), (1376742836,), (1376742864,), (1376742900,), (1376742932,), (1376742965,), (1376742998,), (1376743102,), (1376743110,), (1376743121,), (1376743146,), (1376743148,), (1376743168,), (1376743209,), (1376743211,), (1376743213,), (1376743217,), (1376743220,), (1376743223,), (1376743227,), (1376743231,), (1376743233,), (1376743235,), (1376743238,), (1376743242,), (1376743251,), (1376743252,), (1376743255,), (1376743277,), (1376743280,), (1376743282,), (1376741697,), (1376741701,), (1376741704,), (1376741707,), (1376741712,), (1376741721,), (1376741724,), (1376741725,), (1376741727,), (1376741729,), (1376741731,), (1376741740,), (1376741743,), (1376741747,), (1376741750,), (1376741752,), (1376741754,), (1376741760,), (1376741762,), (1376741766,), (1376741768,), (1376741770,), (1376741773,), (1376741783,), (1376741786,), (1376741789,), (1376741791,), (1376741792,), (1376741793,), (1376741799,), (1376741803,), (1376741808,), (1376741812,), (1376741814,), (1376741816,), (1376741843,), (1376741846,), (1376741849,), (1376741852,), (1376741855,), (1376741858,), (1376741869,), (1376741873,), (1376741877,), (1376741879,), (1376741881,), (1376741883,), (1376741890,), (1376741894,), (1376741897,), (1376741901,), (1376741903,), (1376741905,), (1376741912,), (1376741916,), (1376741921,), (1376741924,), (1376741929,), (1376741932,), (1376750246,), (1376750250,), (1376750252,), (1376750254,), (1376750273,), (1376750274,), (1376750293,), (1376750297,), (1376750315,), (1376750316,), (1376750318,), (1376750319,), (1376750333,), (1376750334,), (1376750336,), (1376750345,), (1376750347,), (1376750348,), (1376750357,), (1376750358,), (1376750359,), (1376750364,), (1376750367,), (1376750370,), (1376750379,), (1376750384,), (1376750405,), (1376750407,), (1376750409,), (1376750412,), (1376750441,), (1376750444,), (1376750445,), (1376750447,), (1376750450,), (1376750467,), (1376750469,), (1376750480,), (1376750483,), (1376750485,), (1376750486,), (1376750488,), (1376750490,), (1376750497,), (1376750506,), (1376750509,), (1376750513,), (1376750516,), (1376750525,), (1376750527,), (1376750529,), (1376750531,), (1376750533,), (1376750541,), (1376750549,), (1376750553,), (1376750555,), (1376750569,), (1376750570,), (1376750571,), (1376750573,), (1376750577,), (1376750590,), (1376750594,), (1376750595,), (1376750597,), (1376750599,), (1376750607,), (1376750644,), (1376751020,), (1376751022,), (1376751025,), (1376751028,), (1376751036,), (1376751045,), (1376751046,), (1376751047,), (1376751049,), (1376751069,), (1376751073,), (1376751076,), (1376751092,), (1376751097,), (1376751099,), (1376751112,), (1376751116,), (1376751141,), (1376751143,), (1376751144,), (1376751168,), (1376751170,), (1376751194,), (1376751196,), (1376751198,), (1376751222,), (1376751245,), (1376751247,), (1376751264,), (1376751267,), (1376751268,), (1376751289,), (1376751291,), (1376751293,), (1376751295,), (1376751310,), (1376751313,), (1376751315,), (1376751323,), (1376751326,), (1376751344,), (1376751354,), (1376751356,), (1376751431,), (1376751468,), (1376752030,), (1376752034,), (1376752035,), (1376752088,), (1376751375,), (1376751380,), (1376751382,), (1376751398,), (1376751724,), (1376751753,), (1376751784,), (1376751814,), (1376751847,), (1376751877,), (1376751982,), (1376752013,), (1376752028,), (1376752048,), (1376752050,), (1376752057,), (1376752217,), (1376752222,), (1376752236,), (1376752307,), (1376752308,), (1376752309,), (1376752311,), (1376752331,), (1376752333,), (1376752335,), (1376752337,), (1376752352,), (1376752353,), (1376752355,), (1376752358,), (1376752367,), (1376752375,), (1376752377,), (1376752378,), (1376752401,), (1376752403,), (1376752405,), (1376752407,), (1376752424,), (1376752426,), (1376752427,), (1376752429,), (1376752432,), (1376752477,), (1376752479,), (1376752481,), (1376752509,), (1376752518,), (1376752520,), (1376752526,), (1376752534,), (1376752535,), (1376752537,), (1376752541,), (1376752549,), (1376752552,), (1376752563,), (1376752565,), (1376752567,), (1376752569,), (1376752572,), (1376752582,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13082025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25935949]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] map_info['map_portfolio_photo'] : {25935949: [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827]} final : True mtd_id 4302 list_pids : [1376745905, 1376745903, 1376745902, 1376745901, 1376745899, 1376745894, 1376745892, 1376745884, 1376745882, 1376745880, 1376745878, 1376745872, 1376745859, 1376745847, 1376745845, 1376745842, 1376745839, 1376745828, 1376745827] Looping around the photos to save general results len do output : 1 /25935949Didn'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, '3518338') ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338') ('4302', None, None, None, None, None, None, None, '3518338') ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25935949', 'None', None, None, None, None, '3518338'), ('4302', '25935949', '1376745905', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745903', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745902', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745901', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745899', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745894', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745892', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745884', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745882', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745880', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745878', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745872', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745859', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745847', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745845', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745842', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745839', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745828', None, None, None, None, None, '3518338'), ('4302', '25935949', '1376745827', None, None, None, None, None, '3518338')] time used for this insertion : 0.01448202133178711 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.8210530281066895 time spend to save output : 0.01473689079284668 total time spend for step 5 : 5.835789918899536 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 (3518338) 2.36user 1.90system 0:14.32elapsed 29%CPU (0avgtext+0avgdata 164112maxresident)k 144inputs+9784outputs (9major+77745minor)pagefaults 0swaps