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 : 2040274 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 (2561479) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2561479) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321063 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2561479'] with mtr_portfolio_ids : ['20321063'] and first list_photo_ids : [] new path : /proc/2040274/ Name: python3 Umask: 0002 State: R (running) Tgid: 2040274 Ngid: 0 Pid: 2040274 PPid: 2040273 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2040274 NSpid: 2040274 NSpgid: 2038778 NSsid: 2038778 VmPeak: 1106592 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97888 kB VmRSS: 97888 kB RssAnon: 59744 kB RssFile: 38144 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 61 nonvoluntary_ctxt_switches: 133 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2040274', 'Ngid': '0', 'Pid': '2040274', 'PPid': '2040273', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2040274', 'NSpid': '2040274', 'NSpgid': '2038778', 'NSsid': '2038778', 'VmPeak': '1106592 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97888 kB', 'VmRSS': '97888 kB', 'RssAnon': '59744 kB', 'RssFile': '38144 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '61', 'nonvoluntary_ctxt_switches': '133'} ('datou_batch_current', '2040274', '1106592', '0', '1106572', '865324', '97888', b'', 'marlene', '2561479') 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 (20321063) 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 (2561479 ) ) 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 (20321063) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335407040, 'portfolio_id': 20321063}, {'photo_id': 1335405818, 'portfolio_id': 20321063}, {'photo_id': 1335405753, 'portfolio_id': 20321063}, {'photo_id': 1335405751, 'portfolio_id': 20321063}, {'photo_id': 1335405749, 'portfolio_id': 20321063}, {'photo_id': 1335405744, 'portfolio_id': 20321063}, {'photo_id': 1335405582, 'portfolio_id': 20321063}, {'photo_id': 1335405579, 'portfolio_id': 20321063}, {'photo_id': 1335405577, 'portfolio_id': 20321063}, {'photo_id': 1335405575, 'portfolio_id': 20321063}, {'photo_id': 1335405573, 'portfolio_id': 20321063}, {'photo_id': 1335405048, 'portfolio_id': 20321063}, {'photo_id': 1335404977, 'portfolio_id': 20321063}, {'photo_id': 1335404905, 'portfolio_id': 20321063}, {'photo_id': 1335404827, 'portfolio_id': 20321063}, {'photo_id': 1335404191, 'portfolio_id': 20321063}, {'photo_id': 1335404165, 'portfolio_id': 20321063}, {'photo_id': 1335404163, 'portfolio_id': 20321063}, {'photo_id': 1335404160, 'portfolio_id': 20321063}] map_portfolio_id_photo_id: {20321063: [1335407040, 1335405818, 1335405753, 1335405751, 1335405749, 1335405744, 1335405582, 1335405579, 1335405577, 1335405575, 1335405573, 1335405048, 1335404977, 1335404905, 1335404827, 1335404191, 1335404165, 1335404163, 1335404160]} ##### 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.14525914192199707 #### 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 Fri Feb 7 06:08:57 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 (20321063) 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 : 20321063 get user id for portfolio 20321063 get sub ptf for main ptf 20321063, type 3726 and hashtags ['kraft', 'papier', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'metal', 'environnement', 'autre_refus', 'mal_croppe', '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`=20321063 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','Carton_gris','plastique','Teint_Dans_La_Masse','flou','Carton_brun','metal','environnement','autre_refus','mal_croppe','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`=20321063 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','Carton_gris','plastique','Teint_Dans_La_Masse','flou','Carton_brun','metal','environnement','autre_refus','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20321063, 'sub_port_id': 20321064, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009000, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'cartonnette': {'main_port_id': 20321063, 'sub_port_id': 20321065, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009001, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'mal_croppe': {'main_port_id': 20321063, 'sub_port_id': 20321066, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009002, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20321063, 'sub_port_id': 20321067, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009003, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'papier': {'main_port_id': 20321063, 'sub_port_id': 20321068, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009004, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'kraft': {'main_port_id': 20321063, 'sub_port_id': 20321069, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009005, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'environnement': {'main_port_id': 20321063, 'sub_port_id': 20321070, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009006, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'Carton_brun': {'main_port_id': 20321063, 'sub_port_id': 20321071, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009007, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'metal': {'main_port_id': 20321063, 'sub_port_id': 20321072, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009008, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'autre_refus': {'main_port_id': 20321063, 'sub_port_id': 20321073, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009009, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'Carton_gris': {'main_port_id': 20321063, 'sub_port_id': 20321074, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009010, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}, 'plastique': {'main_port_id': 20321063, 'sub_port_id': 20321075, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009011, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321064 , 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=20321063 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 (20321064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321065 , 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=20321063 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 (20321065) result : ((1335406610,), (1335406611,), (1335406612,), (1335406613,), (1335406614,), (1335407043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321066 , 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=20321063 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 (20321066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321067 , 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=20321063 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 (20321067) result : ((1335406585,), (1335406595,), (1335406687,), (1335406688,), (1335406690,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321068 , 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=20321063 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 (20321068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321069 , 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=20321063 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 (20321069) result : ((1335406772,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321070 , 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=20321063 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 (20321070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321071 , 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=20321063 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 (20321071) result : ((1335406600,), (1335406601,), (1335406616,), (1335406617,), (1335406618,), (1335406619,), (1335407044,), (1335407045,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321072 , 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=20321063 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 (20321072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321073 , 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=20321063 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 (20321073) result : ((1335406602,), (1335406603,), (1335406604,), (1335406741,), (1335406743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321074 , 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=20321063 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 (20321074) result : ((1335406599,), (1335406607,), (1335406608,), (1335406609,), (1335406767,), (1335406769,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20321075 , 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=20321063 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 (20321075) result : ((1335406606,), (1335406620,), (1335406621,), (1335407047,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20321063) result : ((1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20321063 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','Carton_gris','plastique','Teint_Dans_La_Masse','flou','Carton_brun','metal','environnement','autre_refus','mal_croppe','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`=20321063 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','Carton_gris','plastique','Teint_Dans_La_Masse','flou','Carton_brun','metal','environnement','autre_refus','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20321063, 'sub_port_id': 20321076, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009012, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'cartonnette': {'main_port_id': 20321063, 'sub_port_id': 20321077, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009013, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'mal_croppe': {'main_port_id': 20321063, 'sub_port_id': 20321078, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009014, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 20321063, 'sub_port_id': 20321079, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009015, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'papier': {'main_port_id': 20321063, 'sub_port_id': 20321080, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009016, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'kraft': {'main_port_id': 20321063, 'sub_port_id': 20321081, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009017, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'environnement': {'main_port_id': 20321063, 'sub_port_id': 20321082, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009018, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'Carton_brun': {'main_port_id': 20321063, 'sub_port_id': 20321083, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009019, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'metal': {'main_port_id': 20321063, 'sub_port_id': 20321084, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009020, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'autre_refus': {'main_port_id': 20321063, 'sub_port_id': 20321087, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009021, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'Carton_gris': {'main_port_id': 20321063, 'sub_port_id': 20321092, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009022, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 5), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}, 'plastique': {'main_port_id': 20321063, 'sub_port_id': 20321096, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13009023, 'last_updated_at': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 6, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 6, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20321096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20321075 lien utilise dans velours : https://www.fotonower.com/velours/20321076,20321077,20321078,20321079,20321080,20321081,20321082,20321083,20321084,20321087,20321092,20321096?tags=flou,cartonnette,mal_croppe,Teint_Dans_La_Masse,papier,kraft,environnement,Carton_brun,metal,autre_refus,Carton_gris,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20321063]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335407040] map_info['map_portfolio_photo'] : {20321063: [1335407040, 1335405818, 1335405753, 1335405751, 1335405749, 1335405744, 1335405582, 1335405579, 1335405577, 1335405575, 1335405573, 1335405048, 1335404977, 1335404905, 1335404827, 1335404191, 1335404165, 1335404163, 1335404160]} final : False mtd_id 4302 list_pids : [1335407040] Looping around the photos to save general results len do output : 1 /20321063. 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, '2561479') ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20321063', "{'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075}", None, None, None, None, '2561479'), ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479')] time used for this insertion : 0.01587200164794922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.501155138015747 time spend to save output : 0.016021251678466797 total time spend for step 1 : 1.5171763896942139 step2:final Fri Feb 7 06:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20321063) 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 20321063 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335404191,1335404165,1335404163,1335404160,1335405048,1335404977,1335404905,1335404827,1335405582,1335405579,1335405577,1335405575,1335405573,1335405753,1335405751,1335405749,1335405744,1335405818,1335407040); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20321063]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335407040: ('0.045950469882550304',)} new output for save of step final : {1335407040: ('0.045950469882550304',)} [1335407040] map_info['map_portfolio_photo'] : {20321063: [1335407040, 1335405818, 1335405753, 1335405751, 1335405749, 1335405744, 1335405582, 1335405579, 1335405577, 1335405575, 1335405573, 1335405048, 1335404977, 1335404905, 1335404827, 1335404191, 1335404165, 1335404163, 1335404160]} final : False mtd_id 4302 list_pids : [1335407040] Looping around the photos to save general results len do output : 1 /1335407040.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, '2561479') ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '20321063', '1335407040', '0.045950469882550304', None, None, None, None, '2561479')] time used for this insertion : 0.014473199844360352 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06922316551208496 time spend to save output : 0.014706611633300781 total time spend for step 2 : 0.08392977714538574 step3:velours_tree Fri Feb 7 06:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20321063: [{'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075}]} input_args_next_step : {20321063: ()} output_args : {20321063: [{'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075}]} args : 20321063 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 : ({'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20321063) 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([20321063]) 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.3274555206298828 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.3275141716003418 step4:send_mail_cod Fri Feb 7 06:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1335407040: ('0.045950469882550304',)} input_args_next_step : {1335407040: ()} output_args : {1335407040: ('0.045950469882550304',)} args : 1335407040 depend.output_id : 0 complete output_args for input 3 : {20321063: [{'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075}]} input_args_next_step : {1335407040: ('0.045950469882550304',), 20321063: ()} output_args : {20321063: [{'flou': 20321064, 'cartonnette': 20321065, 'mal_croppe': 20321066, 'Teint_Dans_La_Masse': 20321067, 'papier': 20321068, 'kraft': 20321069, 'environnement': 20321070, 'Carton_brun': 20321071, 'metal': 20321072, 'autre_refus': 20321073, 'Carton_gris': 20321074, 'plastique': 20321075}]} args : 20321063 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 :2, first value : ('0.045950469882550304',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20321063) 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 (1335407040) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335407040 download finish for photo 1335407040 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette203210641738904939/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20321063_07-02-2025_06_08_59.pdf 20321064 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=20321064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203210641738904939 20321065 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=20321065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406610: '1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026891_0.png', 1335406611: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026940_0.png', 1335406612: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026935_0.png', 1335406613: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027141_0.png', 1335406614: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027136_0.png', 1335407043: '1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b649590256dbdebe486fc0787529830c_38232038.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/304a32fdb5bca39b87e160944e111a67_70063946.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/784d4f78c37b804276e5454906bf1bf6_51513036.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5f1b0009dfbffea0324c1ef8167c7445_81422710.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5a302d5af3213bcdd42dc1cbeed163fc_56566519.png change filename to text .imagette203210651738904939/ imagette203210651738904939/1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026891_0.png.png imagette203210651738904939/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026940_0.png.png imagette203210651738904939/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027136_0.png.png imagette203210651738904939/1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027958_0.png.png imagette203210651738904939/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026935_0.png.png imagette203210651738904939/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027141_0.png.png imagette203210661738904940/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7106909d8b17ac301b6301af32c81404_78201164.png imagette203210651738904939 20321066 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=20321066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203210661738904940 20321069 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=20321069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406772: '1738904696_1248230_1335405048_1a02b9ee9909125033ad262d84d38d06_rle_crop_3659027348_0.png'} change filename to text .imagette203210691738904940/ imagette203210691738904940/1738904696_1248230_1335405048_1a02b9ee9909125033ad262d84d38d06_rle_crop_3659027348_0.png.png imagette203210721738904940/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5764d0e4016bc7345c32b0fd3f5cec25_88455492.png imagette203210691738904940 20321072 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=20321072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203210721738904940 20321073 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=20321073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406602: '1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026887_0.png', 1335406603: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026937_0.png', 1335406604: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027142_0.png', 1335406741: '1738904696_1248230_1335405048_1a02b9ee9909125033ad262d84d38d06_rle_crop_3659027349_0.png', 1335406743: '1738904696_1248230_1335404191_b1419b150f1a6b011d5c894ff64bdcd3_rle_crop_3659027361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/1216edbbccfd7e98e4d355527769af45_21712429.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/754e2c13d20a42c103dfb479da6db00d_24716187.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/64fbb2898ac55771fc80853fb0b10739_63056718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7e4fe86f3d2d108c48735b8402388715_85174823.png change filename to text .imagette203210731738904940/ imagette203210731738904940/1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026887_0.png.png imagette203210731738904940/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027142_0.png.png imagette203210731738904940/1738904696_1248230_1335404191_b1419b150f1a6b011d5c894ff64bdcd3_rle_crop_3659027361_0.png.png imagette203210731738904940/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026937_0.png.png imagette203210731738904940/1738904696_1248230_1335405048_1a02b9ee9909125033ad262d84d38d06_rle_crop_3659027349_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/058bae2011d5aaf78fc0d473d72b1855_86968464.png imagette203210731738904940 20321075 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=20321075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406606: '1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027094_0.png', 1335406620: '1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026902_0.png', 1335406621: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027138_0.png', 1335407047: '1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027970_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f310a1ad265769b7eacb79e14ba8aa46_75305553.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/90c99b9eb970e2803203425f2128f697_76517249.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/9835ac321f562afed309b6c1aba7a509_2976058.png change filename to text .imagette203210751738904940/ imagette203210751738904940/1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027970_0.png.png imagette203210751738904940/1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026902_0.png.png imagette203210751738904940/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027138_0.png.png imagette203210751738904940/1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027094_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b691ef85da9854e6de0a3995df1fb98c_34234025.png imagette203210751738904940 20321067 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=20321067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406585: '1738904657_1247549_1335405579_8e5c61247299811300661b1384692c47_rle_crop_3659026910_0.png', 1335406595: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026945_0.png', 1335406687: '1738904696_1248230_1335404165_e865d4b8a42cd55580fc7bff1cb36758_rle_crop_3659027379_0.png', 1335406688: '1738904696_1248230_1335404160_10cfb2365685a725487b4fbaa743eee6_rle_crop_3659027410_0.png', 1335406690: '1738904696_1248230_1335404160_10cfb2365685a725487b4fbaa743eee6_rle_crop_3659027406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f4a37765c46f214c7b4ad844bd68a9cd_25869811.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/6bfe7679337ada76e5a8bc8eb3d9cf69_61266.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/538a6642443ce5e8ea493acb729ea5f9_23151926.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8fe0b0de79528bd5e4c0f4ff29107650_32007555.png change filename to text .imagette203210671738904940/ imagette203210671738904940/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026945_0.png.png imagette203210671738904940/1738904657_1247549_1335405579_8e5c61247299811300661b1384692c47_rle_crop_3659026910_0.png.png imagette203210671738904940/1738904696_1248230_1335404165_e865d4b8a42cd55580fc7bff1cb36758_rle_crop_3659027379_0.png.png imagette203210671738904940/1738904696_1248230_1335404160_10cfb2365685a725487b4fbaa743eee6_rle_crop_3659027410_0.png.png imagette203210671738904940/1738904696_1248230_1335404160_10cfb2365685a725487b4fbaa743eee6_rle_crop_3659027406_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/9a8e47524fa6c4c792424e2b8835320c_61881875.png imagette203210671738904940 20321071 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=20321071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406600: '1738904657_1247549_1335405577_a3865fd5d3bf77433261c980e50c54db_rle_crop_3659026929_0.png', 1335406601: '1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027100_0.png', 1335406616: '1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026899_0.png', 1335406617: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026939_0.png', 1335406618: '1738904674_1248009_1335404905_ba61fbb6eb84c6b674f0d467da1d5261_rle_crop_3659027116_0.png', 1335406619: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027148_0.png', 1335407044: '1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027961_0.png', 1335407045: '1738904832_1256150_1335405744_18cefe6bbb893fdbbfa31031ca00578f_rle_crop_3659028017_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/69d652e955bc5f773c1a49ad4f027c26_31007705.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e831560424f0d45643087f363da2c553_99157456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/4f06aca28785edd3c708859e2b3878e7_98774852.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/6d951dc13a14aa06ba5c764a01ba2e8b_38309714.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/325ede04f38b30b3e8624b82c0cceb72_4065688.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/680cb46954bbda6881bc8ba419e48baa_6262038.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5e35e399ebbc4308b177e5d9152fc327_44638086.png change filename to text .imagette203210711738904941/ imagette203210711738904941/1738904674_1248009_1335404905_ba61fbb6eb84c6b674f0d467da1d5261_rle_crop_3659027116_0.png.png imagette203210711738904941/1738904832_1256150_1335405818_e8a44443a76486f13c99fac945cb9266_rle_crop_3659027961_0.png.png imagette203210711738904941/1738904657_1247549_1335405577_a3865fd5d3bf77433261c980e50c54db_rle_crop_3659026929_0.png.png imagette203210711738904941/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026939_0.png.png imagette203210711738904941/1738904832_1256150_1335405744_18cefe6bbb893fdbbfa31031ca00578f_rle_crop_3659028017_0.png.png imagette203210711738904941/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027148_0.png.png imagette203210711738904941/1738904674_1248009_1335405582_bcb592df6b5fcd8d27bda895ec850fe9_rle_crop_3659026899_0.png.png imagette203210711738904941/1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027100_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a0def3d3b39cbf5e6c6f77b36257d749_66923077.png imagette203210711738904941 20321074 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=20321074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335406599: '1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027092_0.png', 1335406607: '1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026936_0.png', 1335406608: '1738904674_1248009_1335404905_ba61fbb6eb84c6b674f0d467da1d5261_rle_crop_3659027111_0.png', 1335406609: '1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027144_0.png', 1335406767: '1738904696_1248230_1335404191_b1419b150f1a6b011d5c894ff64bdcd3_rle_crop_3659027362_0.png', 1335406769: '1738904696_1248230_1335404165_e865d4b8a42cd55580fc7bff1cb36758_rle_crop_3659027371_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a677394fc77ddfefd9cc69915dcf8ac7_2469143.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2f2bdde7750486424a39e0fce45f1a75_77877790.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c3636c661cd7897d36dcd7c6a065f164_77750716.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/04e04a977aa61485f6096be5fe057155_15502690.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d3bcdb518bf4b5000becad1a548880f9_5650474.png change filename to text .imagette203210741738904941/ imagette203210741738904941/1738904657_1247549_1335405575_6a97631a3a266dd902f30a4fc1632ec2_rle_crop_3659027092_0.png.png imagette203210741738904941/1738904674_1248009_1335404905_ba61fbb6eb84c6b674f0d467da1d5261_rle_crop_3659027111_0.png.png imagette203210741738904941/1738904696_1248230_1335404191_b1419b150f1a6b011d5c894ff64bdcd3_rle_crop_3659027362_0.png.png imagette203210741738904941/1738904674_1248009_1335404977_155e3ec57f329a680e213a6e054f0f21_rle_crop_3659026936_0.png.png imagette203210741738904941/1738904674_1248009_1335404827_58f931d46e45b4eeba73e4e4e13d5c5a_rle_crop_3659027144_0.png.png imagette203210741738904941/1738904696_1248230_1335404165_e865d4b8a42cd55580fc7bff1cb36758_rle_crop_3659027371_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3e1003819917f4127c9401705e8a81c5_68073422.png imagette203210741738904941 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20321063 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20321076,20321077,20321078,20321079,20321080,20321081,20321082,20321083,20321084,20321087,20321092,20321096?tags=flou,cartonnette,mal_croppe,Teint_Dans_La_Masse,papier,kraft,environnement,Carton_brun,metal,autre_refus,Carton_gris,plastique your option no_mail is active, we will not send the real mail to your client args[1335407040] : ('0.045950469882550304',) no score found for photo 1335407040 apple ('0.045950469882550304',) We are sending mail with results at report@fotonower.com refus_total : 0.045950469882550304 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=20321063 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_P20321063_07-02-2025_06_08_59.pdf results_Auto_P20321063_07-02-2025_06_08_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20321063_07-02-2025_06_08_59.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','20321063','results_Auto_P20321063_07-02-2025_06_08_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20321063_07-02-2025_06_08_59.pdf','pdf','','0.13','0.045950469882550304') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20321063]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335407040] map_info['map_portfolio_photo'] : {20321063: [1335407040, 1335405818, 1335405753, 1335405751, 1335405749, 1335405744, 1335405582, 1335405579, 1335405577, 1335405575, 1335405573, 1335405048, 1335404977, 1335404905, 1335404827, 1335404191, 1335404165, 1335404163, 1335404160]} final : False mtd_id 4302 list_pids : [1335407040] 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, '2561479') ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '20321063', '1335407040', None, None, None, None, None, '2561479')] time used for this insertion : 0.027770042419433594 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8204376697540283 time spend to save output : 0.027918100357055664 total time spend for step 4 : 2.848355770111084 step5:split_time_score Fri Feb 7 06:09:02 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 : ['20321063'] 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 : [('20321063',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20321063) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335407040: {'path': 'temp/1738904939_2040274_1335407040_060f1b730919115240eea5b599edf032.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 = 20321063; (('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 = 20321063 group by h (('06', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20321063 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 (20321063) 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 (20321063) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07022025 20321063 Nombre de photos uploadées : 19 / 23040 (0%) 07022025 20321063 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 07022025 20321063 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1335404191, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b1419b150f1a6b011d5c894ff64bdcd3.jpg', 'username': None, 'uploaded_at': 1738904468, 'text': 'image_07022025_06_00_14_10144.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335404165, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e865d4b8a42cd55580fc7bff1cb36758.jpg', 'username': None, 'uploaded_at': 1738904468, 'text': 'image_07022025_06_00_24_10139.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335404163, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8b18620e6196f491523ba312e9376275.jpg', 'username': None, 'uploaded_at': 1738904468, 'text': 'image_07022025_06_00_33_9127.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335404160, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/10cfb2365685a725487b4fbaa743eee6.jpg', 'username': None, 'uploaded_at': 1738904468, 'text': 'image_07022025_06_00_44_10138.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018858909606933594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20321063, '2025-02-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1584783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024153709411621094 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= 1584783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1584783, 'dashboard_run_id': 1592776, 'mtr_portfolio_id': 20319822, 'dashboard_result_id': 8752269, '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_P20319822_07-02-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20319825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20319826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20319827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20319828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20319829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20319830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20319831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20319832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20319833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20319834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20319835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20319836, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1592776, 'mtr_portfolio_id': 20320244, 'dashboard_result_id': 8752270, '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_P20320244_07-02-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20320254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320256, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1592776, 'mtr_portfolio_id': 20320591, 'dashboard_result_id': 8752271, '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_P20320591_07-02-2025_06_05_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20320594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320605, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1592776, 'mtr_portfolio_id': 20321063, 'dashboard_result_id': 8752272, '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_P20321063_07-02-2025_06_07_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20321064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20321065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20321066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20321067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20321068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20321069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20321070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20321071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20321072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20321073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20321074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20321075, '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 = 20319822 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': 2561265, 'mtr_portfolio_id': 20319822, 'created_at': datetime.datetime(2025, 2, 7, 5, 32, 31), 'result': '0.03844202721267339', 'result_long': None, 'result_double': None}] Qualite : 0.03844202721267339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20319822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20319822_07-02-2025_05_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20319822 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_P20319822_07-02-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20319825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20319826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20319827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20319828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20319829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20319830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20319831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20319832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20319833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20319834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20319835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20319836, 'pht': 3726}}" where mtr_portfolio_id = 20319822 and dashboard_run_id = 1592776 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`=20319822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8752269, 0.03844202721267339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20319822_07-02-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20319825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20319826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20319827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20319828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20319829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20319830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20319831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20319832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20319833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20319834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20319835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20319836, '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 = 20320244 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': 2561410, 'mtr_portfolio_id': 20320244, 'created_at': datetime.datetime(2025, 2, 7, 5, 46, 59), 'result': '0.03112599004572641', 'result_long': None, 'result_double': None}] Qualite : 0.03112599004572641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20320244 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20320244_07-02-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20320244 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_P20320244_07-02-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20320254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320256, 'pht': 3726}}" where mtr_portfolio_id = 20320244 and dashboard_run_id = 1592776 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`=20320244 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8752270, 0.03112599004572641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20320244_07-02-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20320254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320256, '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 = 20320591 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': 2561435, 'mtr_portfolio_id': 20320591, 'created_at': datetime.datetime(2025, 2, 7, 6, 5, 28), 'result': '0.039836311905120665', 'result_long': None, 'result_double': None}] Qualite : 0.039836311905120665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20320591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20320591_07-02-2025_06_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20320591 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_P20320591_07-02-2025_06_05_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20320594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320605, 'pht': 3726}}" where mtr_portfolio_id = 20320591 and dashboard_run_id = 1592776 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`=20320591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8752271, 0.039836311905120665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20320591_07-02-2025_06_05_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20320594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20320595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20320597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20320598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20320599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20320600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20320601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20320602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20320603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20320604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20320605, '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 = 20321063 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': 2561479, 'mtr_portfolio_id': 20321063, 'created_at': datetime.datetime(2025, 2, 7, 6, 8, 59), 'result': '0.045950469882550304', 'result_long': None, 'result_double': None}] Qualite : 0.045950469882550304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20321063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20321063_07-02-2025_06_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20321063 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_P20321063_07-02-2025_06_08_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20321064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20321065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20321066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20321067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20321068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20321069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20321070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20321071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20321072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20321073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20321074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20321075, 'pht': 3726}}" where mtr_portfolio_id = 20321063 and dashboard_run_id = 1592776 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`=20321063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8752272, 0.045950469882550304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20321063_07-02-2025_06_08_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20321064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20321065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20321066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20321067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20321068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20321069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20321070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20321071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20321072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20321073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20321074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20321075, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20319822,20320244,20320591,20321063) result : ((1335396954,), (1335397018,), (1335397039,), (1335397041,), (1335397043,), (1335397123,), (1335397125,), (1335397148,), (1335397190,), (1335397214,), (1335397210,), (1335397212,), (1335397604,), (1335397660,), (1335398174,), (1335398417,), (1335398419,), (1335398447,), (1335398478,), (1335398480,), (1335398482,), (1335398517,), (1335398520,), (1335398541,), (1335398544,), (1335398563,), (1335398567,), (1335398569,), (1335398643,), (1335398644,), (1335398645,), (1335398708,), (1335398709,), (1335398794,), (1335398923,), (1335399630,), (1335400290,), (1335400215,), (1335400815,), (1335400864,), (1335400902,), (1335401073,), (1335401777,), (1335401783,), (1335401823,), (1335402074,), (1335402082,), (1335402108,), (1335402538,), (1335402984,), (1335403341,), (1335403353,), (1335403355,), (1335403380,), (1335403382,), (1335403424,), (1335403425,), (1335403427,), (1335403429,), (1335403431,), (1335403531,), (1335403533,), (1335403535,), (1335403606,), (1335403609,), (1335403611,), (1335403614,), (1335403927,), (1335403932,), (1335403936,), (1335403940,), (1335404085,), (1335404105,), (1335404122,), (1335404140,), (1335404146,), (1335404239,), (1335404160,), (1335404163,), (1335404165,), (1335404191,), (1335404827,), (1335404905,), (1335404977,), (1335405048,), (1335405573,), (1335405575,), (1335405577,), (1335405579,), (1335405582,), (1335405744,), (1335405749,), (1335405751,), (1335405753,), (1335405818,), (1335407040,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07022025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20321063]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335407040] map_info['map_portfolio_photo'] : {20321063: [1335407040, 1335405818, 1335405753, 1335405751, 1335405749, 1335405744, 1335405582, 1335405579, 1335405577, 1335405575, 1335405573, 1335405048, 1335404977, 1335404905, 1335404827, 1335404191, 1335404165, 1335404163, 1335404160]} final : True mtd_id 4302 list_pids : [1335407040] Looping around the photos to save general results len do output : 1 /20321063Didn'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, '2561479') ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20321063', 'None', None, None, None, None, '2561479'), ('4302', '20321063', '1335407040', None, None, None, None, None, '2561479')] time used for this insertion : 0.03127741813659668 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3471195697784424 time spend to save output : 0.03151392936706543 total time spend for step 5 : 0.3786334991455078 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 (2561479) 1.91user 2.32system 0:07.55elapsed 56%CPU (0avgtext+0avgdata 155632maxresident)k 832inputs+5816outputs (15major+61993minor)pagefaults 0swaps