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 : 1135533 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 (3586974) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3586974) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196382 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3586974'] with mtr_portfolio_ids : ['26196382'] and first list_photo_ids : [] new path : /proc/1135533/ Name: python3 Umask: 0002 State: R (running) Tgid: 1135533 Ngid: 0 Pid: 1135533 PPid: 1135532 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1135533 NSpid: 1135533 NSpgid: 1134967 NSsid: 1134967 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98792 kB VmRSS: 98792 kB RssAnon: 60160 kB RssFile: 38632 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 98 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1135533', 'Ngid': '0', 'Pid': '1135533', 'PPid': '1135532', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1135533', 'NSpid': '1135533', 'NSpgid': '1134967', 'NSsid': '1134967', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98792 kB', 'VmRSS': '98792 kB', 'RssAnon': '60160 kB', 'RssFile': '38632 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '98', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '1135533', '1107248', '0', '1107248', '866000', '98792', b'', 'marlene', '3586974') 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 (26196382) 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 (3586974 ) ) 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 (26196382) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1379171672, 'portfolio_id': 26196382}, {'photo_id': 1379171579, 'portfolio_id': 26196382}, {'photo_id': 1379171577, 'portfolio_id': 26196382}, {'photo_id': 1379171443, 'portfolio_id': 26196382}, {'photo_id': 1379171408, 'portfolio_id': 26196382}, {'photo_id': 1379171407, 'portfolio_id': 26196382}, {'photo_id': 1379171406, 'portfolio_id': 26196382}, {'photo_id': 1379171301, 'portfolio_id': 26196382}, {'photo_id': 1379171300, 'portfolio_id': 26196382}, {'photo_id': 1379171299, 'portfolio_id': 26196382}, {'photo_id': 1379171298, 'portfolio_id': 26196382}, {'photo_id': 1379171015, 'portfolio_id': 26196382}, {'photo_id': 1379171012, 'portfolio_id': 26196382}, {'photo_id': 1379170741, 'portfolio_id': 26196382}, {'photo_id': 1379170740, 'portfolio_id': 26196382}, {'photo_id': 1379170739, 'portfolio_id': 26196382}, {'photo_id': 1379170398, 'portfolio_id': 26196382}, {'photo_id': 1379170396, 'portfolio_id': 26196382}, {'photo_id': 1379170394, 'portfolio_id': 26196382}, {'photo_id': 1379169941, 'portfolio_id': 26196382}, {'photo_id': 1379169939, 'portfolio_id': 26196382}, {'photo_id': 1379169937, 'portfolio_id': 26196382}, {'photo_id': 1379169420, 'portfolio_id': 26196382}, {'photo_id': 1379168986, 'portfolio_id': 26196382}, {'photo_id': 1379168984, 'portfolio_id': 26196382}, {'photo_id': 1379168767, 'portfolio_id': 26196382}, {'photo_id': 1379168766, 'portfolio_id': 26196382}, {'photo_id': 1379168765, 'portfolio_id': 26196382}, {'photo_id': 1379168764, 'portfolio_id': 26196382}, {'photo_id': 1379168738, 'portfolio_id': 26196382}, {'photo_id': 1379168591, 'portfolio_id': 26196382}] map_portfolio_id_photo_id: {26196382: [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406, 1379171301, 1379171300, 1379171299, 1379171298, 1379171015, 1379171012, 1379170741, 1379170740, 1379170739, 1379170398, 1379170396, 1379170394, 1379169941, 1379169939, 1379169937, 1379169420, 1379168986, 1379168984, 1379168767, 1379168766, 1379168765, 1379168764, 1379168738, 1379168591]} ##### 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.015743255615234375 #### 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 Mon Aug 25 09:46: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26196382) 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 : 26196382 get user id for portfolio 26196382 get sub ptf for main ptf 26196382, type 3726 and hashtags ['metal', 'autre_refus', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'mal_croppe', 'plastique', 'flou', 'environnement', 'Carton_brun', 'papier', 'cartonnette'] 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`=26196382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','plastique','flou','environnement','Carton_brun','papier','cartonnette')) 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`=26196382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','plastique','flou','environnement','Carton_brun','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26196382, 'sub_port_id': 26196388, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641889, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'papier': {'main_port_id': 26196382, 'sub_port_id': 26196389, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641890, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'Carton_brun': {'main_port_id': 26196382, 'sub_port_id': 26196390, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641891, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'flou': {'main_port_id': 26196382, 'sub_port_id': 26196391, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641892, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'autre_refus': {'main_port_id': 26196382, 'sub_port_id': 26196392, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641893, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'kraft': {'main_port_id': 26196382, 'sub_port_id': 26196393, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641894, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'plastique': {'main_port_id': 26196382, 'sub_port_id': 26196394, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641895, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'mal_croppe': {'main_port_id': 26196382, 'sub_port_id': 26196395, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641896, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'metal': {'main_port_id': 26196382, 'sub_port_id': 26196396, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641897, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'Carton_gris': {'main_port_id': 26196382, 'sub_port_id': 26196397, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641898, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'cartonnette': {'main_port_id': 26196382, 'sub_port_id': 26196398, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641899, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 26196382, 'sub_port_id': 26196399, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641900, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196388 , 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=26196382 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 (26196388) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196389 , 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=26196382 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 (26196389) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196390 , 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=26196382 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 (26196390) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196391 , 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=26196382 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 (26196391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196392 , 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=26196382 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 (26196392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196393 , 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=26196382 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 (26196393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196394 , 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=26196382 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 (26196394) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196395 , 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=26196382 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 (26196395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196396 , 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=26196382 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 (26196396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196397 , 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=26196382 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 (26196397) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196398 , 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=26196382 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 (26196398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26196399 , 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=26196382 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 (26196399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26196382) result : ((1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) 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 (1379171300) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26196382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','plastique','flou','environnement','Carton_brun','papier','cartonnette')) 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`=26196382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','plastique','flou','environnement','Carton_brun','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26196382, 'sub_port_id': 26196401, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641901, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'papier': {'main_port_id': 26196382, 'sub_port_id': 26196402, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641902, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'Carton_brun': {'main_port_id': 26196382, 'sub_port_id': 26196403, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641903, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'flou': {'main_port_id': 26196382, 'sub_port_id': 26196404, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641904, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'autre_refus': {'main_port_id': 26196382, 'sub_port_id': 26196405, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641905, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'kraft': {'main_port_id': 26196382, 'sub_port_id': 26196406, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641906, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'plastique': {'main_port_id': 26196382, 'sub_port_id': 26196407, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641907, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'mal_croppe': {'main_port_id': 26196382, 'sub_port_id': 26196408, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641908, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'metal': {'main_port_id': 26196382, 'sub_port_id': 26196409, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641909, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'Carton_gris': {'main_port_id': 26196382, 'sub_port_id': 26196410, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641910, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'cartonnette': {'main_port_id': 26196382, 'sub_port_id': 26196411, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641911, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 26196382, 'sub_port_id': 26196412, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17641912, 'last_updated_at': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 9, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 9, 35, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26196412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26196399 lien utilise dans velours : https://www.fotonower.com/velours/26196401,26196402,26196403,26196404,26196405,26196406,26196407,26196408,26196409,26196410,26196411,26196412?tags=environnement,papier,Carton_brun,flou,autre_refus,kraft,plastique,mal_croppe,metal,Carton_gris,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26196382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] map_info['map_portfolio_photo'] : {26196382: [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406, 1379171301, 1379171300, 1379171299, 1379171298, 1379171015, 1379171012, 1379170741, 1379170740, 1379170739, 1379170398, 1379170396, 1379170394, 1379169941, 1379169939, 1379169937, 1379169420, 1379168986, 1379168984, 1379168767, 1379168766, 1379168765, 1379168764, 1379168738, 1379168591]} final : False mtd_id 4302 list_pids : [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] Looping around the photos to save general results len do output : 1 /26196382. 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, '3586974') ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '26196382', "{'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399}", None, None, None, None, '3586974'), ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974')] time used for this insertion : 0.015011072158813477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41350603103637695 time spend to save output : 0.015346765518188477 total time spend for step 1 : 0.42885279655456543 step2:final Mon Aug 25 09:46: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 ! 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 (26196382) 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 26196382 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1379168591,1379168738,1379168767,1379168766,1379168765,1379168764,1379168986,1379168984,1379169420,1379169941,1379169939,1379169937,1379170398,1379170396,1379170394,1379170741,1379170740,1379170739,1379171015,1379171012,1379171301,1379171300,1379171299,1379171298,1379171408,1379171407,1379171406,1379171443,1379171579,1379171577,1379171672); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26196382]) Inside saveOutput : final : False verbose : True original output for save of step final : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} new output for save of step final : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] map_info['map_portfolio_photo'] : {26196382: [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406, 1379171301, 1379171300, 1379171299, 1379171298, 1379171015, 1379171012, 1379170741, 1379170740, 1379170739, 1379170398, 1379170396, 1379170394, 1379169941, 1379169939, 1379169937, 1379169420, 1379168986, 1379168984, 1379168767, 1379168766, 1379168765, 1379168764, 1379168738, 1379168591]} final : False mtd_id 4302 list_pids : [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] Looping around the photos to save general results len do output : 7 /1379171672.Didn't retrieve data . /1379171579.Didn't retrieve data . /1379171577.Didn't retrieve data . /1379171443.Didn't retrieve data . /1379171408.Didn't retrieve data . /1379171407.Didn't retrieve data . /1379171406.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, '3586974') ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '26196382', '1379171672', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171579', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171577', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171443', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171408', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171407', '0.0', None, None, None, None, '3586974'), ('4302', '26196382', '1379171406', '0.0', None, None, None, None, '3586974')] time used for this insertion : 0.01578044891357422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05348992347717285 time spend to save output : 0.016185522079467773 total time spend for step 2 : 0.06967544555664062 step3:velours_tree Mon Aug 25 09:46: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 complete output_args for input 0 : {26196382: [{'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399}]} input_args_next_step : {26196382: ()} output_args : {26196382: [{'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399}]} args : 26196382 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26196382) 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([26196382]) 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.45465850830078125 time spend to save output : 5.698204040527344e-05 total time spend for step 3 : 0.4547154903411865 step4:send_mail_cod Mon Aug 25 09:46: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 : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} input_args_next_step : {1379171672: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171672 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171579 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171577 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171443 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171408 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171407 depend.output_id : 0 input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ()} output_args : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',)} args : 1379171406 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 : {26196382: [{'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399}]} input_args_next_step : {1379171672: ('0.0',), 1379171579: ('0.0',), 1379171577: ('0.0',), 1379171443: ('0.0',), 1379171408: ('0.0',), 1379171407: ('0.0',), 1379171406: ('0.0',), 26196382: ()} output_args : {26196382: [{'environnement': 26196388, 'papier': 26196389, 'Carton_brun': 26196390, 'flou': 26196391, 'autre_refus': 26196392, 'kraft': 26196393, 'plastique': 26196394, 'mal_croppe': 26196395, 'metal': 26196396, 'Carton_gris': 26196397, 'cartonnette': 26196398, 'Teint_Dans_La_Masse': 26196399}]} args : 26196382 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 :8, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26196382) 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 (1379171672,1379171579,1379171577,1379171443,1379171408,1379171407,1379171406) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1379171406 begin to download photo : 1379171408 begin to download photo : 1379171577 begin to download photo : 1379171672 download finish for photo 1379171577 begin to download photo : 1379171579 download finish for photo 1379171408 begin to download photo : 1379171443 download finish for photo 1379171672 download finish for photo 1379171406 begin to download photo : 1379171407 download finish for photo 1379171443 download finish for photo 1379171579 download finish for photo 1379171407 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette261963911756107990/ imagette261963921756107990/ imagette261963931756107990/ imagette261963941756107990/ imagette261963951756107990/ imagette261963961756107990/ imagette261963981756107991/ imagette261963901756107991/ imagette261963971756107991/ imagette261963991756107991/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P26196382_25-08-2025_09_46_30.pdf 26196391 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=26196391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963911756107990 26196392 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=26196392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963921756107990 26196393 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=26196393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963931756107990 26196394 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=26196394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963941756107990 26196395 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=26196395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963951756107990 26196396 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=26196396 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963961756107990 26196398 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=26196398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963981756107991 26196390 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=26196390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963901756107991 26196397 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=26196397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963971756107991 26196399 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=26196399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261963991756107991 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26196382 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26196401,26196402,26196403,26196404,26196405,26196406,26196407,26196408,26196409,26196410,26196411,26196412?tags=environnement,papier,Carton_brun,flou,autre_refus,kraft,plastique,mal_croppe,metal,Carton_gris,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1379171672] : ('0.0',) no score found for photo 1379171672 We are sending mail with results at report@fotonower.com args[1379171579] : ('0.0',) no score found for photo 1379171579 We are sending mail with results at report@fotonower.com args[1379171577] : ('0.0',) no score found for photo 1379171577 We are sending mail with results at report@fotonower.com args[1379171443] : ('0.0',) no score found for photo 1379171443 We are sending mail with results at report@fotonower.com args[1379171408] : ('0.0',) no score found for photo 1379171408 We are sending mail with results at report@fotonower.com args[1379171407] : ('0.0',) no score found for photo 1379171407 We are sending mail with results at report@fotonower.com args[1379171406] : ('0.0',) no score found for photo 1379171406 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 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=26196382 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_P26196382_25-08-2025_09_46_30.pdf results_Auto_P26196382_25-08-2025_09_46_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196382_25-08-2025_09_46_30.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','26196382','results_Auto_P26196382_25-08-2025_09_46_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196382_25-08-2025_09_46_30.pdf','pdf','','0.08','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26196382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] map_info['map_portfolio_photo'] : {26196382: [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406, 1379171301, 1379171300, 1379171299, 1379171298, 1379171015, 1379171012, 1379170741, 1379170740, 1379170739, 1379170398, 1379170396, 1379170394, 1379169941, 1379169939, 1379169937, 1379169420, 1379168986, 1379168984, 1379168767, 1379168766, 1379168765, 1379168764, 1379168738, 1379168591]} final : False mtd_id 4302 list_pids : [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] 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, '3586974') ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26196382', '1379171672', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974')] time used for this insertion : 0.015699148178100586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.275313377380371 time spend to save output : 0.015990495681762695 total time spend for step 4 : 1.2913038730621338 step5:split_time_score Mon Aug 25 09:46:31 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 : ['26196382'] 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 : [('26196382',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26196382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1379171672: {'path': 'temp/1756107990_1135533_1379171672_0f6ea224148d58cbddf8b03842cf92b5_59012357.jpg', 'extension': 'jpg'}, 1379171408: {'path': 'temp/1756107990_1135533_1379171408_368cfe10171fb9cf24a74924025d327a_38731644.jpg', 'extension': 'jpg'}, 1379171443: {'path': 'temp/1756107990_1135533_1379171443_0a99175ab8f440cc18489a137d046a04_23829311.jpg', 'extension': 'jpg'}, 1379171577: {'path': 'temp/1756107990_1135533_1379171577_acb12b381818c701e4349bb674562296_10778180.jpg', 'extension': 'jpg'}, 1379171579: {'path': 'temp/1756107990_1135533_1379171579_b71d3c9c7f98a039bb1c58153770d894_25449868.jpg', 'extension': 'jpg'}, 1379171406: {'path': 'temp/1756107990_1135533_1379171406_2eed911eba4b606727a15f7eb0df5e32_28933602.jpg', 'extension': 'jpg'}, 1379171407: {'path': 'temp/1756107990_1135533_1379171407_99ac696f1bce2ae771383386a4c3b8d7_26496153.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 = 26196382; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26196382 group by h (('09', 31),) 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=26196382 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 (26196382) 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 (26196382) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25082025 26196382 Nombre de photos uploadées : 31 / 23040 (0%) 25082025 26196382 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 25082025 26196382 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1379168591, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/c37d10068466444f3af21c2bcea4e50d_69058151.jpg', 'username': None, 'uploaded_at': 1756107191, 'text': 'image_25082025_09_31_14_10136.jpg'}, {'photo_id': 1379168738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/661dd1e9102f7d353b1cce476479a9b8_85672541.jpg', 'username': None, 'uploaded_at': 1756107251, 'text': 'image_25082025_09_32_24_10135.jpg'}, {'photo_id': 1379168767, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/4e08c6132e980a07751dd6404ad2e024_61987681.jpg', 'username': None, 'uploaded_at': 1756107312, 'text': 'image_25082025_09_33_34_10140.jpg'}, {'photo_id': 1379168766, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/defd8c90529d0cd0fb3161672b76c878_92511585.jpg', 'username': None, 'uploaded_at': 1756107312, 'text': 'image_25082025_09_34_04_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022661685943603516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26196382, '2025-08-25' ) 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-25' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2167673,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20939135551452637 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= 2167673 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26190693, 'dashboard_result_id': 14249486, '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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26190838, 'dashboard_result_id': 14249487, '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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26191029, 'dashboard_result_id': 14249488, '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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26191180, 'dashboard_result_id': 14249489, '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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26191444, 'dashboard_result_id': 14249490, '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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26191624, 'dashboard_result_id': 14249491, '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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26191825, 'dashboard_result_id': 14249492, '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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26192047, 'dashboard_result_id': 14249493, '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_P26192047_25-08-2025_07_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26192571, 'dashboard_result_id': 14249495, '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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26192848, 'dashboard_result_id': 14249496, '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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26193178, 'dashboard_result_id': 14249497, '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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26193504, 'dashboard_result_id': 14249498, '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_P26193504_25-08-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26195010, 'dashboard_result_id': 14249500, '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_P26195010_25-08-2025_09_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26195042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26195043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26195044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26195045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26195046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26195047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26195048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26195049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26195050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26195051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26195052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26195053, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26196169, 'dashboard_result_id': 14249501, '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_P26196169_25-08-2025_09_27_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196182, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2176213, 'mtr_portfolio_id': 26196382, 'dashboard_result_id': 14249502, '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_P26196382_25-08-2025_09_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196399, '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 = 26190693 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': 3584565, 'mtr_portfolio_id': 26190693, 'created_at': datetime.datetime(2025, 8, 25, 5, 23, 30), 'result': '0.05132301580300638', 'result_long': None, 'result_double': None}] Qualite : 0.05132301580300638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190693 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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}" where mtr_portfolio_id = 26190693 and dashboard_run_id = 2176213 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`=26190693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14249486, 0.05132301580300638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, '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 = 26190838 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': 3584602, 'mtr_portfolio_id': 26190838, 'created_at': datetime.datetime(2025, 8, 25, 5, 34, 57), 'result': '0.003340568246483041', 'result_long': None, 'result_double': None}] Qualite : 0.003340568246483041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190838 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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}" where mtr_portfolio_id = 26190838 and dashboard_run_id = 2176213 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`=26190838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14249487, 0.003340568246483041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, '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 = 26191029 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 = 26191029 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 = 26191029 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191029 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 = 26191029 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 = 26191029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191029_25-08-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191029 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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}" where mtr_portfolio_id = 26191029 and dashboard_run_id = 2176213 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 = 26191180 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 = 26191180 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 = 26191180 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191180 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 = 26191180 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 = 26191180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191180_25-08-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191180 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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}" where mtr_portfolio_id = 26191180 and dashboard_run_id = 2176213 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 = 26191444 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 = 26191444 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 = 26191444 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191444 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 = 26191444 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 = 26191444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191444_25-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191444 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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}" where mtr_portfolio_id = 26191444 and dashboard_run_id = 2176213 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 = 26191624 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 = 26191624 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 = 26191624 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191624 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 = 26191624 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 = 26191624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191624_25-08-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191624 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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}" where mtr_portfolio_id = 26191624 and dashboard_run_id = 2176213 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 = 26191825 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 = 26191825 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 = 26191825 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191825 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 = 26191825 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 = 26191825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191825_25-08-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191825 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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}" where mtr_portfolio_id = 26191825 and dashboard_run_id = 2176213 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 = 26192047 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 = 26192047 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 = 26192047 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192047 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 = 26192047 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 = 26192047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192047_25-08-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192047 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_P26192047_25-08-2025_07_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}" where mtr_portfolio_id = 26192047 and dashboard_run_id = 2176213 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 = 26192571 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 = 26192571 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 = 26192571 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192571 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 = 26192571 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 = 26192571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192571_25-08-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192571 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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}" where mtr_portfolio_id = 26192571 and dashboard_run_id = 2176213 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 = 26192848 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 = 26192848 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 = 26192848 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192848 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 = 26192848 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 = 26192848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192848_25-08-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192848 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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}" where mtr_portfolio_id = 26192848 and dashboard_run_id = 2176213 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 = 26193178 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 = 26193178 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 = 26193178 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193178 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 = 26193178 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 = 26193178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193178_25-08-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193178 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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}" where mtr_portfolio_id = 26193178 and dashboard_run_id = 2176213 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 = 26193504 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 = 26193504 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 = 26193504 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193504 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 = 26193504 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 = 26193504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193504_25-08-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193504 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_P26193504_25-08-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, 'pht': 3726}}" where mtr_portfolio_id = 26193504 and dashboard_run_id = 2176213 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 = 26195010 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 = 26195010 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 = 26195010 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26195010 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 = 26195010 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 = 26195010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26195010_25-08-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26195010 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_P26195010_25-08-2025_09_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26195042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26195043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26195044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26195045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26195046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26195047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26195048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26195049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26195050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26195051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26195052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26195053, 'pht': 3726}}" where mtr_portfolio_id = 26195010 and dashboard_run_id = 2176213 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 = 26196169 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 = 26196169 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 = 26196169 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196169 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 = 26196169 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 = 26196169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196169_25-08-2025_09_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26196169 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_P26196169_25-08-2025_09_27_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196182, 'pht': 3726}}" where mtr_portfolio_id = 26196169 and dashboard_run_id = 2176213 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 = 26196382 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 = 26196382 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 = 26196382 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196382 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 = 26196382 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 = 26196382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196382_25-08-2025_09_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26196382 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_P26196382_25-08-2025_09_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196399, 'pht': 3726}}" where mtr_portfolio_id = 26196382 and dashboard_run_id = 2176211 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26190693,26190838,26191029,26191180,26191444,26191624,26191825,26192047,26192571,26192848,26193178,26193504,26195010,26196169,26196382) result : ((1379139978,), (1379140082,), (1379140083,), (1379140095,), (1379140096,), (1379140097,), (1379140101,), (1379140110,), (1379140121,), (1379140129,), (1379140135,), (1379140176,), (1379140233,), (1379140184,), (1379140231,), (1379140232,), (1379140250,), (1379140251,), (1379140305,), (1379140307,), (1379140328,), (1379140329,), (1379140330,), (1379140331,), (1379140332,), (1379140363,), (1379140364,), (1379140365,), (1379140366,), (1379140372,), (1379140373,), (1379140374,), (1379140386,), (1379140387,), (1379140388,), (1379140398,), (1379140399,), (1379140400,), (1379140401,), (1379140402,), (1379140438,), (1379140562,), (1379140563,), (1379140566,), (1379140576,), (1379140577,), (1379140578,), (1379140579,), (1379140587,), (1379140588,), (1379140589,), (1379140590,), (1379140604,), (1379140605,), (1379140606,), (1379140608,), (1379140609,), (1379140610,), (1379140620,), (1379140621,), (1379140622,), (1379140623,), (1379140631,), (1379140632,), (1379140633,), (1379140634,), (1379140643,), (1379140644,), (1379140645,), (1379140646,), (1379140654,), (1379140655,), (1379140656,), (1379140657,), (1379140658,), (1379140670,), (1379140671,), (1379140672,), (1379140673,), (1379140674,), (1379140675,), (1379140685,), (1379140686,), (1379140687,), (1379140688,), (1379140689,), (1379140692,), (1379140693,), (1379140694,), (1379140698,), (1379141304,), (1379141307,), (1379141310,), (1379141397,), (1379141391,), (1379141393,), (1379141395,), (1379141784,), (1379141786,), (1379141788,), (1379142124,), (1379142126,), (1379142369,), (1379142370,), (1379142371,), (1379142372,), (1379142373,), (1379143158,), (1379143159,), (1379143160,), (1379143161,), (1379143162,), (1379143376,), (1379143377,), (1379143378,), (1379143379,), (1379143394,), (1379143395,), (1379143396,), (1379143413,), (1379143414,), (1379143415,), (1379143416,), (1379143417,), (1379143431,), (1379143432,), (1379143433,), (1379143434,), (1379143435,), (1379143443,), (1379143444,), (1379143538,), (1379143561,), (1379143562,), (1379143575,), (1379143576,), (1379143577,), (1379143585,), (1379143586,), (1379143620,), (1379143632,), (1379143633,), (1379143638,), (1379143639,), (1379143640,), (1379143641,), (1379143652,), (1379143653,), (1379143654,), (1379143669,), (1379143670,), (1379143671,), (1379143672,), (1379143686,), (1379143687,), (1379143688,), (1379143689,), (1379143702,), (1379143703,), (1379143704,), (1379143718,), (1379143719,), (1379143720,), (1379143726,), (1379143727,), (1379143728,), (1379143743,), (1379143744,), (1379143762,), (1379143760,), (1379143761,), (1379143786,), (1379143787,), (1379143788,), (1379143809,), (1379143810,), (1379143811,), (1379143813,), (1379143835,), (1379143836,), (1379143837,), (1379143856,), (1379143857,), (1379143858,), (1379143859,), (1379143879,), (1379143880,), (1379143881,), (1379143896,), (1379143897,), (1379143913,), (1379143914,), (1379143915,), (1379143932,), (1379143933,), (1379143934,), (1379143935,), (1379143936,), (1379143958,), (1379143959,), (1379143960,), (1379144007,), (1379144008,), (1379144009,), (1379144010,), (1379144030,), (1379144031,), (1379144032,), (1379144049,), (1379144051,), (1379144052,), (1379144068,), (1379144069,), (1379144070,), (1379144086,), (1379144087,), (1379144088,), (1379144109,), (1379144104,), (1379144105,), (1379144106,), (1379144107,), (1379144108,), (1379144133,), (1379144134,), (1379144135,), (1379144156,), (1379144157,), (1379144158,), (1379144159,), (1379144178,), (1379144179,), (1379144180,), (1379144181,), (1379144182,), (1379144183,), (1379144197,), (1379144198,), (1379144199,), (1379144220,), (1379144221,), (1379144222,), (1379144223,), (1379144224,), (1379144255,), (1379144256,), (1379144257,), (1379144258,), (1379144281,), (1379144282,), (1379144283,), (1379144284,), (1379144285,), (1379144305,), (1379144306,), (1379144307,), (1379144308,), (1379144309,), (1379144329,), (1379144330,), (1379144331,), (1379144332,), (1379144351,), (1379144352,), (1379144353,), (1379144378,), (1379144379,), (1379144380,), (1379144381,), (1379144382,), (1379144413,), (1379144438,), (1379144440,), (1379144443,), (1379145063,), (1379145065,), (1379145066,), (1379145067,), (1379145077,), (1379145079,), (1379145080,), (1379145081,), (1379145260,), (1379145257,), (1379145258,), (1379145259,), (1379145558,), (1379145561,), (1379145563,), (1379145565,), (1379145909,), (1379145911,), (1379145913,), (1379146003,), (1379146004,), (1379146005,), (1379146270,), (1379146271,), (1379146272,), (1379146273,), (1379147042,), (1379147046,), (1379147050,), (1379147054,), (1379147058,), (1379147339,), (1379147340,), (1379147341,), (1379147342,), (1379147368,), (1379147369,), (1379147370,), (1379147371,), (1379147372,), (1379147415,), (1379147416,), (1379147437,), (1379147438,), (1379147439,), (1379147440,), (1379147488,), (1379147489,), (1379147490,), (1379147491,), (1379147492,), (1379147612,), (1379147613,), (1379147614,), (1379147684,), (1379147685,), (1379147686,), (1379147687,), (1379147735,), (1379147736,), (1379147737,), (1379147786,), (1379147787,), (1379148051,), (1379147834,), (1379148050,), (1379148310,), (1379148311,), (1379148312,), (1379148313,), (1379148347,), (1379148348,), (1379148349,), (1379148350,), (1379148351,), (1379148352,), (1379148387,), (1379148388,), (1379148389,), (1379148433,), (1379148434,), (1379148435,), (1379148436,), (1379148468,), (1379148469,), (1379148470,), (1379148471,), (1379148507,), (1379148508,), (1379148509,), (1379148510,), (1379148701,), (1379148704,), (1379149045,), (1379149183,), (1379149218,), (1379149219,), (1379149256,), (1379149257,), (1379149311,), (1379149313,), (1379149315,), (1379149317,), (1379149463,), (1379149461,), (1379149462,), (1379149497,), (1379149498,), (1379149534,), (1379149535,), (1379149572,), (1379149573,), (1379149610,), (1379149611,), (1379149612,), (1379149785,), (1379149787,), (1379149916,), (1379149918,), (1379150055,), (1379150286,), (1379150287,), (1379150369,), (1379150370,), (1379150491,), (1379150493,), (1379150496,), (1379150498,), (1379150611,), (1379150612,), (1379150613,), (1379150641,), (1379150642,), (1379150711,), (1379150712,), (1379150771,), (1379150769,), (1379150770,), (1379150882,), (1379150908,), (1379150909,), (1379150910,), (1379150911,), (1379150945,), (1379150946,), (1379150980,), (1379150981,), (1379150982,), (1379151024,), (1379151025,), (1379151026,), (1379151027,), (1379151028,), (1379151117,), (1379151118,), (1379151119,), (1379151120,), (1379151154,), (1379151155,), (1379151156,), (1379151157,), (1379151189,), (1379151190,), (1379151191,), (1379151192,), (1379151233,), (1379151234,), (1379151235,), (1379151236,), (1379151237,), (1379151238,), (1379151293,), (1379151294,), (1379151295,), (1379151296,), (1379151297,), (1379151329,), (1379151330,), (1379151359,), (1379151360,), (1379151361,), (1379151362,), (1379152188,), (1379152190,), (1379152193,), (1379152195,), (1379152414,), (1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,), (1379156353,), (1379156355,), (1379156631,), (1379159411,), (1379159425,), (1379159545,), (1379159677,), (1379159838,), (1379159839,), (1379159929,), (1379159930,), (1379160026,), (1379160049,), (1379160050,), (1379160218,), (1379160221,), (1379160224,), (1379160227,), (1379160230,), (1379160769,), (1379160770,), (1379160771,), (1379168293,), (1379165692,), (1379167583,), (1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25082025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26196382]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] map_info['map_portfolio_photo'] : {26196382: [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406, 1379171301, 1379171300, 1379171299, 1379171298, 1379171015, 1379171012, 1379170741, 1379170740, 1379170739, 1379170398, 1379170396, 1379170394, 1379169941, 1379169939, 1379169937, 1379169420, 1379168986, 1379168984, 1379168767, 1379168766, 1379168765, 1379168764, 1379168738, 1379168591]} final : True mtd_id 4302 list_pids : [1379171672, 1379171579, 1379171577, 1379171443, 1379171408, 1379171407, 1379171406] Looping around the photos to save general results len do output : 1 /26196382Didn'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, '3586974') ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974') ('4302', None, None, None, None, None, None, None, '3586974') ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '26196382', 'None', None, None, None, None, '3586974'), ('4302', '26196382', '1379171672', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171579', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171577', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171443', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171408', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171407', None, None, None, None, None, '3586974'), ('4302', '26196382', '1379171406', None, None, None, None, None, '3586974')] time used for this insertion : 0.0161283016204834 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8484439849853516 time spend to save output : 0.016304492950439453 total time spend for step 5 : 0.864748477935791 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 (3586974) 2.09user 2.62system 0:07.70elapsed 61%CPU (0avgtext+0avgdata 160236maxresident)k 48416inputs+4856outputs (244major+72882minor)pagefaults 0swaps