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 : 3057007 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 (2800347) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2800347) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745924 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2800347'] with mtr_portfolio_ids : ['22745924'] and first list_photo_ids : [] new path : /proc/3057007/ Name: python3 Umask: 0002 State: R (running) Tgid: 3057007 Ngid: 0 Pid: 3057007 PPid: 3057006 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3057007 NSpid: 3057007 NSpgid: 3056313 NSsid: 3056313 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98604 kB VmRSS: 98604 kB RssAnon: 60200 kB RssFile: 38404 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 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: 44 nonvoluntary_ctxt_switches: 156 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3057007', 'Ngid': '0', 'Pid': '3057007', 'PPid': '3057006', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3057007', 'NSpid': '3057007', 'NSpgid': '3056313', 'NSsid': '3056313', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98604 kB', 'VmRSS': '98604 kB', 'RssAnon': '60200 kB', 'RssFile': '38404 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 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': '44', 'nonvoluntary_ctxt_switches': '156'} ('datou_batch_current', '3057007', '1107228', '0', '1107228', '865976', '98604', b'', 'marlene', '2800347') 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 (22745924) 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 (2800347 ) ) 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 (22745924) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356569959, 'portfolio_id': 22745924}, {'photo_id': 1356569957, 'portfolio_id': 22745924}, {'photo_id': 1356569955, 'portfolio_id': 22745924}, {'photo_id': 1356569952, 'portfolio_id': 22745924}, {'photo_id': 1356569911, 'portfolio_id': 22745924}, {'photo_id': 1356569908, 'portfolio_id': 22745924}, {'photo_id': 1356569906, 'portfolio_id': 22745924}, {'photo_id': 1356569900, 'portfolio_id': 22745924}, {'photo_id': 1356569876, 'portfolio_id': 22745924}, {'photo_id': 1356569874, 'portfolio_id': 22745924}, {'photo_id': 1356569872, 'portfolio_id': 22745924}, {'photo_id': 1356569870, 'portfolio_id': 22745924}, {'photo_id': 1356569837, 'portfolio_id': 22745924}, {'photo_id': 1356569835, 'portfolio_id': 22745924}, {'photo_id': 1356569833, 'portfolio_id': 22745924}, {'photo_id': 1356569831, 'portfolio_id': 22745924}, {'photo_id': 1356569797, 'portfolio_id': 22745924}, {'photo_id': 1356569793, 'portfolio_id': 22745924}, {'photo_id': 1356569776, 'portfolio_id': 22745924}, {'photo_id': 1356569775, 'portfolio_id': 22745924}, {'photo_id': 1356569774, 'portfolio_id': 22745924}, {'photo_id': 1356569752, 'portfolio_id': 22745924}, {'photo_id': 1356569750, 'portfolio_id': 22745924}, {'photo_id': 1356569748, 'portfolio_id': 22745924}, {'photo_id': 1356569747, 'portfolio_id': 22745924}, {'photo_id': 1356569745, 'portfolio_id': 22745924}, {'photo_id': 1356569718, 'portfolio_id': 22745924}, {'photo_id': 1356569716, 'portfolio_id': 22745924}, {'photo_id': 1356569715, 'portfolio_id': 22745924}, {'photo_id': 1356569713, 'portfolio_id': 22745924}, {'photo_id': 1356569708, 'portfolio_id': 22745924}, {'photo_id': 1356569674, 'portfolio_id': 22745924}, {'photo_id': 1356569673, 'portfolio_id': 22745924}, {'photo_id': 1356569671, 'portfolio_id': 22745924}, {'photo_id': 1356569670, 'portfolio_id': 22745924}, {'photo_id': 1356569668, 'portfolio_id': 22745924}, {'photo_id': 1356569666, 'portfolio_id': 22745924}, {'photo_id': 1356569633, 'portfolio_id': 22745924}, {'photo_id': 1356569630, 'portfolio_id': 22745924}, {'photo_id': 1356569626, 'portfolio_id': 22745924}, {'photo_id': 1356569596, 'portfolio_id': 22745924}, {'photo_id': 1356569595, 'portfolio_id': 22745924}, {'photo_id': 1356569593, 'portfolio_id': 22745924}, {'photo_id': 1356569583, 'portfolio_id': 22745924}] map_portfolio_id_photo_id: {22745924: [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} ##### 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.015449047088623047 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 7 02:42:28 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 (22745924) 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 : 22745924 get user id for portfolio 22745924 get sub ptf for main ptf 22745924, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'Carton_brun', 'flou', 'mal_croppe', 'cartonnette', 'metal', 'autre_refus', 'environnement', 'papier', 'kraft'] 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`=22745924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','flou','mal_croppe','cartonnette','metal','autre_refus','environnement','papier','kraft')) 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`=22745924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','flou','mal_croppe','cartonnette','metal','autre_refus','environnement','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22745924, 'sub_port_id': 22745932, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159557, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'autre_refus': {'main_port_id': 22745924, 'sub_port_id': 22745933, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159558, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'environnement': {'main_port_id': 22745924, 'sub_port_id': 22745934, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159559, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'kraft': {'main_port_id': 22745924, 'sub_port_id': 22745935, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159560, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'plastique': {'main_port_id': 22745924, 'sub_port_id': 22745936, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159561, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'Carton_gris': {'main_port_id': 22745924, 'sub_port_id': 22745937, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159562, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'mal_croppe': {'main_port_id': 22745924, 'sub_port_id': 22745938, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159563, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'papier': {'main_port_id': 22745924, 'sub_port_id': 22745939, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159564, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'Carton_brun': {'main_port_id': 22745924, 'sub_port_id': 22745940, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159565, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'flou': {'main_port_id': 22745924, 'sub_port_id': 22745941, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159566, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'metal': {'main_port_id': 22745924, 'sub_port_id': 22745942, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159567, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}, 'cartonnette': {'main_port_id': 22745924, 'sub_port_id': 22745943, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159568, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745932 , 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=22745924 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 (22745932) result : ((1356569819,), (1356569821,), (1356569822,), (1356569823,), (1356569824,), (1356569854,), (1356569855,), (1356569856,), (1356569884,), (1356569916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745933 , 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=22745924 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 (22745933) result : ((1356569728,), (1356569917,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745934 , 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=22745924 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 (22745934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745935 , 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=22745924 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 (22745935) result : ((1356569828,), (1356569918,), (1356569985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745936 , 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=22745924 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 (22745936) result : ((1356569731,), (1356569765,), (1356569982,), (1356569983,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745937 , 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=22745924 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 (22745937) result : ((1356569729,), (1356569730,), (1356569825,), (1356569826,), (1356569857,), (1356569890,), (1356569976,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745938 , 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=22745924 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 (22745938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745939 , 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=22745924 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 (22745939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745940 , 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=22745924 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 (22745940) result : ((1356569863,), (1356569864,), (1356569865,), (1356569981,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745941 , 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=22745924 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 (22745941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745942 , 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=22745924 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 (22745942) result : ((1356569866,), (1356569987,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22745943 , 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=22745924 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 (22745943) result : ((1356569859,), (1356569860,), (1356569861,), (1356569862,), (1356569891,), (1356569966,), (1356569979,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22745924) result : ((1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) 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 (1356569900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22745924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','flou','mal_croppe','cartonnette','metal','autre_refus','environnement','papier','kraft')) 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`=22745924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','plastique','Carton_brun','flou','mal_croppe','cartonnette','metal','autre_refus','environnement','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22745924, 'sub_port_id': 22745944, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159569, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'autre_refus': {'main_port_id': 22745924, 'sub_port_id': 22745945, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159570, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'environnement': {'main_port_id': 22745924, 'sub_port_id': 22745946, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159571, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'kraft': {'main_port_id': 22745924, 'sub_port_id': 22745947, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159572, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'plastique': {'main_port_id': 22745924, 'sub_port_id': 22745948, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159573, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'Carton_gris': {'main_port_id': 22745924, 'sub_port_id': 22745949, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159574, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'mal_croppe': {'main_port_id': 22745924, 'sub_port_id': 22745950, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159575, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'papier': {'main_port_id': 22745924, 'sub_port_id': 22745951, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159576, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'Carton_brun': {'main_port_id': 22745924, 'sub_port_id': 22745952, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159577, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'flou': {'main_port_id': 22745924, 'sub_port_id': 22745953, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159578, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'metal': {'main_port_id': 22745924, 'sub_port_id': 22745954, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159579, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}, 'cartonnette': {'main_port_id': 22745924, 'sub_port_id': 22745955, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15159580, 'last_updated_at': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 2, 38, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 2, 35, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22745955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22745943 lien utilise dans velours : https://www.fotonower.com/velours/22745944,22745945,22745946,22745947,22745948,22745949,22745950,22745951,22745952,22745953,22745954,22745955?tags=Teint_Dans_La_Masse,autre_refus,environnement,kraft,plastique,Carton_gris,mal_croppe,papier,Carton_brun,flou,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] map_info['map_portfolio_photo'] : {22745924: [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] Looping around the photos to save general results len do output : 1 /22745924. 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, '2800347') ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22745924', "{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}", None, None, None, None, '2800347'), ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347')] time used for this insertion : 0.014721393585205078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4907217025756836 time spend to save output : 0.015035152435302734 total time spend for step 1 : 0.5057568550109863 step2:final Wed May 7 02:42:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) 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 22745924 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356569596,1356569595,1356569593,1356569583,1356569633,1356569630,1356569626,1356569674,1356569673,1356569671,1356569670,1356569668,1356569666,1356569718,1356569716,1356569715,1356569713,1356569708,1356569752,1356569750,1356569748,1356569747,1356569745,1356569776,1356569775,1356569774,1356569797,1356569793,1356569837,1356569835,1356569833,1356569831,1356569876,1356569874,1356569872,1356569870,1356569911,1356569908,1356569906,1356569959,1356569900,1356569957,1356569955,1356569952); 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([22745924]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} new output for save of step final : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] map_info['map_portfolio_photo'] : {22745924: [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] Looping around the photos to save general results len do output : 12 /1356569959.Didn't retrieve data . /1356569957.Didn't retrieve data . /1356569955.Didn't retrieve data . /1356569952.Didn't retrieve data . /1356569911.Didn't retrieve data . /1356569908.Didn't retrieve data . /1356569906.Didn't retrieve data . /1356569900.Didn't retrieve data . /1356569876.Didn't retrieve data . /1356569874.Didn't retrieve data . /1356569872.Didn't retrieve data . /1356569870.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, '2800347') ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '22745924', '1356569959', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569957', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569955', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569952', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569911', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569908', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569906', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569900', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569876', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569874', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569872', '0.03376283390574478', None, None, None, None, '2800347'), ('4302', '22745924', '1356569870', '0.03376283390574478', None, None, None, None, '2800347')] time used for this insertion : 0.014231204986572266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06708717346191406 time spend to save output : 0.014842510223388672 total time spend for step 2 : 0.08192968368530273 step3:velours_tree Wed May 7 02:42:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} input_args_next_step : {22745924: ()} output_args : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} args : 22745924 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 : ({'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) 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([22745924]) 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.3206901550292969 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.3207385540008545 step4:send_mail_cod Wed May 7 02:42:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} input_args_next_step : {1356569959: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569959 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569957 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569955 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569952 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569911 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569908 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569906 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569900 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569876 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569874 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569872 depend.output_id : 0 input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ()} output_args : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',)} args : 1356569870 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} input_args_next_step : {1356569959: ('0.03376283390574478',), 1356569957: ('0.03376283390574478',), 1356569955: ('0.03376283390574478',), 1356569952: ('0.03376283390574478',), 1356569911: ('0.03376283390574478',), 1356569908: ('0.03376283390574478',), 1356569906: ('0.03376283390574478',), 1356569900: ('0.03376283390574478',), 1356569876: ('0.03376283390574478',), 1356569874: ('0.03376283390574478',), 1356569872: ('0.03376283390574478',), 1356569870: ('0.03376283390574478',), 22745924: ()} output_args : {22745924: [{'Teint_Dans_La_Masse': 22745932, 'autre_refus': 22745933, 'environnement': 22745934, 'kraft': 22745935, 'plastique': 22745936, 'Carton_gris': 22745937, 'mal_croppe': 22745938, 'papier': 22745939, 'Carton_brun': 22745940, 'flou': 22745941, 'metal': 22745942, 'cartonnette': 22745943}]} args : 22745924 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 :13, first value : ('0.03376283390574478',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) 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 (1356569959,1356569957,1356569955,1356569952,1356569911,1356569908,1356569906,1356569900,1356569876,1356569874,1356569872,1356569870) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356569870 begin to download photo : 1356569876 begin to download photo : 1356569908 begin to download photo : 1356569955 download finish for photo 1356569955 begin to download photo : 1356569957 download finish for photo 1356569870 begin to download photo : 1356569872 download finish for photo 1356569876 begin to download photo : 1356569900 download finish for photo 1356569908 begin to download photo : 1356569911 download finish for photo 1356569900 begin to download photo : 1356569906 download finish for photo 1356569957 begin to download photo : 1356569959 download finish for photo 1356569872 begin to download photo : 1356569874 download finish for photo 1356569911 begin to download photo : 1356569952 download finish for photo 1356569959 download finish for photo 1356569952 download finish for photo 1356569874 download finish for photo 1356569906 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22745924_07-05-2025_02_42_29.pdf 22745933 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=22745933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569728: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788382_0.png', 1356569917: '1746578412_2073847_1356569793_7a93aed4a7b9a322c1ee6c0d05e18470_rle_crop_3787790132_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/86087f3a0479f0162992bd9b14b9ff9a_52304325.png change filename to text .imagette227459331746578549/ imagette227459331746578549/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788382_0.png.png imagette227459331746578549/1746578412_2073847_1356569793_7a93aed4a7b9a322c1ee6c0d05e18470_rle_crop_3787790132_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f28e19374c07572cc7fc03fe1655add1_91854976.png imagette227459331746578549 22745935 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=22745935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569828: '1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789386_0.png', 1356569918: '1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790118_0.png', 1356569985: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801682_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/db144a8fa76e9a4485aa475e8be10fc0_85215913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/431019781b4f810e0a8b8fe297fec1a1_19745340.png change filename to text .imagette227459351746578549/ imagette227459351746578549/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801682_0.png.png imagette227459351746578549/1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790118_0.png.png imagette227459351746578549/1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789386_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/29b3ca810847add4c806341aade1ee0d_39346659.png imagette227459351746578549 22745936 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=22745936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569731: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788386_0.png', 1356569765: '1746578127_4120537_1356569674_4716a9f3419fde7210149059e8db30e1_rle_crop_3787788620_0.png', 1356569982: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801678_0.png', 1356569983: '1746578487_4130087_1356569870_628d8427f2f5d3447dc1d42764586d79_rle_crop_3787802208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/08dde9004596651ac5d595af1b522e19_59716359.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cbf439ad400d79df8a9d74b94d5a5bc8_24009571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c914154ab497c064cb9cce5a054d64d6_44509969.png change filename to text .imagette227459361746578550/ imagette227459361746578550/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801678_0.png.png imagette227459361746578550/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788386_0.png.png imagette227459361746578550/1746578127_4120537_1356569674_4716a9f3419fde7210149059e8db30e1_rle_crop_3787788620_0.png.png imagette227459361746578550/1746578487_4130087_1356569870_628d8427f2f5d3447dc1d42764586d79_rle_crop_3787802208_0.png.png imagette227459381746578550/ imagette227459411746578550/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/27a9e33a61daeba794f07a1663771c4f_208416.png imagette227459361746578550 22745938 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=22745938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227459381746578550 22745941 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=22745941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227459411746578550 22745942 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=22745942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569866: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789690_0.png', 1356569987: '1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801679_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a85f746231d28f39dfaeab3583a3845d_11533257.png change filename to text .imagette227459421746578550/ imagette227459421746578550/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789690_0.png.png imagette227459421746578550/1746578487_4130087_1356569874_8403828c91700154e475bfd785c2a261_rle_crop_3787801679_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c84059b2c259583fa2608177c4ec27d6_33900409.png imagette227459421746578550 22745943 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=22745943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569859: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789639_0.png', 1356569860: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789658_0.png', 1356569861: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789683_0.png', 1356569862: '1746578293_2072578_1356569708_392626b642c0e78bde6377f63dba0e24_rle_crop_3787789713_0.png', 1356569891: '1746578365_4126757_1356569831_628dec1841ec219bf3bc9ece74353762_rle_crop_3787789913_0.png', 1356569966: '1746578473_2074594_1356569876_9e266139c68341753aeba434d21e7028_rle_crop_3787799616_0.png', 1356569979: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801704_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6033ce3552ac8459305770188a98567f_58926472.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a11df64ce40ea45d81e8b8cbec20303a_20969313.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f8524543bdb5c8e4907fef73ce4c4766_98817338.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/067524cc062d18dc2fe361ff9df1ff83_98935818.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7a866a8eaa71aadc12f055da20a6ea99_54704809.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fdd6053503504c616130853ac1fda019_67376883.png change filename to text .imagette227459431746578550/ imagette227459431746578550/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801704_0.png.png imagette227459431746578550/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789639_0.png.png imagette227459431746578550/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789683_0.png.png imagette227459431746578550/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789658_0.png.png imagette227459431746578550/1746578365_4126757_1356569831_628dec1841ec219bf3bc9ece74353762_rle_crop_3787789913_0.png.png imagette227459431746578550/1746578293_2072578_1356569708_392626b642c0e78bde6377f63dba0e24_rle_crop_3787789713_0.png.png imagette227459431746578550/1746578473_2074594_1356569876_9e266139c68341753aeba434d21e7028_rle_crop_3787799616_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6005e332f32d7364d958d590a7e905d2_48230476.png imagette227459431746578550 22745932 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=22745932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569819: '1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789363_0.png', 1356569821: '1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789364_0.png', 1356569822: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789369_0.png', 1356569823: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789373_0.png', 1356569824: '1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789370_0.png', 1356569854: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789643_0.png', 1356569855: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789672_0.png', 1356569856: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789687_0.png', 1356569884: '1746578353_2073151_1356569797_6f4081d3ce26a043b4f333a30f7741db_rle_crop_3787789884_0.png', 1356569916: '1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790119_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/42da948a14f9387df43c7f6fbd862051_64716627.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7ac20c3344d47d87066365761e421035_9784844.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f9a63a86491873dc75ffb01781378c46_93966360.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e171005465f513576715fb1f5728e00a_5570850.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cd765dcb100717d900dd342ccaf9a1eb_44664628.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/354cca5b6c3ceaf93285625280418e86_1457791.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/67fcb47e73d877b12c944d468cd9956e_4660688.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/633ca7c721022a6815b4ff706d968e70_62365840.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6b73220b8d6e5f0feb87f8e37447ed39_18495706.png change filename to text .imagette227459321746578550/ imagette227459321746578550/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789687_0.png.png imagette227459321746578550/1746578412_2073847_1356569837_f91e7e0caf846302ff3dc767ee09bc50_rle_crop_3787790119_0.png.png imagette227459321746578550/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789373_0.png.png imagette227459321746578550/1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789363_0.png.png imagette227459321746578550/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789370_0.png.png imagette227459321746578550/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789672_0.png.png imagette227459321746578550/1746578353_2073151_1356569797_6f4081d3ce26a043b4f333a30f7741db_rle_crop_3787789884_0.png.png imagette227459321746578550/1746578246_3684302_1356569747_aff134cbbf852912a616d5b42c8103ba_rle_crop_3787789369_0.png.png imagette227459321746578550/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789643_0.png.png imagette227459321746578550/1746578246_3684302_1356569748_17cb9cd48bb5e913d544e950f6229252_rle_crop_3787789364_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/191809116a430a2d004c0340769f7c2b_43179309.png imagette227459321746578550 22745937 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=22745937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569729: '1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788377_0.png', 1356569730: '1746578051_2070418_1356569593_4ebb6363c4e14b776da1d1e622c0fbbc_rle_crop_3787788390_0.png', 1356569825: '1746578246_3684302_1356569750_123b8005dbd266e21bb77204196d8212_rle_crop_3787789353_0.png', 1356569826: '1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789384_0.png', 1356569857: '1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789641_0.png', 1356569890: '1746578365_4126757_1356569835_110edb83c3c7c68387a359c28f34fe0e_rle_crop_3787789889_0.png', 1356569976: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801700_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3371689b5ba79ae9cea512fa6f1095a9_96189539.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/47fd36fa029ee11c57c301889fa57fad_91624524.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/21e68f30a163dec3f009d4d53d00aae3_10714136.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fff9c2eefd30bc9699671aacebef2659_93363263.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/eaa1bef5beabb6d41fc805c66e35955a_38601348.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4a14813a873d2ca1427df3b58f64dd9b_29817732.png change filename to text .imagette227459371746578551/ imagette227459371746578551/1746578246_3684302_1356569750_123b8005dbd266e21bb77204196d8212_rle_crop_3787789353_0.png.png imagette227459371746578551/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801700_0.png.png imagette227459371746578551/1746578293_2072578_1356569752_4f56787823a5ed0fb9f98cb6d9de51f2_rle_crop_3787789641_0.png.png imagette227459371746578551/1746578246_3684302_1356569745_f7493885e7c78959f11708f8a02fa886_rle_crop_3787789384_0.png.png imagette227459371746578551/1746578051_2070418_1356569595_8b63281f6280593767d3436b037a7588_rle_crop_3787788377_0.png.png imagette227459371746578551/1746578365_4126757_1356569835_110edb83c3c7c68387a359c28f34fe0e_rle_crop_3787789889_0.png.png imagette227459371746578551/1746578051_2070418_1356569593_4ebb6363c4e14b776da1d1e622c0fbbc_rle_crop_3787788390_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/67ced182b2c43cc4d14740a363372bc7_48858642.png imagette227459371746578551 22745940 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=22745940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356569863: '1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789665_0.png', 1356569864: '1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789691_0.png', 1356569865: '1746578293_2072578_1356569713_5f7ed8271b752fb148bf4e80932008ee_rle_crop_3787789702_0.png', 1356569981: '1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801701_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4e44d1b00fa27a13d1b424e4c29421a2_25097583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/572247b549e72ccc515ca05cf6722f42_39189789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/52caf6771f23eefd9d69b31192763b36_75707464.png change filename to text .imagette227459401746578551/ imagette227459401746578551/1746578293_2072578_1356569713_5f7ed8271b752fb148bf4e80932008ee_rle_crop_3787789702_0.png.png imagette227459401746578551/1746578487_4130087_1356569872_0fbbb5300ed88a516fa4128e6fc19f02_rle_crop_3787801701_0.png.png imagette227459401746578551/1746578293_2072578_1356569716_65b21cc4b3370253490066fc41edd618_rle_crop_3787789665_0.png.png imagette227459401746578551/1746578293_2072578_1356569715_fc4eb9785e5ab2017bcb865f61f75983_rle_crop_3787789691_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d089127d7bd3c89062eef53106735906_99601097.png imagette227459401746578551 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22745924 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22745944,22745945,22745946,22745947,22745948,22745949,22745950,22745951,22745952,22745953,22745954,22745955?tags=Teint_Dans_La_Masse,autre_refus,environnement,kraft,plastique,Carton_gris,mal_croppe,papier,Carton_brun,flou,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1356569959] : ('0.03376283390574478',) no score found for photo 1356569959 We are sending mail with results at report@fotonower.com args[1356569957] : ('0.03376283390574478',) no score found for photo 1356569957 We are sending mail with results at report@fotonower.com args[1356569955] : ('0.03376283390574478',) no score found for photo 1356569955 We are sending mail with results at report@fotonower.com args[1356569952] : ('0.03376283390574478',) no score found for photo 1356569952 We are sending mail with results at report@fotonower.com args[1356569911] : ('0.03376283390574478',) no score found for photo 1356569911 We are sending mail with results at report@fotonower.com args[1356569908] : ('0.03376283390574478',) no score found for photo 1356569908 We are sending mail with results at report@fotonower.com args[1356569906] : ('0.03376283390574478',) no score found for photo 1356569906 We are sending mail with results at report@fotonower.com args[1356569900] : ('0.03376283390574478',) no score found for photo 1356569900 We are sending mail with results at report@fotonower.com args[1356569876] : ('0.03376283390574478',) no score found for photo 1356569876 We are sending mail with results at report@fotonower.com args[1356569874] : ('0.03376283390574478',) no score found for photo 1356569874 We are sending mail with results at report@fotonower.com args[1356569872] : ('0.03376283390574478',) no score found for photo 1356569872 We are sending mail with results at report@fotonower.com args[1356569870] : ('0.03376283390574478',) no score found for photo 1356569870 We are sending mail with results at report@fotonower.com refus_total : 0.03376283390574478 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=22745924 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_P22745924_07-05-2025_02_42_29.pdf results_Auto_P22745924_07-05-2025_02_42_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_42_29.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','22745924','results_Auto_P22745924_07-05-2025_02_42_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_42_29.pdf','pdf','','0.2','0.03376283390574478') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] map_info['map_portfolio_photo'] : {22745924: [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : False mtd_id 4302 list_pids : [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] 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, '2800347') ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22745924', '1356569959', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347')] time used for this insertion : 0.01473689079284668 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.720360517501831 time spend to save output : 0.015008211135864258 total time spend for step 4 : 3.7353687286376953 step5:split_time_score Wed May 7 02:42:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22745924'] 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 : [('22745924',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22745924) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356569955: {'path': 'temp/1746578549_3057007_1356569955_7e99fe0b57b147a2eefa4e945b6cc68c.jpg', 'extension': 'jpg'}, 1356569957: {'path': 'temp/1746578549_3057007_1356569957_9fbb938f4d684d4a0263d66875c3dd36.jpg', 'extension': 'jpg'}, 1356569959: {'path': 'temp/1746578549_3057007_1356569959_b09897ce30662a579decdef3adb82aae.jpg', 'extension': 'jpg'}, 1356569908: {'path': 'temp/1746578549_3057007_1356569908_98ef98b3b95788a7621aa921e02558ac.jpg', 'extension': 'jpg'}, 1356569911: {'path': 'temp/1746578549_3057007_1356569911_5b82c40bff31ff1d82796d830d75cf65.jpg', 'extension': 'jpg'}, 1356569952: {'path': 'temp/1746578549_3057007_1356569952_4541268ee9fc33ad89a2c01240e0206a.jpg', 'extension': 'jpg'}, 1356569870: {'path': 'temp/1746578549_3057007_1356569870_628d8427f2f5d3447dc1d42764586d79.jpg', 'extension': 'jpg'}, 1356569872: {'path': 'temp/1746578549_3057007_1356569872_0fbbb5300ed88a516fa4128e6fc19f02.jpg', 'extension': 'jpg'}, 1356569874: {'path': 'temp/1746578549_3057007_1356569874_8403828c91700154e475bfd785c2a261.jpg', 'extension': 'jpg'}, 1356569876: {'path': 'temp/1746578549_3057007_1356569876_9e266139c68341753aeba434d21e7028.jpg', 'extension': 'jpg'}, 1356569900: {'path': 'temp/1746578549_3057007_1356569900_80b633f45d3a64f5c1260d8696ccfa42.jpg', 'extension': 'jpg'}, 1356569906: {'path': 'temp/1746578549_3057007_1356569906_dd7f95308090c69224b5cbc5941c8485.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 = 22745924; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22745924 group by h (('02', 44),) 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=22745924 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 (22745924) 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 (22745924) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22745924 Nombre de photos uploadées : 44 / 23040 (0%) 07052025 22745924 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 07052025 22745924 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1356569596, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1db22678f41627c764fd1c2f2e13c113.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_14_10137.jpg'}, {'photo_id': 1356569595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8b63281f6280593767d3436b037a7588.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_24_10135.jpg'}, {'photo_id': 1356569593, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4ebb6363c4e14b776da1d1e622c0fbbc.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_34_10135.jpg'}, {'photo_id': 1356569583, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4fa3d8a6a1b9fcefeb4b05c4abece10b.jpg', 'username': None, 'uploaded_at': 1746577867, 'text': 'image_07052025_02_30_44_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002107858657836914 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22745924, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028031587600708008 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788754, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10360118, '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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788754, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10360119, '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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788754, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10360120, '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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1788754, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10360121, '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_P22745924_07-05-2025_02_38_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22744354 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': 2800188, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 2, 5), 'result': '0.035308623964605136', 'result_long': None, 'result_double': None}] Qualite : 0.035308623964605136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1788755 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360118, 0.035308623964605136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800250, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 2, 21, 5), 'result': '0.05543965668093365', 'result_long': None, 'result_double': None}] Qualite : 0.05543965668093365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1788755 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360119, 0.05543965668093365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800294, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 2, 34, 58), 'result': '0.04177400860934052', 'result_long': None, 'result_double': None}] Qualite : 0.04177400860934052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1788755 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360120, 0.04177400860934052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800347, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 2, 42, 29), 'result': '0.03376283390574478', 'result_long': None, 'result_double': None}] Qualite : 0.03376283390574478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_42_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_02_42_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1788755 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10360121, 0.03376283390574478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_42_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 (22744354,22744792,22745552,22745924) result : ((1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22745924]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] map_info['map_portfolio_photo'] : {22745924: [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870, 1356569837, 1356569835, 1356569833, 1356569831, 1356569797, 1356569793, 1356569776, 1356569775, 1356569774, 1356569752, 1356569750, 1356569748, 1356569747, 1356569745, 1356569718, 1356569716, 1356569715, 1356569713, 1356569708, 1356569674, 1356569673, 1356569671, 1356569670, 1356569668, 1356569666, 1356569633, 1356569630, 1356569626, 1356569596, 1356569595, 1356569593, 1356569583]} final : True mtd_id 4302 list_pids : [1356569959, 1356569957, 1356569955, 1356569952, 1356569911, 1356569908, 1356569906, 1356569900, 1356569876, 1356569874, 1356569872, 1356569870] Looping around the photos to save general results len do output : 1 /22745924Didn'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, '2800347') ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347') ('4302', None, None, None, None, None, None, None, '2800347') ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22745924', 'None', None, None, None, None, '2800347'), ('4302', '22745924', '1356569959', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569957', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569955', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569952', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569911', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569908', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569906', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569900', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569876', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569874', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569872', None, None, None, None, None, '2800347'), ('4302', '22745924', '1356569870', None, None, None, None, None, '2800347')] time used for this insertion : 0.015926361083984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36361002922058105 time spend to save output : 0.01616215705871582 total time spend for step 5 : 0.3797721862792969 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 (2800347) 2.35user 2.12system 0:08.23elapsed 54%CPU (0avgtext+0avgdata 160148maxresident)k 288inputs+11288outputs (0major+78545minor)pagefaults 0swaps