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 : 714000 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 (2633533) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2633533) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018850 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2633533'] with mtr_portfolio_ids : ['21018850'] and first list_photo_ids : [] new path : /proc/714000/ Name: python3 Umask: 0002 State: R (running) Tgid: 714000 Ngid: 0 Pid: 714000 PPid: 713999 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 714000 NSpid: 714000 NSpgid: 710141 NSsid: 710141 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98056 kB VmRSS: 98056 kB RssAnon: 59748 kB RssFile: 38308 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 48 nonvoluntary_ctxt_switches: 200 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '714000', 'Ngid': '0', 'Pid': '714000', 'PPid': '713999', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '714000', 'NSpid': '714000', 'NSpgid': '710141', 'NSsid': '710141', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98056 kB', 'VmRSS': '98056 kB', 'RssAnon': '59748 kB', 'RssFile': '38308 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '48', 'nonvoluntary_ctxt_switches': '200'} ('datou_batch_current', '714000', '1106844', '0', '1106844', '865592', '98056', b'', 'marlene', '2633533') 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 (21018850) 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 (2633533 ) ) 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 (21018850) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340836083, 'portfolio_id': 21018850}, {'photo_id': 1340836080, 'portfolio_id': 21018850}, {'photo_id': 1340836077, 'portfolio_id': 21018850}, {'photo_id': 1340836072, 'portfolio_id': 21018850}, {'photo_id': 1340836050, 'portfolio_id': 21018850}, {'photo_id': 1340836045, 'portfolio_id': 21018850}, {'photo_id': 1340836040, 'portfolio_id': 21018850}, {'photo_id': 1340836038, 'portfolio_id': 21018850}, {'photo_id': 1340836022, 'portfolio_id': 21018850}, {'photo_id': 1340835977, 'portfolio_id': 21018850}, {'photo_id': 1340835972, 'portfolio_id': 21018850}, {'photo_id': 1340835966, 'portfolio_id': 21018850}, {'photo_id': 1340835960, 'portfolio_id': 21018850}, {'photo_id': 1340835957, 'portfolio_id': 21018850}, {'photo_id': 1340835925, 'portfolio_id': 21018850}, {'photo_id': 1340835919, 'portfolio_id': 21018850}, {'photo_id': 1340835915, 'portfolio_id': 21018850}, {'photo_id': 1340835892, 'portfolio_id': 21018850}, {'photo_id': 1340835824, 'portfolio_id': 21018850}, {'photo_id': 1340835812, 'portfolio_id': 21018850}, {'photo_id': 1340835804, 'portfolio_id': 21018850}, {'photo_id': 1340835798, 'portfolio_id': 21018850}, {'photo_id': 1340835794, 'portfolio_id': 21018850}, {'photo_id': 1340835791, 'portfolio_id': 21018850}, {'photo_id': 1340835772, 'portfolio_id': 21018850}, {'photo_id': 1340835768, 'portfolio_id': 21018850}, {'photo_id': 1340835761, 'portfolio_id': 21018850}, {'photo_id': 1340835754, 'portfolio_id': 21018850}, {'photo_id': 1340835741, 'portfolio_id': 21018850}, {'photo_id': 1340835706, 'portfolio_id': 21018850}, {'photo_id': 1340835703, 'portfolio_id': 21018850}, {'photo_id': 1340835697, 'portfolio_id': 21018850}, {'photo_id': 1340835664, 'portfolio_id': 21018850}, {'photo_id': 1340835658, 'portfolio_id': 21018850}, {'photo_id': 1340835608, 'portfolio_id': 21018850}, {'photo_id': 1340835604, 'portfolio_id': 21018850}, {'photo_id': 1340835600, 'portfolio_id': 21018850}, {'photo_id': 1340835593, 'portfolio_id': 21018850}, {'photo_id': 1340835579, 'portfolio_id': 21018850}, {'photo_id': 1340835460, 'portfolio_id': 21018850}, {'photo_id': 1340835253, 'portfolio_id': 21018850}, {'photo_id': 1340835137, 'portfolio_id': 21018850}, {'photo_id': 1340835103, 'portfolio_id': 21018850}, {'photo_id': 1340835077, 'portfolio_id': 21018850}, {'photo_id': 1340835014, 'portfolio_id': 21018850}] map_portfolio_id_photo_id: {21018850: [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022, 1340835977, 1340835972, 1340835966, 1340835960, 1340835957, 1340835925, 1340835919, 1340835915, 1340835892, 1340835824, 1340835812, 1340835804, 1340835798, 1340835794, 1340835791, 1340835772, 1340835768, 1340835761, 1340835754, 1340835741, 1340835706, 1340835703, 1340835697, 1340835664, 1340835658, 1340835608, 1340835604, 1340835600, 1340835593, 1340835579, 1340835460, 1340835253, 1340835137, 1340835103, 1340835077, 1340835014]} ##### 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.016086101531982422 #### 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 Tue Mar 4 17:30: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 (21018850) 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 : 21018850 get user id for portfolio 21018850 get sub ptf for main ptf 21018850, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'mal_croppe', 'kraft', 'flou', 'Carton_gris', 'cartonnette', 'Carton_brun', 'autre_refus', 'papier', 'plastique', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21018850 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','mal_croppe','kraft','flou','Carton_gris','cartonnette','Carton_brun','autre_refus','papier','plastique','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21018850 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','mal_croppe','kraft','flou','Carton_gris','cartonnette','Carton_brun','autre_refus','papier','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21018850, 'sub_port_id': 21018852, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634926, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'papier': {'main_port_id': 21018850, 'sub_port_id': 21018853, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634927, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'mal_croppe': {'main_port_id': 21018850, 'sub_port_id': 21018854, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634928, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'autre_refus': {'main_port_id': 21018850, 'sub_port_id': 21018855, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634929, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'Carton_gris': {'main_port_id': 21018850, 'sub_port_id': 21018856, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634930, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'kraft': {'main_port_id': 21018850, 'sub_port_id': 21018857, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634931, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'flou': {'main_port_id': 21018850, 'sub_port_id': 21018858, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634932, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'Carton_brun': {'main_port_id': 21018850, 'sub_port_id': 21018859, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634933, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'plastique': {'main_port_id': 21018850, 'sub_port_id': 21018860, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634934, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'cartonnette': {'main_port_id': 21018850, 'sub_port_id': 21018861, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634935, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'metal': {'main_port_id': 21018850, 'sub_port_id': 21018862, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634936, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'environnement': {'main_port_id': 21018850, 'sub_port_id': 21018863, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634937, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21018852 , 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=21018850 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 (21018852) result : ((1340835637,), (1340835638,), (1340835639,), (1340835833,), (1340835985,), (1340835986,), (1340836023,), (1340836024,), (1340836025,), (1340836026,), (1340836027,), (1340836028,), (1340836105,), (1340836130,), (1340836131,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018853 , 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=21018850 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 (21018853) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018854 , 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=21018850 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 (21018854) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018855 , 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=21018850 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 (21018855) result : ((1340835644,), (1340835645,), (1340835646,), (1340835647,), (1340835648,), (1340835649,), (1340835650,), (1340835722,), (1340835723,), (1340835724,), (1340835725,), (1340835726,), (1340835827,), (1340835834,), (1340835987,), (1340835988,), (1340835989,), (1340835990,), (1340835991,), (1340835992,), (1340836029,), (1340836030,), (1340836031,), (1340836032,), (1340836033,), (1340836106,), (1340836107,), (1340836108,), (1340836109,), (1340836133,), (1340836134,), (1340836135,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018856 , 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=21018850 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 (21018856) result : ((1340835651,), (1340835727,), (1340835728,), (1340835994,), (1340835995,), (1340835996,), (1340835997,), (1340836035,), (1340836037,), (1340836110,), (1340836137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018857 , 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=21018850 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 (21018857) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018858 , 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=21018850 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 (21018858) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018859 , 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=21018850 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 (21018859) result : ((1340835653,), (1340835830,), (1340836111,), (1340836112,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018860 , 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=21018850 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 (21018860) result : ((1340835656,), (1340835836,), (1340836140,), (1340836141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018861 , 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=21018850 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 (21018861) result : ((1340835652,), (1340835729,), (1340835730,), (1340835828,), (1340835998,), (1340835999,), (1340836039,), (1340836138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018862 , 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=21018850 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 (21018862) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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 21018863 , 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=21018850 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 (21018863) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21018850) result : ((1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) 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 (1340835600) 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`=21018850 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','mal_croppe','kraft','flou','Carton_gris','cartonnette','Carton_brun','autre_refus','papier','plastique','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21018850 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','mal_croppe','kraft','flou','Carton_gris','cartonnette','Carton_brun','autre_refus','papier','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21018850, 'sub_port_id': 21018864, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634938, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'papier': {'main_port_id': 21018850, 'sub_port_id': 21018865, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634939, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'mal_croppe': {'main_port_id': 21018850, 'sub_port_id': 21018866, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634940, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'autre_refus': {'main_port_id': 21018850, 'sub_port_id': 21018867, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634941, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'Carton_gris': {'main_port_id': 21018850, 'sub_port_id': 21018868, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634942, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'kraft': {'main_port_id': 21018850, 'sub_port_id': 21018869, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634943, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'flou': {'main_port_id': 21018850, 'sub_port_id': 21018870, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634944, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'Carton_brun': {'main_port_id': 21018850, 'sub_port_id': 21018871, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634945, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'plastique': {'main_port_id': 21018850, 'sub_port_id': 21018872, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634946, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'cartonnette': {'main_port_id': 21018850, 'sub_port_id': 21018873, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634947, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'metal': {'main_port_id': 21018850, 'sub_port_id': 21018874, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634948, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}, 'environnement': {'main_port_id': 21018850, 'sub_port_id': 21018875, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13634949, 'last_updated_at': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 17, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 17, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018859 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018860 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21018875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21018863 lien utilise dans velours : https://www.fotonower.com/velours/21018864,21018865,21018866,21018867,21018868,21018869,21018870,21018871,21018872,21018873,21018874,21018875?tags=Teint_Dans_La_Masse,papier,mal_croppe,autre_refus,Carton_gris,kraft,flou,Carton_brun,plastique,cartonnette,metal,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21018850]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] map_info['map_portfolio_photo'] : {21018850: [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022, 1340835977, 1340835972, 1340835966, 1340835960, 1340835957, 1340835925, 1340835919, 1340835915, 1340835892, 1340835824, 1340835812, 1340835804, 1340835798, 1340835794, 1340835791, 1340835772, 1340835768, 1340835761, 1340835754, 1340835741, 1340835706, 1340835703, 1340835697, 1340835664, 1340835658, 1340835608, 1340835604, 1340835600, 1340835593, 1340835579, 1340835460, 1340835253, 1340835137, 1340835103, 1340835077, 1340835014]} final : False mtd_id 4302 list_pids : [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] Looping around the photos to save general results len do output : 1 /21018850. 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, '2633533') ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533') 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', None, '21018850', "{'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863}", None, None, None, None, '2633533'), ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533')] time used for this insertion : 0.013782739639282227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4703218936920166 time spend to save output : 0.014129638671875 total time spend for step 1 : 0.4844515323638916 step2:final Tue Mar 4 17:30: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 (21018850) 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 21018850 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340835137,1340835103,1340835077,1340835014,1340835253,1340835460,1340835608,1340835604,1340835600,1340835593,1340835579,1340835664,1340835658,1340835706,1340835703,1340835697,1340835772,1340835768,1340835741,1340835761,1340835754,1340835824,1340835812,1340835804,1340835798,1340835794,1340835791,1340835925,1340835919,1340835915,1340835892,1340835977,1340835972,1340835966,1340835960,1340835957,1340836050,1340836045,1340836040,1340836038,1340836022,1340836083,1340836080,1340836077,1340836072); 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([21018850]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} new output for save of step final : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] map_info['map_portfolio_photo'] : {21018850: [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022, 1340835977, 1340835972, 1340835966, 1340835960, 1340835957, 1340835925, 1340835919, 1340835915, 1340835892, 1340835824, 1340835812, 1340835804, 1340835798, 1340835794, 1340835791, 1340835772, 1340835768, 1340835761, 1340835754, 1340835741, 1340835706, 1340835703, 1340835697, 1340835664, 1340835658, 1340835608, 1340835604, 1340835600, 1340835593, 1340835579, 1340835460, 1340835253, 1340835137, 1340835103, 1340835077, 1340835014]} final : False mtd_id 4302 list_pids : [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] Looping around the photos to save general results len do output : 9 /1340836083.Didn't retrieve data . /1340836080.Didn't retrieve data . /1340836077.Didn't retrieve data . /1340836072.Didn't retrieve data . /1340836050.Didn't retrieve data . /1340836045.Didn't retrieve data . /1340836040.Didn't retrieve data . /1340836038.Didn't retrieve data . /1340836022.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, '2633533') ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21018850', '1340836083', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836080', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836077', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836072', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836050', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836045', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836040', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836038', '0.07808792492107208', None, None, None, None, '2633533'), ('4302', '21018850', '1340836022', '0.07808792492107208', None, None, None, None, '2633533')] time used for this insertion : 0.012493371963500977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06803202629089355 time spend to save output : 0.013004541397094727 total time spend for step 2 : 0.08103656768798828 step3:velours_tree Tue Mar 4 17:30: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 : {21018850: [{'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863}]} input_args_next_step : {21018850: ()} output_args : {21018850: [{'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863}]} args : 21018850 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21018850) 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([21018850]) 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.3573644161224365 time spend to save output : 7.867813110351562e-05 total time spend for step 3 : 0.35744309425354004 step4:send_mail_cod Tue Mar 4 17:30: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 : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} input_args_next_step : {1340836083: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836083 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836080 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836077 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836072 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836050 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836045 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836040 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836038 depend.output_id : 0 input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ()} output_args : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',)} args : 1340836022 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 : {21018850: [{'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863}]} input_args_next_step : {1340836083: ('0.07808792492107208',), 1340836080: ('0.07808792492107208',), 1340836077: ('0.07808792492107208',), 1340836072: ('0.07808792492107208',), 1340836050: ('0.07808792492107208',), 1340836045: ('0.07808792492107208',), 1340836040: ('0.07808792492107208',), 1340836038: ('0.07808792492107208',), 1340836022: ('0.07808792492107208',), 21018850: ()} output_args : {21018850: [{'Teint_Dans_La_Masse': 21018852, 'papier': 21018853, 'mal_croppe': 21018854, 'autre_refus': 21018855, 'Carton_gris': 21018856, 'kraft': 21018857, 'flou': 21018858, 'Carton_brun': 21018859, 'plastique': 21018860, 'cartonnette': 21018861, 'metal': 21018862, 'environnement': 21018863}]} args : 21018850 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 :10, first value : ('0.07808792492107208',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21018850) 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 (1340836083,1340836080,1340836077,1340836072,1340836050,1340836045,1340836040,1340836038,1340836022) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340836022 begin to download photo : 1340836040 begin to download photo : 1340836050 begin to download photo : 1340836077 begin to download photo : 1340836083 download finish for photo 1340836022 begin to download photo : 1340836038 download finish for photo 1340836050 begin to download photo : 1340836072 download finish for photo 1340836077 begin to download photo : 1340836080 download finish for photo 1340836040 begin to download photo : 1340836045 download finish for photo 1340836083 download finish for photo 1340836045 download finish for photo 1340836080 download finish for photo 1340836038 download finish for photo 1340836072 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette210188541741105860/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21018850_04-03-2025_17_31_00.pdf 21018854 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=21018854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210188541741105860 21018855 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=21018855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835989: '1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431367_0.png', 1340836135: '1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432482_0.png', 1340836134: '1741105772_237757_1340835966_5b9d64203599cde68c8c7b9029151115_rle_crop_3693432471_0.png', 1340836133: '1741105772_237757_1340835972_ae101c5b103fc73b05cc099d3a805736_rle_crop_3693432461_0.png', 1340836109: '1741105752_237550_1340835892_c3ea3f9c2b0774bbf6fc71c445bcad10_rle_crop_3693432366_0.png', 1340836108: '1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432184_0.png', 1340836107: '1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432180_0.png', 1340836106: '1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432150_0.png', 1340836033: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431618_0.png', 1340836032: '1741105653_236477_1340835794_09d110b2054121c775362259441e222c_rle_crop_3693431597_0.png', 1340836031: '1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431566_0.png', 1340836030: '1741105653_236477_1340835804_350148c458fc678bce03ea955aa86b35_rle_crop_3693431540_0.png', 1340836029: '1741105653_236477_1340835812_ff6bbbfb1261708f1f69a0d4b6769a2e_rle_crop_3693431504_0.png', 1340835992: '1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431447_0.png', 1340835991: '1741105633_236228_1340835754_020d458aeff6df202ff56abdcf190e1d_rle_crop_3693431416_0.png', 1340835990: '1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431393_0.png', 1340835644: '1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427968_0.png', 1340835988: '1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431373_0.png', 1340835987: '1741105633_236228_1340835824_27f9a2c3e317a35045e0bfd7c4d04480_rle_crop_3693431181_0.png', 1340835834: '1741105514_234818_1340835697_f117b4a0cffbc24acc61767b9df993fe_rle_crop_3693429466_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/616bcf9d1fc8af864696acc31581a0fa_24703139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/22e3516240454807453fbbd9233c79e1_59858574.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5e37e8f075506d1e66e95527299d4642_76340698.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/387e3f582a7977fbf82a2ac0f09206a3_44706754.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/79d6e0eb0cf5d3f6eba57ca41d0c2f91_49615730.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7900dc94e6711a5ca4a47b946153508b_63417264.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/774dfba5f43ba6d73067fc854cb9472a_11131012.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2c1ae83af0ce3db593363393fbba8124_77537262.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/220eb2cf54e3e0799737ea6bdc8f7c85_47648381.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/37aab754fd67aef3775ff9d5c50e3949_37001140.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4105a41e937fdb751a61c0e4ee965024_77508479.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ef201f9aca7010e2a9e198af47b8d5b4_62201056.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3b3301c42716821d471798649e43dff4_64679457.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ea216c3a0ece20051eff8b95189b83c4_43880415.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cddb2c39446fb52bd467d3e2d54de433_76070556.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1e857d619d6d0047f9150d60af46cdb6_67438208.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f69439fc047640753b54db64a9bb788e_86743125.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/707ff630613d54bacf7089123226e13c_13693807.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5ad3fc5e09a85374a07f781f72e2c9af_15150819.png change filename to text .imagette210188551741105860/ imagette210188551741105860/1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431393_0.png.png imagette210188551741105860/1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432180_0.png.png imagette210188551741105860/1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431367_0.png.png imagette210188551741105860/1741105633_236228_1340835754_020d458aeff6df202ff56abdcf190e1d_rle_crop_3693431416_0.png.png imagette210188551741105860/1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431373_0.png.png imagette210188551741105860/1741105633_236228_1340835824_27f9a2c3e317a35045e0bfd7c4d04480_rle_crop_3693431181_0.png.png imagette210188551741105860/1741105653_236477_1340835812_ff6bbbfb1261708f1f69a0d4b6769a2e_rle_crop_3693431504_0.png.png imagette210188551741105860/1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431566_0.png.png imagette210188551741105860/1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432150_0.png.png imagette210188551741105860/1741105514_234818_1340835697_f117b4a0cffbc24acc61767b9df993fe_rle_crop_3693429466_0.png.png imagette210188551741105860/1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432482_0.png.png imagette210188551741105860/1741105653_236477_1340835794_09d110b2054121c775362259441e222c_rle_crop_3693431597_0.png.png imagette210188551741105860/1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427968_0.png.png imagette210188551741105860/1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432184_0.png.png imagette210188551741105860/1741105752_237550_1340835892_c3ea3f9c2b0774bbf6fc71c445bcad10_rle_crop_3693432366_0.png.png imagette210188551741105860/1741105772_237757_1340835966_5b9d64203599cde68c8c7b9029151115_rle_crop_3693432471_0.png.png imagette210188551741105860/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431618_0.png.png imagette210188551741105860/1741105772_237757_1340835972_ae101c5b103fc73b05cc099d3a805736_rle_crop_3693432461_0.png.png imagette210188551741105860/1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431447_0.png.png imagette210188551741105860/1741105653_236477_1340835804_350148c458fc678bce03ea955aa86b35_rle_crop_3693431540_0.png.png imagette210188571741105861/ imagette210188581741105861/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8454a7f34b1025a8d2fd37532a4b1a0d_80034692.png imagette210188551741105860 21018857 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=21018857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210188571741105861 21018858 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=21018858 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210188581741105861 21018860 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=21018860 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835656: '1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427351_0.png', 1340835836: '1741105514_234818_1340835697_f117b4a0cffbc24acc61767b9df993fe_rle_crop_3693429464_0.png', 1340836140: '1741105772_237757_1340835957_00c5dc0540a8b16cbc51f03faa0de8a8_rle_crop_3693432493_0.png', 1340836141: '1741105772_237757_1340835957_00c5dc0540a8b16cbc51f03faa0de8a8_rle_crop_3693432489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3c506a1af7b44bcf21a3b42e08c0575f_78042966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/48cac04fd542b9a8450e15ff8dc4ec7d_81270955.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6d1c97f64f966c6d52219a19a2485097_20501785.png change filename to text .imagette210188601741105861/ imagette210188601741105861/1741105772_237757_1340835957_00c5dc0540a8b16cbc51f03faa0de8a8_rle_crop_3693432489_0.png.png imagette210188601741105861/1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427351_0.png.png imagette210188601741105861/1741105514_234818_1340835697_f117b4a0cffbc24acc61767b9df993fe_rle_crop_3693429464_0.png.png imagette210188601741105861/1741105772_237757_1340835957_00c5dc0540a8b16cbc51f03faa0de8a8_rle_crop_3693432493_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/984cb53dcdb6172f70cfd2cadcb4faf6_73501268.png imagette210188601741105861 21018861 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=21018861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835652: '1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427582_0.png', 1340835729: '1741105390_233107_1340835604_0407461612520312a8db80dca7900970_rle_crop_3693428269_0.png', 1340835730: '1741105390_233107_1340835579_1282c015f14de45ca2cc950c27792135_rle_crop_3693428316_0.png', 1340835828: '1741105503_234673_1340835658_6b284338dac2ab26e41a7e6ab5ce9229_rle_crop_3693429439_0.png', 1340835998: '1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431374_0.png', 1340835999: '1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431441_0.png', 1340836039: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431607_0.png', 1340836138: '1741105772_237757_1340835972_ae101c5b103fc73b05cc099d3a805736_rle_crop_3693432462_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2747d98257dbc5ff1936cae8f37e72b8_41172124.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/47d82d185293c7a047574bcb4d06f4bf_71966829.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a9348607badf193af9c853c36e2a62e4_77076697.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2c4410c94de41fa23b51a256037f901e_32605752.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3abaac2a3bf0f253e07ef5bf3acf726f_27805599.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8b5d439aa30aa9fa80f4b5864045194d_35789732.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/27314e4eb0b54c35846e53522a0ae835_44772475.png change filename to text .imagette210188611741105861/ imagette210188611741105861/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431607_0.png.png imagette210188611741105861/1741105503_234673_1340835658_6b284338dac2ab26e41a7e6ab5ce9229_rle_crop_3693429439_0.png.png imagette210188611741105861/1741105390_233107_1340835604_0407461612520312a8db80dca7900970_rle_crop_3693428269_0.png.png imagette210188611741105861/1741105390_233107_1340835579_1282c015f14de45ca2cc950c27792135_rle_crop_3693428316_0.png.png imagette210188611741105861/1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431374_0.png.png imagette210188611741105861/1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427582_0.png.png imagette210188611741105861/1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431441_0.png.png imagette210188611741105861/1741105772_237757_1340835972_ae101c5b103fc73b05cc099d3a805736_rle_crop_3693432462_0.png.png imagette210188621741105862/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/267f52ac6c858263837c33c76987531c_42320982.png imagette210188611741105861 21018862 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=21018862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210188621741105862 21018852 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=21018852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835637: '1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427354_0.png', 1340835638: '1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427353_0.png', 1340835639: '1741105273_231453_1340835137_515d2832da2b64f028cbc34535f456ab_rle_crop_3693427370_0.png', 1340835833: '1741105514_234818_1340835703_0388389bcfed6b693dffe903949c6682_rle_crop_3693429456_0.png', 1340835985: '1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431398_0.png', 1340835986: '1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431395_0.png', 1340836023: '1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431567_0.png', 1340836024: '1741105653_236477_1340835794_09d110b2054121c775362259441e222c_rle_crop_3693431594_0.png', 1340836025: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431616_0.png', 1340836026: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431613_0.png', 1340836027: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431620_0.png', 1340836028: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431617_0.png', 1340836105: '1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432177_0.png', 1340836130: '1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432481_0.png', 1340836131: '1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432484_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c26f29b1fe966ea6c7846be92bf173e0_31108319.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/45639a88470642173137071245d995f1_48547963.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bcb97d443a90a3ade579ee6094c25c15_17600744.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5f975c3d1fb935464690805fa9edbbc2_58150514.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cca4be05f9a41d70b43229579b357be1_48904299.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/154cf4ff1303715445398490ee03628a_29559188.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9c8418fb38a28ce1509ff1dcb5da2073_96419138.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/08ca1c987b07dac875c66d877d80fd15_60146799.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c4a41b03d01bd5524847cbc4102a5282_83515360.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4da943c51001d3cbce25e256af4d207e_57456139.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f14b2ae2536211e15425922f9624bc7c_59777756.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/08b1e1acab5d0d59d357214d51031e58_11310988.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/bc1c64c785a11b7a2b179cc493b16125_46193064.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ed91f9cd8cff9e807333465caca6d6c3_38288224.png change filename to text .imagette210188521741105862/ imagette210188521741105862/1741105752_237550_1340835915_df6fb8c6432f15e6f96eef96c340b829_rle_crop_3693432177_0.png.png imagette210188521741105862/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431617_0.png.png imagette210188521741105862/1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427353_0.png.png imagette210188521741105862/1741105273_231453_1340835137_515d2832da2b64f028cbc34535f456ab_rle_crop_3693427370_0.png.png imagette210188521741105862/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431613_0.png.png imagette210188521741105862/1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431567_0.png.png imagette210188521741105862/1741105514_234818_1340835703_0388389bcfed6b693dffe903949c6682_rle_crop_3693429456_0.png.png imagette210188521741105862/1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432484_0.png.png imagette210188521741105862/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431616_0.png.png imagette210188521741105862/1741105653_236477_1340835794_09d110b2054121c775362259441e222c_rle_crop_3693431594_0.png.png imagette210188521741105862/1741105273_231453_1340835253_df0a60edf368ba940b0bdaa51714ad17_rle_crop_3693427354_0.png.png imagette210188521741105862/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431620_0.png.png imagette210188521741105862/1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431398_0.png.png imagette210188521741105862/1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432481_0.png.png imagette210188521741105862/1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431395_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/141772267d0911e81a1df880a92aa349_59173605.png imagette210188521741105862 21018856 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=21018856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835651: '1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427579_0.png', 1340835727: '1741105390_233107_1340835600_de8e277f85c9b6280e4e8bc30d253b1c_rle_crop_3693428289_0.png', 1340835728: '1741105390_233107_1340835579_1282c015f14de45ca2cc950c27792135_rle_crop_3693428313_0.png', 1340835994: '1741105633_236228_1340835824_27f9a2c3e317a35045e0bfd7c4d04480_rle_crop_3693431178_0.png', 1340835995: '1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431368_0.png', 1340835996: '1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431392_0.png', 1340835997: '1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431438_0.png', 1340836035: '1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431556_0.png', 1340836037: '1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431606_0.png', 1340836110: '1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432145_0.png', 1340836137: '1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432475_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4cc6e2b83a0a0772d4726f74a3c6e1f1_51219251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fa3f7fee040bcbcb738d8c74003c7b3c_1553409.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1a31fb483fdbe8b69af8b1d59dec310a_48197531.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b4188e41195b4de7afa3d2b5a2705d6b_98658484.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4a625fb62faf392818be97f8b05cf9b3_10735695.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/40f3e81be5646f759851e8e5e2455496_1274131.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5394747d505386ca9a37e3d39e3b464e_38952629.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/71bc375883874895536499545d5eda52_31151751.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/a0fab63710e10108cbd20dccc990c49a_3198515.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/5c4f54ec4cc789eed8861255a2b67996_39880877.png change filename to text .imagette210188561741105862/ imagette210188561741105862/1741105633_236228_1340835761_e6a6116441037d14aab49dc81ff716e5_rle_crop_3693431392_0.png.png imagette210188561741105862/1741105633_236228_1340835741_2b5ddf68d5a2b12d2f7e259619a7a894_rle_crop_3693431438_0.png.png imagette210188561741105862/1741105390_233107_1340835579_1282c015f14de45ca2cc950c27792135_rle_crop_3693428313_0.png.png imagette210188561741105862/1741105390_233107_1340835600_de8e277f85c9b6280e4e8bc30d253b1c_rle_crop_3693428289_0.png.png imagette210188561741105862/1741105653_236477_1340835791_7561e2fdc99e5c9d2e36e64965efe4b1_rle_crop_3693431606_0.png.png imagette210188561741105862/1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432145_0.png.png imagette210188561741105862/1741105633_236228_1340835768_c4cc50eea8517d8e9ed28607208df677_rle_crop_3693431368_0.png.png imagette210188561741105862/1741105653_236477_1340835798_b7134479b0d303145d805401ba86e66f_rle_crop_3693431556_0.png.png imagette210188561741105862/1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427579_0.png.png imagette210188561741105862/1741105633_236228_1340835824_27f9a2c3e317a35045e0bfd7c4d04480_rle_crop_3693431178_0.png.png imagette210188561741105862/1741105772_237757_1340835960_acd8ba8cb0da05461342578b3faacea6_rle_crop_3693432475_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/b7f17bb3fec62b397e030e7a0897ffff_44738216.png imagette210188561741105862 21018859 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=21018859 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340835653: '1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427580_0.png', 1340835830: '1741105503_234673_1340835658_6b284338dac2ab26e41a7e6ab5ce9229_rle_crop_3693429443_0.png', 1340836111: '1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432146_0.png', 1340836112: '1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432147_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/863b2b27e8f871f45645a2ef7271c0e5_93418123.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ed180f972bc07ce4274a91d1cbbff3fc_91455592.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/15a4a5b8201d83502d2efe3e8a206807_73678504.png change filename to text .imagette210188591741105863/ imagette210188591741105863/1741105503_234673_1340835658_6b284338dac2ab26e41a7e6ab5ce9229_rle_crop_3693429443_0.png.png imagette210188591741105863/1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432147_0.png.png imagette210188591741105863/1741105273_231453_1340835014_896e35eb24b4a98d5b8645e1c18e61bd_rle_crop_3693427580_0.png.png imagette210188591741105863/1741105752_237550_1340835977_65fffc2bf1d210a9e029997ecb95ea4e_rle_crop_3693432146_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3dd37432598375df38586ea4c883623f_12344801.png imagette210188591741105863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21018850 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21018864,21018865,21018866,21018867,21018868,21018869,21018870,21018871,21018872,21018873,21018874,21018875?tags=Teint_Dans_La_Masse,papier,mal_croppe,autre_refus,Carton_gris,kraft,flou,Carton_brun,plastique,cartonnette,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1340836083] : ('0.07808792492107208',) no score found for photo 1340836083 We are sending mail with results at report@fotonower.com args[1340836080] : ('0.07808792492107208',) no score found for photo 1340836080 We are sending mail with results at report@fotonower.com args[1340836077] : ('0.07808792492107208',) no score found for photo 1340836077 We are sending mail with results at report@fotonower.com args[1340836072] : ('0.07808792492107208',) no score found for photo 1340836072 We are sending mail with results at report@fotonower.com args[1340836050] : ('0.07808792492107208',) no score found for photo 1340836050 We are sending mail with results at report@fotonower.com args[1340836045] : ('0.07808792492107208',) no score found for photo 1340836045 We are sending mail with results at report@fotonower.com args[1340836040] : ('0.07808792492107208',) no score found for photo 1340836040 We are sending mail with results at report@fotonower.com args[1340836038] : ('0.07808792492107208',) no score found for photo 1340836038 We are sending mail with results at report@fotonower.com args[1340836022] : ('0.07808792492107208',) no score found for photo 1340836022 We are sending mail with results at report@fotonower.com refus_total : 0.07808792492107208 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=21018850 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_P21018850_04-03-2025_17_31_00.pdf results_Auto_P21018850_04-03-2025_17_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_17_31_00.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','21018850','results_Auto_P21018850_04-03-2025_17_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_17_31_00.pdf','pdf','','0.27','0.07808792492107208') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21018850]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] map_info['map_portfolio_photo'] : {21018850: [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022, 1340835977, 1340835972, 1340835966, 1340835960, 1340835957, 1340835925, 1340835919, 1340835915, 1340835892, 1340835824, 1340835812, 1340835804, 1340835798, 1340835794, 1340835791, 1340835772, 1340835768, 1340835761, 1340835754, 1340835741, 1340835706, 1340835703, 1340835697, 1340835664, 1340835658, 1340835608, 1340835604, 1340835600, 1340835593, 1340835579, 1340835460, 1340835253, 1340835137, 1340835103, 1340835077, 1340835014]} final : False mtd_id 4302 list_pids : [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] 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, '2633533') ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '21018850', '1340836083', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533')] time used for this insertion : 0.015816450119018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.317886829376221 time spend to save output : 0.016079425811767578 total time spend for step 4 : 5.333966255187988 step5:split_time_score Tue Mar 4 17:31:04 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 : ['21018850'] 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 : [('21018850',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21018850) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340836083: {'path': 'temp/1741105859_714000_1340836083_ef2ab5db3a4e4c0e4139d4be9bf06405.jpg', 'extension': 'jpg'}, 1340836040: {'path': 'temp/1741105859_714000_1340836040_a8ad94bc182f01b0378fb40dc042c7a4.jpg', 'extension': 'jpg'}, 1340836045: {'path': 'temp/1741105859_714000_1340836045_393b2321ab28b9eb19e2d3183ae62355.jpg', 'extension': 'jpg'}, 1340836077: {'path': 'temp/1741105859_714000_1340836077_2554c57ad4fe13d3b92fcd02da607887.jpg', 'extension': 'jpg'}, 1340836080: {'path': 'temp/1741105859_714000_1340836080_5e4bc574c6e62ad1cd98a3ee486f8ac1.jpg', 'extension': 'jpg'}, 1340836022: {'path': 'temp/1741105859_714000_1340836022_f5dc830331647b597e0d84e454a1d18d.jpg', 'extension': 'jpg'}, 1340836038: {'path': 'temp/1741105859_714000_1340836038_a6d2a29aeb96c69176644bb75c7aed06.jpg', 'extension': 'jpg'}, 1340836050: {'path': 'temp/1741105859_714000_1340836050_76597462ada7649ce7f777984238daf3.jpg', 'extension': 'jpg'}, 1340836072: {'path': 'temp/1741105859_714000_1340836072_52786eb161108d6d8a2017e06a45c62f.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 = 21018850; (('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 = 21018850 group by h (('17', 45),) 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=21018850 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 (21018850) 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 (21018850) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21018850 Nombre de photos uploadées : 45 / 23040 (0%) 04032025 21018850 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 04032025 21018850 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1340835137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/515d2832da2b64f028cbc34535f456ab.jpg', 'username': None, 'uploaded_at': 1741104982, 'text': 'image_04032025_17_15_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340835103, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/cbcc5957d2b77924ec48f3a0ccc5e4d3.jpg', 'username': None, 'uploaded_at': 1741104982, 'text': 'image_04032025_17_15_14_010150m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340835077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/163a28a87ff5c4924f63ce90ee451a75.jpg', 'username': None, 'uploaded_at': 1741104982, 'text': 'image_04032025_17_15_24_010144m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340835014, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/896e35eb24b4a98d5b8645e1c18e61bd.jpg', 'username': None, 'uploaded_at': 1741104982, 'text': 'image_04032025_17_15_34_010146m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017516613006591797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21018850, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022490739822387695 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1645954, 'mtr_portfolio_id': 21017247, 'dashboard_result_id': 9200300, '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_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1645954, 'mtr_portfolio_id': 21017803, 'dashboard_result_id': 9200301, '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_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1645954, 'mtr_portfolio_id': 21018850, 'dashboard_result_id': 9200302, '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_P21018850_04-03-2025_17_28_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, '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 = 21017247 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': 2633425, 'mtr_portfolio_id': 21017247, 'created_at': datetime.datetime(2025, 3, 4, 17, 2, 29), 'result': '0.07085822109150657', 'result_long': None, 'result_double': None}] Qualite : 0.07085822109150657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21017247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21017247 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_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, 'pht': 3726}}" where mtr_portfolio_id = 21017247 and dashboard_run_id = 1645954 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`=21017247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9200300, 0.07085822109150657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017247_04-03-2025_17_02_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017262, '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 = 21017803 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': 2633478, 'mtr_portfolio_id': 21017803, 'created_at': datetime.datetime(2025, 3, 4, 17, 19), 'result': '0.08756407342846828', 'result_long': None, 'result_double': None}] Qualite : 0.08756407342846828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21017803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21017803 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_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, 'pht': 3726}}" where mtr_portfolio_id = 21017803 and dashboard_run_id = 1645954 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`=21017803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9200301, 0.08756407342846828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21017803_04-03-2025_17_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21017857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21017858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21017859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21017860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21017861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21017862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21017863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21017864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21017865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21017866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21017867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21017868, '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 = 21018850 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': 2633533, 'mtr_portfolio_id': 21018850, 'created_at': datetime.datetime(2025, 3, 4, 17, 30, 59), 'result': '0.07808792492107208', 'result_long': None, 'result_double': None}] Qualite : 0.07808792492107208 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21018850 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_17_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21018850 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_P21018850_04-03-2025_17_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, 'pht': 3726}}" where mtr_portfolio_id = 21018850 and dashboard_run_id = 1645954 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`=21018850 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9200302, 0.07808792492107208, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21018850_04-03-2025_17_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21018852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21018853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21018854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21018855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21018856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21018857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21018858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21018859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21018860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21018861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21018862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21018863, '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 (21017247,21017803,21018850) result : ((1340830954,), (1340830963,), (1340830981,), (1340831009,), (1340831019,), (1340831112,), (1340831122,), (1340831127,), (1340831137,), (1340831211,), (1340831214,), (1340831217,), (1340831222,), (1340831227,), (1340831231,), (1340831267,), (1340831273,), (1340831390,), (1340831394,), (1340831397,), (1340831403,), (1340831409,), (1340831434,), (1340831438,), (1340831441,), (1340831446,), (1340831493,), (1340831498,), (1340831500,), (1340831503,), (1340831506,), (1340831577,), (1340831583,), (1340831586,), (1340831590,), (1340831644,), (1340831731,), (1340831735,), (1340831738,), (1340831741,), (1340831744,), (1340831747,), (1340831769,), (1340831782,), (1340831785,), (1340831789,), (1340832018,), (1340832022,), (1340832031,), (1340832036,), (1340832048,), (1340832139,), (1340832143,), (1340832147,), (1340832153,), (1340832159,), (1340832164,), (1340832212,), (1340832226,), (1340832229,), (1340832233,), (1340832297,), (1340832304,), (1340832314,), (1340832328,), (1340832339,), (1340832343,), (1340832357,), (1340832360,), (1340832384,), (1340832433,), (1340832402,), (1340832415,), (1340832423,), (1340832428,), (1340832645,), (1340832659,), (1340832668,), (1340832674,), (1340832677,), (1340833155,), (1340833178,), (1340833182,), (1340833186,), (1340833251,), (1340833256,), (1340833325,), (1340833333,), (1340833346,), (1340833358,), (1340833417,), (1340833424,), (1340833426,), (1340833432,), (1340833468,), (1340833485,), (1340833496,), (1340833503,), (1340833509,), (1340833515,), (1340833538,), (1340833543,), (1340833547,), (1340833612,), (1340833617,), (1340833620,), (1340833625,), (1340833629,), (1340833631,), (1340833731,), (1340833735,), (1340833737,), (1340833741,), (1340833752,), (1340833757,), (1340833925,), (1340833949,), (1340833983,), (1340833999,), (1340834120,), (1340834162,), (1340834170,), (1340834180,), (1340834198,), (1340834203,), (1340834224,), (1340834229,), (1340834232,), (1340834238,), (1340834244,), (1340834267,), (1340834272,), (1340834275,), (1340834280,), (1340834285,), (1340834298,), (1340834627,), (1340834636,), (1340834638,), (1340834647,), (1340834910,), (1340834932,), (1340835152,), (1340835014,), (1340835077,), (1340835103,), (1340835137,), (1340835253,), (1340835460,), (1340835579,), (1340835593,), (1340835600,), (1340835604,), (1340835608,), (1340835658,), (1340835664,), (1340835697,), (1340835703,), (1340835706,), (1340835741,), (1340835754,), (1340835761,), (1340835768,), (1340835772,), (1340835791,), (1340835794,), (1340835798,), (1340835804,), (1340835812,), (1340835824,), (1340835892,), (1340835915,), (1340835919,), (1340835925,), (1340835957,), (1340835960,), (1340835966,), (1340835972,), (1340835977,), (1340836022,), (1340836038,), (1340836040,), (1340836045,), (1340836050,), (1340836072,), (1340836077,), (1340836080,), (1340836083,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21018850]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] map_info['map_portfolio_photo'] : {21018850: [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022, 1340835977, 1340835972, 1340835966, 1340835960, 1340835957, 1340835925, 1340835919, 1340835915, 1340835892, 1340835824, 1340835812, 1340835804, 1340835798, 1340835794, 1340835791, 1340835772, 1340835768, 1340835761, 1340835754, 1340835741, 1340835706, 1340835703, 1340835697, 1340835664, 1340835658, 1340835608, 1340835604, 1340835600, 1340835593, 1340835579, 1340835460, 1340835253, 1340835137, 1340835103, 1340835077, 1340835014]} final : True mtd_id 4302 list_pids : [1340836083, 1340836080, 1340836077, 1340836072, 1340836050, 1340836045, 1340836040, 1340836038, 1340836022] Looping around the photos to save general results len do output : 1 /21018850Didn'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, '2633533') ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533') ('4302', None, None, None, None, None, None, None, '2633533') ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533') 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', None, '21018850', 'None', None, None, None, None, '2633533'), ('4302', '21018850', '1340836083', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836080', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836077', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836072', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836050', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836045', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836040', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836038', None, None, None, None, None, '2633533'), ('4302', '21018850', '1340836022', None, None, None, None, None, '2633533')] time used for this insertion : 0.014262676239013672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3160557746887207 time spend to save output : 0.014516592025756836 total time spend for step 5 : 0.33057236671447754 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 (2633533) 2.23user 2.18system 0:09.09elapsed 48%CPU (0avgtext+0avgdata 159916maxresident)k 704inputs+13816outputs (24major+74872minor)pagefaults 0swaps