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 : 3090121 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 (2593018) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2593018) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605068 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2593018'] with mtr_portfolio_ids : ['20605068'] and first list_photo_ids : [] new path : /proc/3090121/ Name: python3 Umask: 0002 State: R (running) Tgid: 3090121 Ngid: 0 Pid: 3090121 PPid: 3090120 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3090121 NSpid: 3090121 NSpgid: 3086753 NSsid: 3086753 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98768 kB VmRSS: 98768 kB RssAnon: 59752 kB RssFile: 39016 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 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: 47 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3090121', 'Ngid': '0', 'Pid': '3090121', 'PPid': '3090120', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3090121', 'NSpid': '3090121', 'NSpgid': '3086753', 'NSsid': '3086753', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98768 kB', 'VmRSS': '98768 kB', 'RssAnon': '59752 kB', 'RssFile': '39016 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '47', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3090121', '1106928', '0', '1106928', '865680', '98768', b'', 'marlene', '2593018') 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 (20605068) 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 (2593018 ) ) 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 (20605068) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338144878, 'portfolio_id': 20605068}, {'photo_id': 1338144876, 'portfolio_id': 20605068}, {'photo_id': 1338144873, 'portfolio_id': 20605068}, {'photo_id': 1338144870, 'portfolio_id': 20605068}, {'photo_id': 1338144868, 'portfolio_id': 20605068}, {'photo_id': 1338144840, 'portfolio_id': 20605068}, {'photo_id': 1338144834, 'portfolio_id': 20605068}, {'photo_id': 1338144831, 'portfolio_id': 20605068}, {'photo_id': 1338144828, 'portfolio_id': 20605068}, {'photo_id': 1338144822, 'portfolio_id': 20605068}, {'photo_id': 1338144775, 'portfolio_id': 20605068}, {'photo_id': 1338144772, 'portfolio_id': 20605068}, {'photo_id': 1338144769, 'portfolio_id': 20605068}, {'photo_id': 1338144767, 'portfolio_id': 20605068}, {'photo_id': 1338144726, 'portfolio_id': 20605068}, {'photo_id': 1338144716, 'portfolio_id': 20605068}, {'photo_id': 1338144713, 'portfolio_id': 20605068}, {'photo_id': 1338144710, 'portfolio_id': 20605068}, {'photo_id': 1338144708, 'portfolio_id': 20605068}, {'photo_id': 1338144514, 'portfolio_id': 20605068}, {'photo_id': 1338144510, 'portfolio_id': 20605068}, {'photo_id': 1338144501, 'portfolio_id': 20605068}, {'photo_id': 1338144498, 'portfolio_id': 20605068}, {'photo_id': 1338144495, 'portfolio_id': 20605068}, {'photo_id': 1338144415, 'portfolio_id': 20605068}, {'photo_id': 1338144408, 'portfolio_id': 20605068}, {'photo_id': 1338144406, 'portfolio_id': 20605068}, {'photo_id': 1338144403, 'portfolio_id': 20605068}, {'photo_id': 1338144400, 'portfolio_id': 20605068}, {'photo_id': 1338144398, 'portfolio_id': 20605068}, {'photo_id': 1338144373, 'portfolio_id': 20605068}, {'photo_id': 1338144371, 'portfolio_id': 20605068}, {'photo_id': 1338144366, 'portfolio_id': 20605068}, {'photo_id': 1338144361, 'portfolio_id': 20605068}, {'photo_id': 1338144317, 'portfolio_id': 20605068}, {'photo_id': 1338144307, 'portfolio_id': 20605068}, {'photo_id': 1338144301, 'portfolio_id': 20605068}, {'photo_id': 1338144282, 'portfolio_id': 20605068}, {'photo_id': 1338144262, 'portfolio_id': 20605068}, {'photo_id': 1338144186, 'portfolio_id': 20605068}, {'photo_id': 1338144172, 'portfolio_id': 20605068}, {'photo_id': 1338144169, 'portfolio_id': 20605068}, {'photo_id': 1338144166, 'portfolio_id': 20605068}, {'photo_id': 1338144162, 'portfolio_id': 20605068}, {'photo_id': 1338144157, 'portfolio_id': 20605068}, {'photo_id': 1338144129, 'portfolio_id': 20605068}, {'photo_id': 1338144127, 'portfolio_id': 20605068}, {'photo_id': 1338144126, 'portfolio_id': 20605068}] map_portfolio_id_photo_id: {20605068: [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822, 1338144775, 1338144772, 1338144769, 1338144767, 1338144726, 1338144716, 1338144713, 1338144710, 1338144708, 1338144514, 1338144510, 1338144501, 1338144498, 1338144495, 1338144415, 1338144408, 1338144406, 1338144403, 1338144400, 1338144398, 1338144373, 1338144371, 1338144366, 1338144361, 1338144317, 1338144307, 1338144301, 1338144282, 1338144262, 1338144186, 1338144172, 1338144169, 1338144166, 1338144162, 1338144157, 1338144129, 1338144127, 1338144126]} ##### 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.015439748764038086 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 17 11:40:58 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 (20605068) 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 : 20605068 get user id for portfolio 20605068 get sub ptf for main ptf 20605068, type 3726 and hashtags ['Carton_gris', 'papier', 'metal', 'Teint_Dans_La_Masse', 'kraft', 'flou', 'mal_croppe', 'cartonnette', 'environnement', 'Carton_brun', 'plastique', 'autre_refus'] 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`=20605068 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','Teint_Dans_La_Masse','kraft','flou','mal_croppe','cartonnette','environnement','Carton_brun','plastique','autre_refus')) 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`=20605068 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','Teint_Dans_La_Masse','kraft','flou','mal_croppe','cartonnette','environnement','Carton_brun','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20605068, 'sub_port_id': 20605077, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262519, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'autre_refus': {'main_port_id': 20605068, 'sub_port_id': 20605078, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262520, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'metal': {'main_port_id': 20605068, 'sub_port_id': 20605079, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262521, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'cartonnette': {'main_port_id': 20605068, 'sub_port_id': 20605080, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262522, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'plastique': {'main_port_id': 20605068, 'sub_port_id': 20605081, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262523, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 20605068, 'sub_port_id': 20605082, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262524, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'Carton_gris': {'main_port_id': 20605068, 'sub_port_id': 20605083, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262525, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'environnement': {'main_port_id': 20605068, 'sub_port_id': 20605084, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262526, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'mal_croppe': {'main_port_id': 20605068, 'sub_port_id': 20605085, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262527, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'flou': {'main_port_id': 20605068, 'sub_port_id': 20605086, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262528, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'kraft': {'main_port_id': 20605068, 'sub_port_id': 20605087, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262529, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}, 'papier': {'main_port_id': 20605068, 'sub_port_id': 20605088, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262530, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20605077 , 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=20605068 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 (20605077) result : ((1338144389,), (1338144390,), (1338144529,), (1338144530,), (1338144728,), (1338144729,), (1338144730,), (1338144731,), (1338144742,), (1338144743,), (1338144816,), (1338144817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605078 , 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=20605068 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 (20605078) result : ((1338144386,), (1338144521,), (1338144720,), (1338144721,), (1338144736,), (1338144813,), (1338144863,), (1338144864,), (1338144893,), (1338144906,), (1338144907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605079 , 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=20605068 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 (20605079) result : ((1338144867,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605080 , 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=20605068 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 (20605080) result : ((1338144388,), (1338144524,), (1338144525,), (1338144898,), (1338144899,), (1338144900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605081 , 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=20605068 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 (20605081) result : ((1338144391,), (1338144392,), (1338144393,), (1338144865,), (1338144901,), (1338144910,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605082 , 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=20605068 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 (20605082) result : ((1338144717,), (1338144718,), (1338144719,), (1338144734,), (1338144735,), (1338144811,), (1338144812,), (1338144861,), (1338144862,), (1338144891,), (1338144892,), (1338144905,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605083 , 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=20605068 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 (20605083) result : ((1338144522,), (1338144723,), (1338144724,), (1338144725,), (1338144738,), (1338144814,), (1338144895,), (1338144896,), (1338144908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605084 , 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=20605068 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 (20605084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605085 , 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=20605068 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 (20605085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605086 , 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=20605068 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 (20605086) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605087 , 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=20605068 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 (20605087) result : ((1338144902,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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 20605088 , 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=20605068 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 (20605088) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20605068) result : ((1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) 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 (1338144400) 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`=20605068 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','Teint_Dans_La_Masse','kraft','flou','mal_croppe','cartonnette','environnement','Carton_brun','plastique','autre_refus')) 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`=20605068 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','metal','Teint_Dans_La_Masse','kraft','flou','mal_croppe','cartonnette','environnement','Carton_brun','plastique','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20605068, 'sub_port_id': 20605089, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262531, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'autre_refus': {'main_port_id': 20605068, 'sub_port_id': 20605090, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262532, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'metal': {'main_port_id': 20605068, 'sub_port_id': 20605091, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262533, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'cartonnette': {'main_port_id': 20605068, 'sub_port_id': 20605092, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262534, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'plastique': {'main_port_id': 20605068, 'sub_port_id': 20605093, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262535, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20605068, 'sub_port_id': 20605094, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262536, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'Carton_gris': {'main_port_id': 20605068, 'sub_port_id': 20605095, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262537, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'environnement': {'main_port_id': 20605068, 'sub_port_id': 20605096, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262538, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'mal_croppe': {'main_port_id': 20605068, 'sub_port_id': 20605097, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262539, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'flou': {'main_port_id': 20605068, 'sub_port_id': 20605098, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262540, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'kraft': {'main_port_id': 20605068, 'sub_port_id': 20605099, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262541, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}, 'papier': {'main_port_id': 20605068, 'sub_port_id': 20605100, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13262542, 'last_updated_at': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 11, 38, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 11, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20605100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20605088 lien utilise dans velours : https://www.fotonower.com/velours/20605089,20605090,20605091,20605092,20605093,20605094,20605095,20605096,20605097,20605098,20605099,20605100?tags=Carton_brun,autre_refus,metal,cartonnette,plastique,Teint_Dans_La_Masse,Carton_gris,environnement,mal_croppe,flou,kraft,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20605068]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] map_info['map_portfolio_photo'] : {20605068: [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822, 1338144775, 1338144772, 1338144769, 1338144767, 1338144726, 1338144716, 1338144713, 1338144710, 1338144708, 1338144514, 1338144510, 1338144501, 1338144498, 1338144495, 1338144415, 1338144408, 1338144406, 1338144403, 1338144400, 1338144398, 1338144373, 1338144371, 1338144366, 1338144361, 1338144317, 1338144307, 1338144301, 1338144282, 1338144262, 1338144186, 1338144172, 1338144169, 1338144166, 1338144162, 1338144157, 1338144129, 1338144127, 1338144126]} final : False mtd_id 4302 list_pids : [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] Looping around the photos to save general results len do output : 1 /20605068. 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, '2593018') ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20605068', "{'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088}", None, None, None, None, '2593018'), ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018')] time used for this insertion : 0.013597249984741211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46024489402770996 time spend to save output : 0.013896703720092773 total time spend for step 1 : 0.47414159774780273 step2:final Mon Feb 17 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20605068) 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 20605068 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338144129,1338144127,1338144126,1338144186,1338144172,1338144169,1338144166,1338144162,1338144157,1338144317,1338144307,1338144301,1338144282,1338144262,1338144373,1338144371,1338144366,1338144361,1338144415,1338144408,1338144406,1338144403,1338144400,1338144398,1338144514,1338144510,1338144501,1338144498,1338144495,1338144726,1338144716,1338144713,1338144710,1338144708,1338144775,1338144772,1338144769,1338144767,1338144840,1338144834,1338144831,1338144828,1338144822,1338144878,1338144876,1338144873,1338144870,1338144868); 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([20605068]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} new output for save of step final : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] map_info['map_portfolio_photo'] : {20605068: [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822, 1338144775, 1338144772, 1338144769, 1338144767, 1338144726, 1338144716, 1338144713, 1338144710, 1338144708, 1338144514, 1338144510, 1338144501, 1338144498, 1338144495, 1338144415, 1338144408, 1338144406, 1338144403, 1338144400, 1338144398, 1338144373, 1338144371, 1338144366, 1338144361, 1338144317, 1338144307, 1338144301, 1338144282, 1338144262, 1338144186, 1338144172, 1338144169, 1338144166, 1338144162, 1338144157, 1338144129, 1338144127, 1338144126]} final : False mtd_id 4302 list_pids : [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] Looping around the photos to save general results len do output : 10 /1338144878.Didn't retrieve data . /1338144876.Didn't retrieve data . /1338144873.Didn't retrieve data . /1338144870.Didn't retrieve data . /1338144868.Didn't retrieve data . /1338144840.Didn't retrieve data . /1338144834.Didn't retrieve data . /1338144831.Didn't retrieve data . /1338144828.Didn't retrieve data . /1338144822.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, '2593018') ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20605068', '1338144878', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144876', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144873', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144870', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144868', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144840', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144834', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144831', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144828', '0.033521447420624406', None, None, None, None, '2593018'), ('4302', '20605068', '1338144822', '0.033521447420624406', None, None, None, None, '2593018')] time used for this insertion : 0.01241445541381836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06592035293579102 time spend to save output : 0.012977838516235352 total time spend for step 2 : 0.07889819145202637 step3:velours_tree Mon Feb 17 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20605068: [{'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088}]} input_args_next_step : {20605068: ()} output_args : {20605068: [{'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088}]} args : 20605068 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20605068) 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([20605068]) 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.28808069229125977 time spend to save output : 7.05718994140625e-05 total time spend for step 3 : 0.28815126419067383 step4:send_mail_cod Mon Feb 17 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} input_args_next_step : {1338144878: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144878 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144876 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144873 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144870 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144868 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144840 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144834 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144831 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144828 depend.output_id : 0 input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ()} output_args : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',)} args : 1338144822 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 : {20605068: [{'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088}]} input_args_next_step : {1338144878: ('0.033521447420624406',), 1338144876: ('0.033521447420624406',), 1338144873: ('0.033521447420624406',), 1338144870: ('0.033521447420624406',), 1338144868: ('0.033521447420624406',), 1338144840: ('0.033521447420624406',), 1338144834: ('0.033521447420624406',), 1338144831: ('0.033521447420624406',), 1338144828: ('0.033521447420624406',), 1338144822: ('0.033521447420624406',), 20605068: ()} output_args : {20605068: [{'Carton_brun': 20605077, 'autre_refus': 20605078, 'metal': 20605079, 'cartonnette': 20605080, 'plastique': 20605081, 'Teint_Dans_La_Masse': 20605082, 'Carton_gris': 20605083, 'environnement': 20605084, 'mal_croppe': 20605085, 'flou': 20605086, 'kraft': 20605087, 'papier': 20605088}]} args : 20605068 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 :11, first value : ('0.033521447420624406',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20605068) 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 (1338144878,1338144876,1338144873,1338144870,1338144868,1338144840,1338144834,1338144831,1338144828,1338144822) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338144822 begin to download photo : 1338144834 begin to download photo : 1338144870 begin to download photo : 1338144878 download finish for photo 1338144870 begin to download photo : 1338144873 download finish for photo 1338144834 begin to download photo : 1338144840 download finish for photo 1338144878 download finish for photo 1338144822 begin to download photo : 1338144828 download finish for photo 1338144840 begin to download photo : 1338144868 download finish for photo 1338144873 begin to download photo : 1338144876 download finish for photo 1338144828 begin to download photo : 1338144831 download finish for photo 1338144876 download finish for photo 1338144868 download finish for photo 1338144831 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20605068_17-02-2025_11_40_59.pdf 20605078 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=20605078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144386: '1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908982_0.png', 1338144521: '1739788535_2494346_1338144361_e525feadab328383de518f3562ab162c_rle_crop_3677912967_0.png', 1338144720: '1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913172_0.png', 1338144721: '1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913163_0.png', 1338144736: '1739788574_2495097_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913486_0.png', 1338144813: '1739788673_2498444_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913486_0.png', 1338144863: '1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915094_0.png', 1338144864: '1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915091_0.png', 1338144893: '1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915463_0.png', 1338144906: '1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915477_0.png', 1338144907: '1739788791_2500441_1338144495_599b3d2ac9311e3ffd34cc966f6e50ee_rle_crop_3677915522_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a9289e734ab81cb64814ade3fefe63f0_71356586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/61be3d64ff4a2da412b348b8d3ac535f_28728237.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cd14006c03368267d97b0cde104b86f1_88954761.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a6260b419c3e183e6c4dc609e7bb102d_87128553.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/69a753ae412efd4ef9ba04f6d5189e6d_64816970.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/69a753ae412efd4ef9ba04f6d5189e6d_5346669.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8d698c74d29d5fa259200df9dc0efabd_70888029.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/55d06a931fdf6ed9a222e83a67da297f_6466219.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b127f73da3c6ce7153e9d30b30ce4c69_875242.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f1154b410535ec4cd1ce029e58033a3b_13980540.png change filename to text .imagette206050781739788859/ imagette206050781739788859/1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913163_0.png.png imagette206050781739788859/1739788574_2495097_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913486_0.png.png imagette206050781739788859/1739788673_2498444_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913486_0.png.png imagette206050781739788859/1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915094_0.png.png imagette206050781739788859/1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908982_0.png.png imagette206050781739788859/1739788535_2494346_1338144361_e525feadab328383de518f3562ab162c_rle_crop_3677912967_0.png.png imagette206050781739788859/1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915477_0.png.png imagette206050781739788859/1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915463_0.png.png imagette206050781739788859/1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913172_0.png.png imagette206050781739788859/1739788791_2500441_1338144495_599b3d2ac9311e3ffd34cc966f6e50ee_rle_crop_3677915522_0.png.png imagette206050781739788859/1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915091_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/23c8a1e620375fd8be93fa45e8c3c11a_22067813.png imagette206050781739788859 20605079 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=20605079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144867: '1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915093_0.png'} change filename to text .imagette206050791739788860/ imagette206050791739788860/1739788752_2499740_1338144772_5c75ff64c2dfda8ee23abe98b79ffd5b_rle_crop_3677915093_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e110769185c6b674aa98f0c88f4db8e2_80785588.png imagette206050791739788860 20605080 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=20605080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144388: '1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908977_0.png', 1338144524: '1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912750_0.png', 1338144525: '1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912751_0.png', 1338144898: '1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915400_0.png', 1338144899: '1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915403_0.png', 1338144900: '1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e1542eec3ad34456440d17adeda92687_99411718.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d854d48201127817688d8c3bb0c53646_33677381.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6cb197fe725fbf59676c34ee6939b372_25222128.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/961c4f81ffc45f385dd314c95b82dfbc_74817031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4f992158f00590f7d4086fd8dc65bab6_14655000.png change filename to text .imagette206050801739788860/ imagette206050801739788860/1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915422_0.png.png imagette206050801739788860/1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912751_0.png.png imagette206050801739788860/1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912750_0.png.png imagette206050801739788860/1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908977_0.png.png imagette206050801739788860/1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915403_0.png.png imagette206050801739788860/1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915400_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5262ec514394e3c5a8c63cf7788a4e89_64089850.png imagette206050801739788860 20605081 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=20605081 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144391: '1739788413_2492534_1338144129_e9fad19a60005344f3965e0250c3e6e1_rle_crop_3677908936_0.png', 1338144392: '1739788413_2492534_1338144129_e9fad19a60005344f3965e0250c3e6e1_rle_crop_3677908941_0.png', 1338144393: '1739788413_2492534_1338144127_ba67aebeb1f653aed2e515d2dd706f40_rle_crop_3677908967_0.png', 1338144865: '1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915272_0.png', 1338144901: '1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915404_0.png', 1338144910: '1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915472_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4fbb53cf08030a29ac57b9cb269617a6_76773261.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3d7b56cd6d4cd1063f647cb1714ed09a_99925436.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9749c16b13c8906724b00c3ceb987e96_65801252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9b13093f6bbae4759a60afe4b0fd4055_54977669.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/06dcc2e98954434a6d94d7ebb56c4398_92253845.png change filename to text .imagette206050811739788860/ imagette206050811739788860/1739788413_2492534_1338144129_e9fad19a60005344f3965e0250c3e6e1_rle_crop_3677908936_0.png.png imagette206050811739788860/1739788413_2492534_1338144129_e9fad19a60005344f3965e0250c3e6e1_rle_crop_3677908941_0.png.png imagette206050811739788860/1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915272_0.png.png imagette206050811739788860/1739788772_2500128_1338144775_1a71ce071d326ada42a4839ee541f084_rle_crop_3677915404_0.png.png imagette206050811739788860/1739788413_2492534_1338144127_ba67aebeb1f653aed2e515d2dd706f40_rle_crop_3677908967_0.png.png imagette206050811739788860/1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915472_0.png.png imagette206050851739788861/ imagette206050861739788861/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/39a7118acd522a32cd4df12518363330_77088341.png imagette206050811739788860 20605085 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=20605085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206050851739788861 20605086 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=20605086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206050861739788861 20605087 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=20605087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144902: '1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915460_0.png'} change filename to text .imagette206050871739788861/ imagette206050871739788861/1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915460_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f2b4519aaba54497a0fa9e50b357e50b_68968079.png imagette206050871739788861 20605077 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=20605077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144389: '1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908983_0.png', 1338144390: '1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908984_0.png', 1338144529: '1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912754_0.png', 1338144530: '1739788535_2494346_1338144366_f52f79ddb54fbdbe17e03adfd1a7ca18_rle_crop_3677912770_0.png', 1338144728: '1739788553_2494629_1338144317_f6971c3917bb3cb5b1a3920f4828afaf_rle_crop_3677913126_0.png', 1338144729: '1739788553_2494629_1338144169_0349c616379c75241cc8fbb0b2746409_rle_crop_3677913148_0.png', 1338144730: '1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913170_0.png', 1338144731: '1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913173_0.png', 1338144742: '1739788574_2495097_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913500_0.png', 1338144743: '1739788574_2495097_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913518_0.png', 1338144816: '1739788673_2498444_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913500_0.png', 1338144817: '1739788673_2498444_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913518_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ad46d461ef7a5bb5ad95191fe9ae306a_64978325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5d30d5f5351674e1aad6e5952e6ab038_75531761.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d42500cd53b80faff3034d1dfd57e27f_77377520.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/46f0ded95d0914354aaa4aede7ac21e4_3869582.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d71a7cc6717d9d01f7efa427e25ef0ec_82192713.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9d0f35d8b01b6eaef9a09dee364ae654_21434369.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2a3786be2cbfaa0275ec2fdd09ba5d76_31264151.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5bdf6a54970f010685412400d549c3c3_96910649.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8ee19eda3da31e52c44332d37c2629a9_70121749.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e8cb7ea5312704457ba6b5d113dda1c3_88893347.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8ee19eda3da31e52c44332d37c2629a9_98984514.png change filename to text .imagette206050771739788861/ imagette206050771739788861/1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912754_0.png.png imagette206050771739788861/1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908984_0.png.png imagette206050771739788861/1739788574_2495097_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913500_0.png.png imagette206050771739788861/1739788673_2498444_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913518_0.png.png imagette206050771739788861/1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913170_0.png.png imagette206050771739788861/1739788673_2498444_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913500_0.png.png imagette206050771739788861/1739788553_2494629_1338144317_f6971c3917bb3cb5b1a3920f4828afaf_rle_crop_3677913126_0.png.png imagette206050771739788861/1739788574_2495097_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913518_0.png.png imagette206050771739788861/1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913173_0.png.png imagette206050771739788861/1739788553_2494629_1338144169_0349c616379c75241cc8fbb0b2746409_rle_crop_3677913148_0.png.png imagette206050771739788861/1739788413_2492534_1338144126_8074b6a57ab657a102d30db2a0574084_rle_crop_3677908983_0.png.png imagette206050771739788861/1739788535_2494346_1338144366_f52f79ddb54fbdbe17e03adfd1a7ca18_rle_crop_3677912770_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e8cb7ea5312704457ba6b5d113dda1c3_70086150.png imagette206050771739788861 20605082 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=20605082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144717: '1739788553_2494629_1338144317_f6971c3917bb3cb5b1a3920f4828afaf_rle_crop_3677913128_0.png', 1338144718: '1739788553_2494629_1338144162_bd17ca77b0b05eb30bc091c3a83ad50b_rle_crop_3677913190_0.png', 1338144719: '1739788553_2494629_1338144157_ee75ff53dd71a8f03b6977b8cc73830d_rle_crop_3677913296_0.png', 1338144734: '1739788574_2495097_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913487_0.png', 1338144735: '1739788574_2495097_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913499_0.png', 1338144811: '1739788673_2498444_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913487_0.png', 1338144812: '1739788673_2498444_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913499_0.png', 1338144861: '1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915266_0.png', 1338144862: '1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915274_0.png', 1338144891: '1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915420_0.png', 1338144892: '1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915423_0.png', 1338144905: '1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915480_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ec5374ee4a04671bfe6f5431ecbccfbf_20900033.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2acb12d0e31f818d21b4cc5b62213970_86365251.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/24bee30b1d7fca15fd5641cd98c3074d_27609896.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0bb21b1ac3a93fcc3f9f04cb8902abab_88239591.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b8c6d03e537a1750d86d7945d357241e_41925929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0bb21b1ac3a93fcc3f9f04cb8902abab_50523689.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b8c6d03e537a1750d86d7945d357241e_12342190.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/11de0669ca583c0b6cb995dc38252a97_67456594.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/82b780d11becfc13fbdec28005aba5e8_9986167.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f49404012b1329a63e29328e595a314e_94459928.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b637b4a4dfb8510213167c1dc7ce5368_80992107.png change filename to text .imagette206050821739788861/ imagette206050821739788861/1739788553_2494629_1338144157_ee75ff53dd71a8f03b6977b8cc73830d_rle_crop_3677913296_0.png.png imagette206050821739788861/1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915420_0.png.png imagette206050821739788861/1739788574_2495097_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913487_0.png.png imagette206050821739788861/1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915266_0.png.png imagette206050821739788861/1739788673_2498444_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913499_0.png.png imagette206050821739788861/1739788791_2500441_1338144726_cd283c879b7417e0489492571b49d05b_rle_crop_3677915480_0.png.png imagette206050821739788861/1739788553_2494629_1338144317_f6971c3917bb3cb5b1a3920f4828afaf_rle_crop_3677913128_0.png.png imagette206050821739788861/1739788553_2494629_1338144162_bd17ca77b0b05eb30bc091c3a83ad50b_rle_crop_3677913190_0.png.png imagette206050821739788861/1739788673_2498444_1338144307_fc2e2c663117692563c1b7418997b9cd_rle_crop_3677913487_0.png.png imagette206050821739788861/1739788574_2495097_1338144301_923c02926f0c290a20c04cdc41c66453_rle_crop_3677913499_0.png.png imagette206050821739788861/1739788772_2500128_1338144716_330efee77abbb5df63827535395ed533_rle_crop_3677915423_0.png.png imagette206050821739788861/1739788752_2499740_1338144767_34b7ceaa6fd1524b9cc94b64e2a591a1_rle_crop_3677915274_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7e46f750bbb0e8436824a5acab898add_39060276.png imagette206050821739788861 20605083 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=20605083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338144522: '1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912746_0.png', 1338144723: '1739788553_2494629_1338144169_0349c616379c75241cc8fbb0b2746409_rle_crop_3677913147_0.png', 1338144724: '1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913167_0.png', 1338144725: '1739788553_2494629_1338144162_bd17ca77b0b05eb30bc091c3a83ad50b_rle_crop_3677913184_0.png', 1338144738: '1739788574_2495097_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913513_0.png', 1338144814: '1739788673_2498444_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913513_0.png', 1338144895: '1739788772_2500128_1338144710_b846ab8ba64623c96d7ed72fcfbbdf47_rle_crop_3677915447_0.png', 1338144896: '1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915461_0.png', 1338144908: '1739788791_2500441_1338144498_373e327be2cbda474b0f6277d242b040_rle_crop_3677915501_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a03ba84be08be1f3b21e64a77301a102_5256304.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0e23774fba9b9d3fd43f66e1018f3d03_98572752.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/450c9fa50622d227ff1e3a17b9283322_55066297.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fe896c60eb1e0fc4215472ebf1591d36_90642747.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5fee014461be194cbca55376830b58a5_99941071.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5fee014461be194cbca55376830b58a5_39042844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d49e72783907b88a1750db55a645508c_76585540.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/837a7fa4e16d3b5078975dc522308ed4_77357662.png change filename to text .imagette206050831739788862/ imagette206050831739788862/1739788553_2494629_1338144169_0349c616379c75241cc8fbb0b2746409_rle_crop_3677913147_0.png.png imagette206050831739788862/1739788553_2494629_1338144162_bd17ca77b0b05eb30bc091c3a83ad50b_rle_crop_3677913184_0.png.png imagette206050831739788862/1739788772_2500128_1338144708_883f9dfdb6da4ec01483b36487fcc2d2_rle_crop_3677915461_0.png.png imagette206050831739788862/1739788553_2494629_1338144166_b7f6471adeb9bc0cd9c935a98799ddfe_rle_crop_3677913167_0.png.png imagette206050831739788862/1739788535_2494346_1338144371_f908c23f28be42a331fe0bf8f19f31c5_rle_crop_3677912746_0.png.png imagette206050831739788862/1739788574_2495097_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913513_0.png.png imagette206050831739788862/1739788673_2498444_1338144282_0a362d666bd6ca31b15048fd261fb709_rle_crop_3677913513_0.png.png imagette206050831739788862/1739788772_2500128_1338144710_b846ab8ba64623c96d7ed72fcfbbdf47_rle_crop_3677915447_0.png.png imagette206050831739788862/1739788791_2500441_1338144498_373e327be2cbda474b0f6277d242b040_rle_crop_3677915501_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/19b6742d7ad5fbcff777374b99712d51_483574.png imagette206050831739788862 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20605068 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20605089,20605090,20605091,20605092,20605093,20605094,20605095,20605096,20605097,20605098,20605099,20605100?tags=Carton_brun,autre_refus,metal,cartonnette,plastique,Teint_Dans_La_Masse,Carton_gris,environnement,mal_croppe,flou,kraft,papier your option no_mail is active, we will not send the real mail to your client args[1338144878] : ('0.033521447420624406',) no score found for photo 1338144878 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144876] : ('0.033521447420624406',) no score found for photo 1338144876 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144873] : ('0.033521447420624406',) no score found for photo 1338144873 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144870] : ('0.033521447420624406',) no score found for photo 1338144870 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144868] : ('0.033521447420624406',) no score found for photo 1338144868 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144840] : ('0.033521447420624406',) no score found for photo 1338144840 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144834] : ('0.033521447420624406',) no score found for photo 1338144834 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144831] : ('0.033521447420624406',) no score found for photo 1338144831 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144828] : ('0.033521447420624406',) no score found for photo 1338144828 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com args[1338144822] : ('0.033521447420624406',) no score found for photo 1338144822 apple ('0.033521447420624406',) We are sending mail with results at report@fotonower.com refus_total : 0.033521447420624406 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=20605068 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_P20605068_17-02-2025_11_40_59.pdf results_Auto_P20605068_17-02-2025_11_40_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_40_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20605068','results_Auto_P20605068_17-02-2025_11_40_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_40_59.pdf','pdf','','0.23','0.033521447420624406') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20605068]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] map_info['map_portfolio_photo'] : {20605068: [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822, 1338144775, 1338144772, 1338144769, 1338144767, 1338144726, 1338144716, 1338144713, 1338144710, 1338144708, 1338144514, 1338144510, 1338144501, 1338144498, 1338144495, 1338144415, 1338144408, 1338144406, 1338144403, 1338144400, 1338144398, 1338144373, 1338144371, 1338144366, 1338144361, 1338144317, 1338144307, 1338144301, 1338144282, 1338144262, 1338144186, 1338144172, 1338144169, 1338144166, 1338144162, 1338144157, 1338144129, 1338144127, 1338144126]} final : False mtd_id 4302 list_pids : [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] 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, '2593018') ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '20605068', '1338144878', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018')] time used for this insertion : 0.013724327087402344 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.478991270065308 time spend to save output : 0.013949155807495117 total time spend for step 4 : 4.492940425872803 step5:split_time_score Mon Feb 17 11:41:03 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 : ['20605068'] 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 : [('20605068',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20605068) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338144878: {'path': 'temp/1739788859_3090121_1338144878_e881bbd2dbdb25f38ea0e2e664e97880.jpg', 'extension': 'jpg'}, 1338144870: {'path': 'temp/1739788859_3090121_1338144870_90ecf10bb0a56628d8dc27cdac5d042b.jpg', 'extension': 'jpg'}, 1338144873: {'path': 'temp/1739788859_3090121_1338144873_61a0eedd54ae2b1aab45aa9f76e15ce5.jpg', 'extension': 'jpg'}, 1338144876: {'path': 'temp/1739788859_3090121_1338144876_dcaf34948c114d3f2e1c9a364a42fd6b.jpg', 'extension': 'jpg'}, 1338144834: {'path': 'temp/1739788859_3090121_1338144834_c0717922577556f7f7d6612b70f9fe9b.jpg', 'extension': 'jpg'}, 1338144840: {'path': 'temp/1739788859_3090121_1338144840_531835460e57adc05bb436ce2eb10aef.jpg', 'extension': 'jpg'}, 1338144868: {'path': 'temp/1739788859_3090121_1338144868_e5aa50e12c49fd5386040829d02ceda0.jpg', 'extension': 'jpg'}, 1338144822: {'path': 'temp/1739788859_3090121_1338144822_97945e7878c2e612757198f98993a3d0.jpg', 'extension': 'jpg'}, 1338144828: {'path': 'temp/1739788859_3090121_1338144828_e5f206607022be4174c05ea783bd819a.jpg', 'extension': 'jpg'}, 1338144831: {'path': 'temp/1739788859_3090121_1338144831_001750e18c56668e82bf484ffcc6a52f.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 = 20605068; (('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 = 20605068 group by h (('11', 48),) 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=20605068 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 (20605068) 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 (20605068) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20605068 Nombre de photos uploadées : 48 / 23040 (0%) 17022025 20605068 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 17022025 20605068 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1338144129, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e9fad19a60005344f3965e0250c3e6e1.jpg', 'username': None, 'uploaded_at': 1739788267, 'text': 'image_17022025_11_30_05_10147.jpg'}, {'photo_id': 1338144127, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ba67aebeb1f653aed2e515d2dd706f40.jpg', 'username': None, 'uploaded_at': 1739788267, 'text': 'image_17022025_11_30_14_9125.jpg'}, {'photo_id': 1338144126, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8074b6a57ab657a102d30db2a0574084.jpg', 'username': None, 'uploaded_at': 1739788267, 'text': 'image_17022025_11_30_24_10136.jpg'}, {'photo_id': 1338144186, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1a4613611665084c8199cc01093baee8.jpg', 'username': None, 'uploaded_at': 1739788326, 'text': 'image_17022025_11_30_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 1.7642974853515625e-05 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002184152603149414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20605068, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02381277084350586 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= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615329, 'mtr_portfolio_id': 20602902, 'dashboard_result_id': 8926901, '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_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615329, 'mtr_portfolio_id': 20603399, 'dashboard_result_id': 8926902, '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_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615329, 'mtr_portfolio_id': 20604235, 'dashboard_result_id': 8926903, '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_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1615329, 'mtr_portfolio_id': 20605068, 'dashboard_result_id': 8926904, '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_P20605068_17-02-2025_11_38_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, '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 = 20602902 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': 2592810, 'mtr_portfolio_id': 20602902, 'created_at': datetime.datetime(2025, 2, 17, 11, 2, 58), 'result': '0.03294885390618337', 'result_long': None, 'result_double': None}] Qualite : 0.03294885390618337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_17-02-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602902 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_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}" where mtr_portfolio_id = 20602902 and dashboard_run_id = 1615329 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`=20602902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8926901, 0.03294885390618337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, '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 = 20603399 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': 2592854, 'mtr_portfolio_id': 20603399, 'created_at': datetime.datetime(2025, 2, 17, 11, 19, 33), 'result': '0.04209848509031704', 'result_long': None, 'result_double': None}] Qualite : 0.04209848509031704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20603399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_17-02-2025_11_19_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20603399 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_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}" where mtr_portfolio_id = 20603399 and dashboard_run_id = 1615329 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`=20603399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8926902, 0.04209848509031704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, '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 = 20604235 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': 2592950, 'mtr_portfolio_id': 20604235, 'created_at': datetime.datetime(2025, 2, 17, 11, 32, 29), 'result': '0.03734747927667229', 'result_long': None, 'result_double': None}] Qualite : 0.03734747927667229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20604235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_17-02-2025_11_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20604235 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_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}" where mtr_portfolio_id = 20604235 and dashboard_run_id = 1615329 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`=20604235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8926903, 0.03734747927667229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, '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 = 20605068 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': 2593018, 'mtr_portfolio_id': 20605068, 'created_at': datetime.datetime(2025, 2, 17, 11, 40, 59), 'result': '0.033521447420624406', 'result_long': None, 'result_double': None}] Qualite : 0.033521447420624406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_40_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605068 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_P20605068_17-02-2025_11_40_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}" where mtr_portfolio_id = 20605068 and dashboard_run_id = 1615329 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`=20605068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8926904, 0.033521447420624406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_40_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, '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 (20602902,20603399,20604235,20605068) result : ((1338137996,), (1338137999,), (1338138214,), (1338138220,), (1338138225,), (1338138229,), (1338138233,), (1338138242,), (1338138290,), (1338138293,), (1338138297,), (1338138301,), (1338138336,), (1338138339,), (1338138354,), (1338138358,), (1338138362,), (1338138364,), (1338138387,), (1338138390,), (1338138400,), (1338138404,), (1338138406,), (1338138423,), (1338138456,), (1338138463,), (1338138468,), (1338138472,), (1338138682,), (1338138686,), (1338138691,), (1338138695,), (1338138697,), (1338138703,), (1338138766,), (1338138769,), (1338138772,), (1338138776,), (1338138779,), (1338138807,), (1338138810,), (1338138814,), (1338138818,), (1338138861,), (1338138893,), (1338138900,), (1338138904,), (1338138909,), (1338138914,), (1338138959,), (1338138962,), (1338138968,), (1338138973,), (1338138998,), (1338139048,), (1338139051,), (1338139057,), (1338139068,), (1338139124,), (1338139126,), (1338139147,), (1338139151,), (1338139154,), (1338139157,), (1338139161,), (1338139189,), (1338139195,), (1338139203,), (1338139210,), (1338139218,), (1338139267,), (1338139252,), (1338139255,), (1338139260,), (1338139264,), (1338139320,), (1338139345,), (1338139353,), (1338139356,), (1338139531,), (1338139537,), (1338139543,), (1338139555,), (1338139560,), (1338139611,), (1338139649,), (1338140528,), (1338140532,), (1338140535,), (1338140537,), (1338140598,), (1338140600,), (1338140602,), (1338140605,), (1338140608,), (1338140663,), (1338140664,), (1338140666,), (1338140670,), (1338140760,), (1338140761,), (1338140765,), (1338140772,), (1338140814,), (1338140817,), (1338140832,), (1338140931,), (1338140933,), (1338140936,), (1338140940,), (1338140949,), (1338140993,), (1338140998,), (1338141003,), (1338141006,), (1338141011,), (1338141083,), (1338141086,), (1338141093,), (1338141097,), (1338141434,), (1338141515,), (1338141612,), (1338141679,), (1338141681,), (1338141748,), (1338142010,), (1338142020,), (1338142026,), (1338142031,), (1338142035,), (1338142037,), (1338142143,), (1338142241,), (1338142135,), (1338142140,), (1338142159,), (1338142162,), (1338142164,), (1338142167,), (1338142169,), (1338142177,), (1338142219,), (1338142250,), (1338142254,), (1338142256,), (1338142308,), (1338142533,), (1338142878,), (1338142926,), (1338142977,), (1338143226,), (1338143228,), (1338143230,), (1338143232,), (1338143233,), (1338143235,), (1338143278,), (1338143279,), (1338143281,), (1338143283,), (1338143284,), (1338143355,), (1338143361,), (1338143374,), (1338143489,), (1338143495,), (1338143502,), (1338143508,), (1338143511,), (1338143517,), (1338143571,), (1338143573,), (1338143579,), (1338143596,), (1338143603,), (1338143636,), (1338143640,), (1338143651,), (1338143652,), (1338143655,), (1338143695,), (1338143696,), (1338143698,), (1338143700,), (1338143701,), (1338143754,), (1338143760,), (1338143764,), (1338143768,), (1338143862,), (1338143866,), (1338143870,), (1338143874,), (1338143878,), (1338143880,), (1338143899,), (1338143900,), (1338143901,), (1338143954,), (1338143978,), (1338143985,), (1338144003,), (1338144042,), (1338144044,), (1338144053,), (1338144068,), (1338144082,), (1338144091,), (1338144094,), (1338144096,), (1338144100,), (1338144131,), (1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20605068]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] map_info['map_portfolio_photo'] : {20605068: [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822, 1338144775, 1338144772, 1338144769, 1338144767, 1338144726, 1338144716, 1338144713, 1338144710, 1338144708, 1338144514, 1338144510, 1338144501, 1338144498, 1338144495, 1338144415, 1338144408, 1338144406, 1338144403, 1338144400, 1338144398, 1338144373, 1338144371, 1338144366, 1338144361, 1338144317, 1338144307, 1338144301, 1338144282, 1338144262, 1338144186, 1338144172, 1338144169, 1338144166, 1338144162, 1338144157, 1338144129, 1338144127, 1338144126]} final : True mtd_id 4302 list_pids : [1338144878, 1338144876, 1338144873, 1338144870, 1338144868, 1338144840, 1338144834, 1338144831, 1338144828, 1338144822] Looping around the photos to save general results len do output : 1 /20605068Didn'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, '2593018') ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018') ('4302', None, None, None, None, None, None, None, '2593018') ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20605068', 'None', None, None, None, None, '2593018'), ('4302', '20605068', '1338144878', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144876', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144873', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144870', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144868', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144840', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144834', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144831', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144828', None, None, None, None, None, '2593018'), ('4302', '20605068', '1338144822', None, None, None, None, None, '2593018')] time used for this insertion : 0.012933015823364258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3457345962524414 time spend to save output : 0.01318979263305664 total time spend for step 5 : 0.35892438888549805 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 (2593018) 2.14user 2.29system 0:09.03elapsed 49%CPU (0avgtext+0avgdata 159524maxresident)k 376inputs+13008outputs (1major+64228minor)pagefaults 0swaps