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 : 2379796 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 (2613698) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2613698) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815112 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2613698'] with mtr_portfolio_ids : ['20815112'] and first list_photo_ids : [] new path : /proc/2379796/ Name: python3 Umask: 0002 State: R (running) Tgid: 2379796 Ngid: 0 Pid: 2379796 PPid: 2379795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2379796 NSpid: 2379796 NSpgid: 2377461 NSsid: 2377461 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98488 kB VmRSS: 98488 kB RssAnon: 59760 kB RssFile: 38728 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 57 nonvoluntary_ctxt_switches: 65 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2379796', 'Ngid': '0', 'Pid': '2379796', 'PPid': '2379795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2379796', 'NSpid': '2379796', 'NSpgid': '2377461', 'NSsid': '2377461', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98488 kB', 'VmRSS': '98488 kB', 'RssAnon': '59760 kB', 'RssFile': '38728 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '57', 'nonvoluntary_ctxt_switches': '65'} ('datou_batch_current', '2379796', '1106844', '0', '1106844', '865592', '98488', b'', 'marlene', '2613698') 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 (20815112) 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 (2613698 ) ) 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 (20815112) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339584816, 'portfolio_id': 20815112}, {'photo_id': 1339584547, 'portfolio_id': 20815112}, {'photo_id': 1339584478, 'portfolio_id': 20815112}, {'photo_id': 1339584426, 'portfolio_id': 20815112}, {'photo_id': 1339584421, 'portfolio_id': 20815112}, {'photo_id': 1339584418, 'portfolio_id': 20815112}, {'photo_id': 1339584414, 'portfolio_id': 20815112}, {'photo_id': 1339584099, 'portfolio_id': 20815112}, {'photo_id': 1339584095, 'portfolio_id': 20815112}, {'photo_id': 1339584092, 'portfolio_id': 20815112}, {'photo_id': 1339584088, 'portfolio_id': 20815112}, {'photo_id': 1339584084, 'portfolio_id': 20815112}, {'photo_id': 1339584002, 'portfolio_id': 20815112}, {'photo_id': 1339584000, 'portfolio_id': 20815112}, {'photo_id': 1339583979, 'portfolio_id': 20815112}, {'photo_id': 1339583876, 'portfolio_id': 20815112}, {'photo_id': 1339583571, 'portfolio_id': 20815112}, {'photo_id': 1339583567, 'portfolio_id': 20815112}, {'photo_id': 1339583564, 'portfolio_id': 20815112}, {'photo_id': 1339583561, 'portfolio_id': 20815112}, {'photo_id': 1339583560, 'portfolio_id': 20815112}, {'photo_id': 1339583516, 'portfolio_id': 20815112}, {'photo_id': 1339582834, 'portfolio_id': 20815112}, {'photo_id': 1339582830, 'portfolio_id': 20815112}, {'photo_id': 1339582827, 'portfolio_id': 20815112}, {'photo_id': 1339582825, 'portfolio_id': 20815112}, {'photo_id': 1339582822, 'portfolio_id': 20815112}, {'photo_id': 1339582799, 'portfolio_id': 20815112}, {'photo_id': 1339582793, 'portfolio_id': 20815112}, {'photo_id': 1339582789, 'portfolio_id': 20815112}, {'photo_id': 1339582778, 'portfolio_id': 20815112}, {'photo_id': 1339582775, 'portfolio_id': 20815112}, {'photo_id': 1339582738, 'portfolio_id': 20815112}, {'photo_id': 1339582734, 'portfolio_id': 20815112}, {'photo_id': 1339582731, 'portfolio_id': 20815112}, {'photo_id': 1339582728, 'portfolio_id': 20815112}, {'photo_id': 1339582659, 'portfolio_id': 20815112}, {'photo_id': 1339582657, 'portfolio_id': 20815112}, {'photo_id': 1339582654, 'portfolio_id': 20815112}, {'photo_id': 1339582618, 'portfolio_id': 20815112}, {'photo_id': 1339582616, 'portfolio_id': 20815112}, {'photo_id': 1339582614, 'portfolio_id': 20815112}, {'photo_id': 1339582611, 'portfolio_id': 20815112}, {'photo_id': 1339582608, 'portfolio_id': 20815112}, {'photo_id': 1339582604, 'portfolio_id': 20815112}, {'photo_id': 1339582493, 'portfolio_id': 20815112}, {'photo_id': 1339582455, 'portfolio_id': 20815112}, {'photo_id': 1339582367, 'portfolio_id': 20815112}, {'photo_id': 1339582272, 'portfolio_id': 20815112}] map_portfolio_id_photo_id: {20815112: [1339584816, 1339584547, 1339584478, 1339584426, 1339584421, 1339584418, 1339584414, 1339584099, 1339584095, 1339584092, 1339584088, 1339584084, 1339584002, 1339584000, 1339583979, 1339583876, 1339583571, 1339583567, 1339583564, 1339583561, 1339583560, 1339583516, 1339582834, 1339582830, 1339582827, 1339582825, 1339582822, 1339582799, 1339582793, 1339582789, 1339582778, 1339582775, 1339582738, 1339582734, 1339582731, 1339582728, 1339582659, 1339582657, 1339582654, 1339582618, 1339582616, 1339582614, 1339582611, 1339582608, 1339582604, 1339582493, 1339582455, 1339582367, 1339582272]} ##### 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.016554594039916992 #### 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 Feb 25 19:32: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 (20815112) 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 : 20815112 get user id for portfolio 20815112 get sub ptf for main ptf 20815112, type 3726 and hashtags ['papier', 'autre_refus', 'plastique', 'Carton_gris', 'environnement', 'kraft', 'mal_croppe', 'flou', 'Carton_brun', 'metal', 'cartonnette', 'Teint_Dans_La_Masse'] 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`=20815112 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','plastique','Carton_gris','environnement','kraft','mal_croppe','flou','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) 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`=20815112 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','plastique','Carton_gris','environnement','kraft','mal_croppe','flou','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20815112, 'sub_port_id': 20815138, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452046, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'papier': {'main_port_id': 20815112, 'sub_port_id': 20815139, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452047, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'metal': {'main_port_id': 20815112, 'sub_port_id': 20815140, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452048, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'kraft': {'main_port_id': 20815112, 'sub_port_id': 20815141, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452049, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'autre_refus': {'main_port_id': 20815112, 'sub_port_id': 20815142, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452050, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'cartonnette': {'main_port_id': 20815112, 'sub_port_id': 20815143, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452051, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'Carton_gris': {'main_port_id': 20815112, 'sub_port_id': 20815144, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452052, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'environnement': {'main_port_id': 20815112, 'sub_port_id': 20815145, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452053, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20815112, 'sub_port_id': 20815146, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452054, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'mal_croppe': {'main_port_id': 20815112, 'sub_port_id': 20815147, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452055, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'plastique': {'main_port_id': 20815112, 'sub_port_id': 20815148, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452056, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}, 'flou': {'main_port_id': 20815112, 'sub_port_id': 20815149, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452057, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20815138 , 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=20815112 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 (20815138) result : ((1339582906,), (1339583038,), (1339583039,), (1339583040,), (1339583042,), (1339583518,), (1339583519,), (1339583520,), (1339583521,), (1339583522,), (1339583538,), (1339583539,), (1339583540,), (1339583554,), (1339583555,), (1339583556,), (1339583590,), (1339583591,), (1339583592,), (1339583593,), (1339583594,), (1339584080,), (1339584081,), (1339584493,), (1339584497,), (1339584498,), (1339584523,), (1339584544,), (1339584545,), (1339584546,), (1339584792,), (1339584793,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815139 , 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=20815112 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 (20815139) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815140 , 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=20815112 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 (20815140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815141 , 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=20815112 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 (20815141) result : ((1339583542,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815142 , 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=20815112 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 (20815142) result : ((1339582837,), (1339583017,), (1339583505,), (1339583506,), (1339583507,), (1339583508,), (1339583579,), (1339583580,), (1339583581,), (1339583582,), (1339584077,), (1339584078,), (1339584079,), (1339584490,), (1339584518,), (1339584519,), (1339584788,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815143 , 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=20815112 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 (20815143) result : ((1339583023,), (1339583024,), (1339583025,), (1339583513,), (1339583514,), (1339583515,), (1339583552,), (1339583586,), (1339583587,), (1339583588,), (1339584496,), (1339584520,), (1339584521,), (1339584538,), (1339584539,), (1339584540,), (1339584541,), (1339584789,), (1339584790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815144 , 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=20815112 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 (20815144) result : ((1339582884,), (1339583019,), (1339583020,), (1339583021,), (1339583509,), (1339583510,), (1339583536,), (1339583550,), (1339583551,), (1339583584,), (1339583585,), (1339584536,), (1339584537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815145 , 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=20815112 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 (20815145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815146 , 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=20815112 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 (20815146) result : ((1339582804,), (1339583503,), (1339583547,), (1339583548,), (1339583577,), (1339584075,), (1339584489,), (1339584495,), (1339584533,), (1339584787,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815147 , 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=20815112 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 (20815147) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815148 , 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=20815112 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 (20815148) result : ((1339582937,), (1339582938,), (1339583067,), (1339583524,), (1339583525,), (1339583541,), (1339583557,), (1339583595,), (1339583596,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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 20815149 , 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=20815112 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 (20815149) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20815112) result : ((1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) 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 (1339584000) 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`=20815112 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','plastique','Carton_gris','environnement','kraft','mal_croppe','flou','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) 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`=20815112 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','plastique','Carton_gris','environnement','kraft','mal_croppe','flou','Carton_brun','metal','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20815112, 'sub_port_id': 20815150, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452058, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'papier': {'main_port_id': 20815112, 'sub_port_id': 20815151, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452059, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'metal': {'main_port_id': 20815112, 'sub_port_id': 20815152, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452060, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'kraft': {'main_port_id': 20815112, 'sub_port_id': 20815153, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452061, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'autre_refus': {'main_port_id': 20815112, 'sub_port_id': 20815154, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452062, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'cartonnette': {'main_port_id': 20815112, 'sub_port_id': 20815155, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452063, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'Carton_gris': {'main_port_id': 20815112, 'sub_port_id': 20815156, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452064, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'environnement': {'main_port_id': 20815112, 'sub_port_id': 20815157, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452065, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20815112, 'sub_port_id': 20815158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452066, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'mal_croppe': {'main_port_id': 20815112, 'sub_port_id': 20815159, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452067, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'plastique': {'main_port_id': 20815112, 'sub_port_id': 20815160, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452068, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}, 'flou': {'main_port_id': 20815112, 'sub_port_id': 20815161, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13452069, 'last_updated_at': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 19, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 19, 21, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20815161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20815149 lien utilise dans velours : https://www.fotonower.com/velours/20815150,20815151,20815152,20815153,20815154,20815155,20815156,20815157,20815158,20815159,20815160,20815161?tags=Carton_brun,papier,metal,kraft,autre_refus,cartonnette,Carton_gris,environnement,Teint_Dans_La_Masse,mal_croppe,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20815112]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339584816, 1339584547, 1339584478] map_info['map_portfolio_photo'] : {20815112: [1339584816, 1339584547, 1339584478, 1339584426, 1339584421, 1339584418, 1339584414, 1339584099, 1339584095, 1339584092, 1339584088, 1339584084, 1339584002, 1339584000, 1339583979, 1339583876, 1339583571, 1339583567, 1339583564, 1339583561, 1339583560, 1339583516, 1339582834, 1339582830, 1339582827, 1339582825, 1339582822, 1339582799, 1339582793, 1339582789, 1339582778, 1339582775, 1339582738, 1339582734, 1339582731, 1339582728, 1339582659, 1339582657, 1339582654, 1339582618, 1339582616, 1339582614, 1339582611, 1339582608, 1339582604, 1339582493, 1339582455, 1339582367, 1339582272]} final : False mtd_id 4302 list_pids : [1339584816, 1339584547, 1339584478] Looping around the photos to save general results len do output : 1 /20815112. 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, '2613698') ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '20815112', "{'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149}", None, None, None, None, '2613698'), ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698')] time used for this insertion : 0.011948585510253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45984625816345215 time spend to save output : 0.01218271255493164 total time spend for step 1 : 0.4720289707183838 step2:final Tue Feb 25 19:32: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 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 (20815112) 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 20815112 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339582493,1339582455,1339582367,1339582272,1339582618,1339582616,1339582614,1339582611,1339582608,1339582604,1339582659,1339582657,1339582654,1339582738,1339582734,1339582731,1339582728,1339582799,1339582793,1339582789,1339582778,1339582775,1339582834,1339582830,1339582827,1339582825,1339583516,1339582822,1339583571,1339583567,1339583564,1339583561,1339583560,1339584002,1339584000,1339583979,1339583876,1339584099,1339584095,1339584092,1339584088,1339584084,1339584426,1339584421,1339584418,1339584414,1339584478,1339584816,1339584547); 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([20815112]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} new output for save of step final : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} [1339584816, 1339584547, 1339584478] map_info['map_portfolio_photo'] : {20815112: [1339584816, 1339584547, 1339584478, 1339584426, 1339584421, 1339584418, 1339584414, 1339584099, 1339584095, 1339584092, 1339584088, 1339584084, 1339584002, 1339584000, 1339583979, 1339583876, 1339583571, 1339583567, 1339583564, 1339583561, 1339583560, 1339583516, 1339582834, 1339582830, 1339582827, 1339582825, 1339582822, 1339582799, 1339582793, 1339582789, 1339582778, 1339582775, 1339582738, 1339582734, 1339582731, 1339582728, 1339582659, 1339582657, 1339582654, 1339582618, 1339582616, 1339582614, 1339582611, 1339582608, 1339582604, 1339582493, 1339582455, 1339582367, 1339582272]} final : False mtd_id 4302 list_pids : [1339584816, 1339584547, 1339584478] Looping around the photos to save general results len do output : 3 /1339584816.Didn't retrieve data . /1339584547.Didn't retrieve data . /1339584478.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, '2613698') ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698') 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', '20815112', '1339584816', '0.09729479544580634', None, None, None, None, '2613698'), ('4302', '20815112', '1339584547', '0.09729479544580634', None, None, None, None, '2613698'), ('4302', '20815112', '1339584478', '0.09729479544580634', None, None, None, None, '2613698')] time used for this insertion : 0.012681245803833008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07381272315979004 time spend to save output : 0.012986421585083008 total time spend for step 2 : 0.08679914474487305 step3:velours_tree Tue Feb 25 19:32: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 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 : {20815112: [{'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149}]} input_args_next_step : {20815112: ()} output_args : {20815112: [{'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149}]} args : 20815112 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20815112) 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([20815112]) 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.2924032211303711 time spend to save output : 4.506111145019531e-05 total time spend for step 3 : 0.2924482822418213 step4:send_mail_cod Tue Feb 25 19:32: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 : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} input_args_next_step : {1339584816: ()} output_args : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} args : 1339584816 depend.output_id : 0 input_args_next_step : {1339584816: ('0.09729479544580634',), 1339584547: ()} output_args : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} args : 1339584547 depend.output_id : 0 input_args_next_step : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ()} output_args : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',)} args : 1339584478 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 : {20815112: [{'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149}]} input_args_next_step : {1339584816: ('0.09729479544580634',), 1339584547: ('0.09729479544580634',), 1339584478: ('0.09729479544580634',), 20815112: ()} output_args : {20815112: [{'Carton_brun': 20815138, 'papier': 20815139, 'metal': 20815140, 'kraft': 20815141, 'autre_refus': 20815142, 'cartonnette': 20815143, 'Carton_gris': 20815144, 'environnement': 20815145, 'Teint_Dans_La_Masse': 20815146, 'mal_croppe': 20815147, 'plastique': 20815148, 'flou': 20815149}]} args : 20815112 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 :4, first value : ('0.09729479544580634',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20815112) 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 (1339584816,1339584547,1339584478) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339584478 begin to download photo : 1339584547 begin to download photo : 1339584816 download finish for photo 1339584547 download finish for photo 1339584478 download finish for photo 1339584816 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208151401740508379/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P20815112_25-02-2025_19_32_59.pdf 20815140 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=20815140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208151401740508379 20815141 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=20815141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339583542: '1740507791_1772887_1339582793_9f55151b42ae462b6b52dbad222e197f_rle_crop_3686663262_0.png'} change filename to text .imagette208151411740508379/ imagette208151411740508379/1740507791_1772887_1339582793_9f55151b42ae462b6b52dbad222e197f_rle_crop_3686663262_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/42c546e706d77d3037de9ace2d34b7f2_66070447.png imagette208151411740508379 20815142 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=20815142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339583581: '1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663524_0.png', 1339584788: '1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666584_0.png', 1339584519: '1740508132_1776970_1339583979_f074bcf32cce0571f3af84981b0a2985_rle_crop_3686666870_0.png', 1339584518: '1740508132_1776970_1339584099_7b9788a916dae6032dd185fb2ca5f737_rle_crop_3686666713_0.png', 1339584490: '1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666584_0.png', 1339584079: '1740507934_1775033_1339583564_09bfd119a47b2f35b307a2d84fc82e8f_rle_crop_3686665588_0.png', 1339584078: '1740507934_1775033_1339583567_2960f9f6712933aa540c1ce86e3acbba_rle_crop_3686665583_0.png', 1339584077: '1740507934_1775033_1339583567_2960f9f6712933aa540c1ce86e3acbba_rle_crop_3686665582_0.png', 1339583582: '1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663525_0.png', 1339582837: '1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661878_0.png', 1339583580: '1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663501_0.png', 1339583579: '1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663506_0.png', 1339583508: '1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663525_0.png', 1339583507: '1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663524_0.png', 1339583506: '1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663501_0.png', 1339583505: '1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663506_0.png', 1339583017: '1740507633_1770743_1339582604_1acb14cdba20c0a78bd34af0649a2888_rle_crop_3686661954_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e81d96718b60564f7646541875fdff31_71234227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/cfbee1096ec60b1ab9da651fe187bfbe_18408930.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/042d315fa26de9961ddedb16a9f52e11_32864497.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bbb8de0c1f9224638b9eabb7446b998c_29958809.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/cfbee1096ec60b1ab9da651fe187bfbe_99219467.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/27e7f90afa8014d5a1d8e087f37495fd_88651478.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/927181b042eaa8e69eac1fe8c24d1546_15226002.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ae943bfdaf67b7dc09c219ea1e2e34a5_68843134.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ba3cb7dceb8aa44a2256d9269fcc423c_89908756.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/858867762916c037c223ed76206e0a41_21573240.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5a8525f56205195a6415e20adae67027_33127509.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dc86c552231623a006774c5e4e9d026c_36252949.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ba3cb7dceb8aa44a2256d9269fcc423c_66626241.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e81d96718b60564f7646541875fdff31_66891141.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5a8525f56205195a6415e20adae67027_38125268.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dc86c552231623a006774c5e4e9d026c_84770134.png change filename to text .imagette208151421740508379/ imagette208151421740508379/1740508132_1776970_1339583979_f074bcf32cce0571f3af84981b0a2985_rle_crop_3686666870_0.png.png imagette208151421740508379/1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663525_0.png.png imagette208151421740508379/1740507633_1770743_1339582604_1acb14cdba20c0a78bd34af0649a2888_rle_crop_3686661954_0.png.png imagette208151421740508379/1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666584_0.png.png imagette208151421740508379/1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666584_0.png.png imagette208151421740508379/1740508132_1776970_1339584099_7b9788a916dae6032dd185fb2ca5f737_rle_crop_3686666713_0.png.png imagette208151421740508379/1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663501_0.png.png imagette208151421740508379/1740507934_1775033_1339583567_2960f9f6712933aa540c1ce86e3acbba_rle_crop_3686665583_0.png.png imagette208151421740508379/1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663525_0.png.png imagette208151421740508379/1740507934_1775033_1339583564_09bfd119a47b2f35b307a2d84fc82e8f_rle_crop_3686665588_0.png.png imagette208151421740508379/1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663524_0.png.png imagette208151421740508379/1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663524_0.png.png imagette208151421740508379/1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663501_0.png.png imagette208151421740508379/1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663506_0.png.png imagette208151421740508379/1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661878_0.png.png imagette208151421740508379/1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663506_0.png.png imagette208151421740508379/1740507934_1775033_1339583567_2960f9f6712933aa540c1ce86e3acbba_rle_crop_3686665582_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/18e2bc5901ac02c3b296bd5163c9c158_22477898.png imagette208151421740508379 20815143 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=20815143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339583588: '1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663522_0.png', 1339584790: '1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667231_0.png', 1339584789: '1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667238_0.png', 1339584541: '1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667201_0.png', 1339584540: '1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667093_0.png', 1339584539: '1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667095_0.png', 1339584538: '1740508153_1777246_1339584421_440c25a80671e4cafbbfb7b71d69e7bd_rle_crop_3686667063_0.png', 1339584521: '1740508132_1776970_1339583979_f074bcf32cce0571f3af84981b0a2985_rle_crop_3686666871_0.png', 1339584520: '1740508132_1776970_1339584000_a1daa9bdfd00a376c012272d45e2de2c_rle_crop_3686666721_0.png', 1339584496: '1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666605_0.png', 1339583023: '1740507633_1770743_1339582659_05a9eb6c9e8910251d6ed2495b50709e_rle_crop_3686661847_0.png', 1339583587: '1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663504_0.png', 1339583586: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663488_0.png', 1339583552: '1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664235_0.png', 1339583515: '1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663522_0.png', 1339583514: '1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663504_0.png', 1339583513: '1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663488_0.png', 1339583025: '1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661931_0.png', 1339583024: '1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661938_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8f241c9c3664403459f9bf334d4c1b8e_36825983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c737739551ce1d8f015d5546eef7fe56_73694954.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/895bb0e53527cf1726d01cacdda54c33_49420209.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5eb458939951655de91751023cdea9e8_57356787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c8d8824f42285f48cd446430e6826c50_8437596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/df406fa42a311ef6a41d21a381aee80c_85155175.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/838a9ea58e574bbd134f86199dc9deb7_41878026.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f5457f8f02a0db29a73b585b65eb4f9e_62320121.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b0200f4a5a976a60d4247b04d132ab54_2855005.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9f6cdeaeda1a8358d28ccb8d5451dbef_30298065.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7f5a9f57e917c9e246c2e96b5beed83f_91081749.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9a9a0264601e9ed32a54cdaf2eeab2e1_7274617.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/980e5b2997412c4c0ec63548c5bf8099_75581139.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d6c4cf8bade68ae14d353d473df22f4c_12771258.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8f241c9c3664403459f9bf334d4c1b8e_86203419.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9a9a0264601e9ed32a54cdaf2eeab2e1_80218246.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/980e5b2997412c4c0ec63548c5bf8099_11588091.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d42fb4c5c43777002348e85a2a46c0cd_72192682.png change filename to text .imagette208151431740508380/ imagette208151431740508380/1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667231_0.png.png imagette208151431740508380/1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661938_0.png.png imagette208151431740508380/1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666605_0.png.png imagette208151431740508380/1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661931_0.png.png imagette208151431740508380/1740508132_1776970_1339584000_a1daa9bdfd00a376c012272d45e2de2c_rle_crop_3686666721_0.png.png imagette208151431740508380/1740507633_1770743_1339582659_05a9eb6c9e8910251d6ed2495b50709e_rle_crop_3686661847_0.png.png imagette208151431740508380/1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663522_0.png.png imagette208151431740508380/1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667201_0.png.png imagette208151431740508380/1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663504_0.png.png imagette208151431740508380/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663488_0.png.png imagette208151431740508380/1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663504_0.png.png imagette208151431740508380/1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664235_0.png.png imagette208151431740508380/1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663522_0.png.png imagette208151431740508380/1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667095_0.png.png imagette208151431740508380/1740508132_1776970_1339583979_f074bcf32cce0571f3af84981b0a2985_rle_crop_3686666871_0.png.png imagette208151431740508380/1740508153_1777246_1339584421_440c25a80671e4cafbbfb7b71d69e7bd_rle_crop_3686667063_0.png.png imagette208151431740508380/1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663488_0.png.png imagette208151431740508380/1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667093_0.png.png imagette208151431740508380/1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667238_0.png.png imagette208151471740508381/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7aa5288e47399d32a64292bd04ed5fd0_36908406.png imagette208151431740508380 20815147 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=20815147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208151471740508381 20815148 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=20815148 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339582937: '1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661884_0.png', 1339582938: '1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661879_0.png', 1339583067: '1740507633_1770743_1339582614_baebe9ca597df1a726ec4d5661ad6057_rle_crop_3686661911_0.png', 1339583524: '1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663494_0.png', 1339583525: '1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663507_0.png', 1339583541: '1740507791_1772887_1339582775_60a14a8ce5b91ee17086f0ed575b7d1c_rle_crop_3686663311_0.png', 1339583557: '1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664234_0.png', 1339583595: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663494_0.png', 1339583596: '1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663507_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1c7d9dfe85a517135e7d7f252a9dd3bb_52206141.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/75812937dc412654fb839b726505f911_20359712.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5a79d8060f25af5a645348407076d3b9_43911421.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1901d25bcbc7f7ebf1b415106f92982d_86202628.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7fc71eb3a301a82559f866e4dc38ec49_86636101.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/672a18ddfd4771a520fbc4c68b9db5d3_94904289.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2201b523af75b1a422c366bef0eb6b3f_41804694.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1901d25bcbc7f7ebf1b415106f92982d_76791320.png change filename to text .imagette208151481740508381/ imagette208151481740508381/1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663507_0.png.png imagette208151481740508381/1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661879_0.png.png imagette208151481740508381/1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663507_0.png.png imagette208151481740508381/1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661884_0.png.png imagette208151481740508381/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663494_0.png.png imagette208151481740508381/1740507633_1770743_1339582614_baebe9ca597df1a726ec4d5661ad6057_rle_crop_3686661911_0.png.png imagette208151481740508381/1740507791_1772887_1339582775_60a14a8ce5b91ee17086f0ed575b7d1c_rle_crop_3686663311_0.png.png imagette208151481740508381/1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663494_0.png.png imagette208151481740508381/1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664234_0.png.png imagette208151491740508381/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7fc71eb3a301a82559f866e4dc38ec49_97521447.png imagette208151481740508381 20815149 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=20815149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208151491740508381 20815138 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=20815138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339583590: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663490_0.png', 1339584793: '1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666586_0.png', 1339584792: '1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667235_0.png', 1339584546: '1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667205_0.png', 1339584545: '1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667207_0.png', 1339584544: '1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667099_0.png', 1339584523: '1740508132_1776970_1339584099_7b9788a916dae6032dd185fb2ca5f737_rle_crop_3686666716_0.png', 1339584498: '1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666603_0.png', 1339584497: '1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666602_0.png', 1339584493: '1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666586_0.png', 1339584081: '1740507934_1775033_1339583560_01dbde6c6880d68012fb6c9f59ea2e25_rle_crop_3686665645_0.png', 1339584080: '1740507934_1775033_1339583561_b38cf8c96a3d3bf1d8d6feab96f78dc9_rle_crop_3686665612_0.png', 1339583594: '1740507831_1773552_1339582728_7ea3a055b853209a856a218481db9ffe_rle_crop_3686663542_0.png', 1339583593: '1740507831_1773552_1339582728_7ea3a055b853209a856a218481db9ffe_rle_crop_3686663543_0.png', 1339583592: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663492_0.png', 1339583591: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663489_0.png', 1339582906: '1740507653_1770959_1339582618_5bad80450282f11067fe158643e9d1ed_rle_crop_3686661828_0.png', 1339583556: '1740507812_1773231_1339582827_65ac5b42cd7e82022abe679a54dd844a_rle_crop_3686664078_0.png', 1339583555: '1740507812_1773231_1339582827_65ac5b42cd7e82022abe679a54dd844a_rle_crop_3686664077_0.png', 1339583554: '1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664059_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3363fcd9ce05ce53c41ca4f9652dad79_27860537.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d110e7c720d833247a7c83082f4db29b_44823316.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0e4738a2c530707a43caae754959dbf2_31668001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b443cd0b5cc96ac97933d35ba55fb4d4_39894705.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c6cf0dbc85b115fca4a84c5af9b5ae7b_67953358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0c29cc2eb894359fc8e48493549930c5_94142170.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/741ac6d5aa888f542703c8f1ea66b8fb_36388854.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b9d1b7115d5d809df4125dd251b0053f_50420053.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ddd4d00dbf362add6669226a8a06a3d2_1828800.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d110e7c720d833247a7c83082f4db29b_52213208.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f62c5381d8cbd5b858b02d2a521abb67_90117267.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/506dc195f6367067f59718c6f2353488_21176962.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/81e957de1fea3cf4a8200f06fc3dc95c_68651131.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1de557c3edd6c6a281e0298a4682bb64_61876191.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b70a2c3908728c4896454c5d046707d5_80351156.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3391c803dc075a3d39faef4c7035741c_53162687.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ef1ccd3549896bd8f530b29305298006_89386753.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3186859744306c5bff338be27c0443b6_63856936.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9b1e4d01f7b30575acb9d89e22b92483_70601564.png change filename to text .imagette208151381740508381/ imagette208151381740508381/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663490_0.png.png imagette208151381740508381/1740508153_1777246_1339584418_84bd6193e85a493f7f988b3d3248fbbf_rle_crop_3686667099_0.png.png imagette208151381740508381/1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666603_0.png.png imagette208151381740508381/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663489_0.png.png imagette208151381740508381/1740508173_1777491_1339584426_328f876e44f0b2f112a2d49407ba7302_rle_crop_3686667235_0.png.png imagette208151381740508381/1740508132_1776970_1339584099_7b9788a916dae6032dd185fb2ca5f737_rle_crop_3686666716_0.png.png imagette208151381740508381/1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666586_0.png.png imagette208151381740508381/1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667207_0.png.png imagette208151381740508381/1740507831_1773552_1339582728_7ea3a055b853209a856a218481db9ffe_rle_crop_3686663543_0.png.png imagette208151381740508381/1740507812_1773231_1339582827_65ac5b42cd7e82022abe679a54dd844a_rle_crop_3686664078_0.png.png imagette208151381740508381/1740507831_1773552_1339582728_7ea3a055b853209a856a218481db9ffe_rle_crop_3686663542_0.png.png imagette208151381740508381/1740507812_1773231_1339582827_65ac5b42cd7e82022abe679a54dd844a_rle_crop_3686664077_0.png.png imagette208151381740508381/1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666586_0.png.png imagette208151381740508381/1740507653_1770959_1339582618_5bad80450282f11067fe158643e9d1ed_rle_crop_3686661828_0.png.png imagette208151381740508381/1740507934_1775033_1339583560_01dbde6c6880d68012fb6c9f59ea2e25_rle_crop_3686665645_0.png.png imagette208151381740508381/1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667205_0.png.png imagette208151381740508381/1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664059_0.png.png imagette208151381740508381/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663492_0.png.png imagette208151381740508381/1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666602_0.png.png imagette208151381740508381/1740507934_1775033_1339583561_b38cf8c96a3d3bf1d8d6feab96f78dc9_rle_crop_3686665612_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/48b4dbfc494a917c33925028b2a78d07_19594692.png imagette208151381740508381 20815144 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=20815144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339582884: '1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661876_0.png', 1339583019: '1740507633_1770743_1339582659_05a9eb6c9e8910251d6ed2495b50709e_rle_crop_3686661857_0.png', 1339583020: '1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661930_0.png', 1339583021: '1740507633_1770743_1339582604_1acb14cdba20c0a78bd34af0649a2888_rle_crop_3686661952_0.png', 1339583509: '1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663509_0.png', 1339583510: '1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663532_0.png', 1339583536: '1740507791_1772887_1339582789_43a95aa5ea1242b24a901644a1626ac9_rle_crop_3686663281_0.png', 1339583550: '1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664237_0.png', 1339583551: '1740507812_1773231_1339582822_39b7fdc2f5800b12bd1f2454703378fd_rle_crop_3686664244_0.png', 1339583584: '1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663509_0.png', 1339583585: '1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663532_0.png', 1339584536: '1740508153_1777246_1339584421_440c25a80671e4cafbbfb7b71d69e7bd_rle_crop_3686667075_0.png', 1339584537: '1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667199_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2f9c86070e3d335b146859569af8e66c_5401983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6324944d74c2ceb3a3adc1e246e25e2d_86809770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f7de04b5290569420ae74b2c985ff8bb_7430110.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7b6013c2e22cf087885c97ad2609d9c9_47777039.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4f7fb4d2eb554c3005bf9f7d5a355990_49223322.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9aacc66d22a678cfa124370bced98c0f_74614634.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0af064da85bc7bd5fb6dc7550bc90395_71808894.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8683d8a96386daebe3203341719d10fa_1681894.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a710e098e5c200ceb3730c18060b980d_1597520.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/beb2f7f0dd9dea3f595cb97b8285a098_43957186.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9aacc66d22a678cfa124370bced98c0f_91194433.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/905aca28322c61ad96821b42dc3147d4_44477905.png change filename to text .imagette208151441740508382/ imagette208151441740508382/1740507753_1772310_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663509_0.png.png imagette208151441740508382/1740507791_1772887_1339582789_43a95aa5ea1242b24a901644a1626ac9_rle_crop_3686663281_0.png.png imagette208151441740508382/1740507653_1770959_1339582367_c59de29cd5738fd15f03ba4ce89f79bd_rle_crop_3686661876_0.png.png imagette208151441740508382/1740507753_1772310_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663532_0.png.png imagette208151441740508382/1740507633_1770743_1339582659_05a9eb6c9e8910251d6ed2495b50709e_rle_crop_3686661857_0.png.png imagette208151441740508382/1740507831_1773552_1339582734_513c8dda8d3c5c2178db0e7f8c16fd8e_rle_crop_3686663509_0.png.png imagette208151441740508382/1740507633_1770743_1339582608_ca708b61d36363801a2c10c3df20081b_rle_crop_3686661930_0.png.png imagette208151441740508382/1740507812_1773231_1339582822_39b7fdc2f5800b12bd1f2454703378fd_rle_crop_3686664244_0.png.png imagette208151441740508382/1740507831_1773552_1339582731_4528bfac76e73c349114ef590c8e9e0f_rle_crop_3686663532_0.png.png imagette208151441740508382/1740508153_1777246_1339584421_440c25a80671e4cafbbfb7b71d69e7bd_rle_crop_3686667075_0.png.png imagette208151441740508382/1740507633_1770743_1339582604_1acb14cdba20c0a78bd34af0649a2888_rle_crop_3686661952_0.png.png imagette208151441740508382/1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667199_0.png.png imagette208151441740508382/1740507812_1773231_1339582825_a16199530160f85b2439af4b7e7acae1_rle_crop_3686664237_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8406e177406b0213d51b37677502067f_85811336.png imagette208151441740508382 20815146 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=20815146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339582804: '1740507613_1770001_1339582654_0c29d0c321c5a09e6a9bfa28ae447cf1_rle_crop_3686659798_0.png', 1339583503: '1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663496_0.png', 1339583547: '1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664060_0.png', 1339583548: '1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664063_0.png', 1339583577: '1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663496_0.png', 1339584075: '1740507934_1775033_1339583564_09bfd119a47b2f35b307a2d84fc82e8f_rle_crop_3686665590_0.png', 1339584489: '1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666588_0.png', 1339584495: '1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666600_0.png', 1339584533: '1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667211_0.png', 1339584787: '1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666588_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/849c4f2a895510b6503d759a45d96c25_32681855.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b86cce2ee4f85dc7b4005174a69363a9_58331634.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/49d33fa021bf7ed3021d815d14b6a261_89638942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/261038d23663586aea650ca39c50197b_16523904.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b86cce2ee4f85dc7b4005174a69363a9_42944014.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/73f82efb40b1a4e7940689d4ced2e7d3_18082735.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/66e0de22561b1b71c4d597bd1880e552_36210397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/99bc672b4495f6b0be25c2259140c283_97460490.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c49f496c8be6654eb7be255539c667d6_62878865.png change filename to text .imagette208151461740508383/ imagette208151461740508383/1740507753_1772310_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663496_0.png.png imagette208151461740508383/1740508112_1776683_1339584002_4fc69c4b067f9964cae4d63081ccba52_rle_crop_3686666600_0.png.png imagette208151461740508383/1740507934_1775033_1339583564_09bfd119a47b2f35b307a2d84fc82e8f_rle_crop_3686665590_0.png.png imagette208151461740508383/1740508153_1777246_1339584414_7bb31d3c6afcf9986654f95871e9d8a8_rle_crop_3686667211_0.png.png imagette208151461740508383/1740508092_1776484_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666588_0.png.png imagette208151461740508383/1740507613_1770001_1339582654_0c29d0c321c5a09e6a9bfa28ae447cf1_rle_crop_3686659798_0.png.png imagette208151461740508383/1740507831_1773552_1339582799_05662f9c6b96f90a4f112dd92d0b2517_rle_crop_3686663496_0.png.png imagette208151461740508383/1740508173_1777491_1339584088_1d85f2a95fa7df259cd3b4f638069671_rle_crop_3686666588_0.png.png imagette208151461740508383/1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664063_0.png.png imagette208151461740508383/1740507812_1773231_1339582830_f4a31f38fe680605ea5eb4517844ba6a_rle_crop_3686664060_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/66e0de22561b1b71c4d597bd1880e552_19342953.png imagette208151461740508383 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20815112 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20815150,20815151,20815152,20815153,20815154,20815155,20815156,20815157,20815158,20815159,20815160,20815161?tags=Carton_brun,papier,metal,kraft,autre_refus,cartonnette,Carton_gris,environnement,Teint_Dans_La_Masse,mal_croppe,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1339584816] : ('0.09729479544580634',) no score found for photo 1339584816 We are sending mail with results at report@fotonower.com args[1339584547] : ('0.09729479544580634',) no score found for photo 1339584547 We are sending mail with results at report@fotonower.com args[1339584478] : ('0.09729479544580634',) no score found for photo 1339584478 We are sending mail with results at report@fotonower.com refus_total : 0.09729479544580634 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=20815112 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_P20815112_25-02-2025_19_32_59.pdf results_Auto_P20815112_25-02-2025_19_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_25-02-2025_19_32_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20815112','results_Auto_P20815112_25-02-2025_19_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_25-02-2025_19_32_59.pdf','pdf','','0.31','0.09729479544580634') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20815112]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339584816, 1339584547, 1339584478] map_info['map_portfolio_photo'] : {20815112: [1339584816, 1339584547, 1339584478, 1339584426, 1339584421, 1339584418, 1339584414, 1339584099, 1339584095, 1339584092, 1339584088, 1339584084, 1339584002, 1339584000, 1339583979, 1339583876, 1339583571, 1339583567, 1339583564, 1339583561, 1339583560, 1339583516, 1339582834, 1339582830, 1339582827, 1339582825, 1339582822, 1339582799, 1339582793, 1339582789, 1339582778, 1339582775, 1339582738, 1339582734, 1339582731, 1339582728, 1339582659, 1339582657, 1339582654, 1339582618, 1339582616, 1339582614, 1339582611, 1339582608, 1339582604, 1339582493, 1339582455, 1339582367, 1339582272]} final : False mtd_id 4302 list_pids : [1339584816, 1339584547, 1339584478] 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, '2613698') ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20815112', '1339584816', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698')] time used for this insertion : 0.014013528823852539 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.3292317390441895 time spend to save output : 0.014193296432495117 total time spend for step 4 : 6.343425035476685 step5:split_time_score Tue Feb 25 19:33:05 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 : ['20815112'] 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 : [('20815112',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20815112) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339584547: {'path': 'temp/1740508379_2379796_1339584547_9a11754ba569d494d494fbc5872c0dec.jpg', 'extension': 'jpg'}, 1339584478: {'path': 'temp/1740508379_2379796_1339584478_7196c91855ef2fef5f0562b359c65926.jpg', 'extension': 'jpg'}, 1339584816: {'path': 'temp/1740508379_2379796_1339584816_69bd66b9f72437506a4906a46c3d7e1e.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 = 20815112; (('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 = 20815112 group by h (('19', 49),) 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=20815112 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 (20815112) 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 (20815112) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20815112 Nombre de photos uploadées : 49 / 23040 (0%) 25022025 20815112 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 25022025 20815112 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1339582493, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ef930d6af172f87099c31706fa17e1d0.jpg', 'username': None, 'uploaded_at': 1740507394, 'text': 'image_25022025_19_15_14_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339582455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/55da99f1a18452fd6d0ff76f3545f162.jpg', 'username': None, 'uploaded_at': 1740507394, 'text': 'image_25022025_19_15_24_010131m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339582367, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c59de29cd5738fd15f03ba4ce89f79bd.jpg', 'username': None, 'uploaded_at': 1740507394, 'text': 'image_25022025_19_15_34_009123m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339582272, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1554fb0d7155c1aa63758e4bc7dcdb68.jpg', 'username': None, 'uploaded_at': 1740507394, 'text': 'image_25022025_19_15_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002344369888305664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20815112, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024881601333618164 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631461, 'mtr_portfolio_id': 20813591, 'dashboard_result_id': 9057838, '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_P20813591_25-02-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631461, 'mtr_portfolio_id': 20814318, 'dashboard_result_id': 9057839, '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_P20814318_25-02-2025_19_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631461, 'mtr_portfolio_id': 20815112, 'dashboard_result_id': 9057840, '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_P20815112_25-02-2025_19_29_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, '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 = 20813591 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': 2613580, 'mtr_portfolio_id': 20813591, 'created_at': datetime.datetime(2025, 2, 25, 19, 2, 59), 'result': '0.09510270170653931', 'result_long': None, 'result_double': None}] Qualite : 0.09510270170653931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20813591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20813591 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_P20813591_25-02-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}" where mtr_portfolio_id = 20813591 and dashboard_run_id = 1631461 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`=20813591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9057838, 0.09510270170653931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_19_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, '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 = 20814318 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': 2613659, 'mtr_portfolio_id': 20814318, 'created_at': datetime.datetime(2025, 2, 25, 19, 20, 59), 'result': '0.09339566653555673', 'result_long': None, 'result_double': None}] Qualite : 0.09339566653555673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20814318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20814318_25-02-2025_19_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20814318 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_P20814318_25-02-2025_19_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, 'pht': 3726}}" where mtr_portfolio_id = 20814318 and dashboard_run_id = 1631461 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`=20814318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9057839, 0.09339566653555673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20814318_25-02-2025_19_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, '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 = 20815112 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': 2613698, 'mtr_portfolio_id': 20815112, 'created_at': datetime.datetime(2025, 2, 25, 19, 32, 58), 'result': '0.09729479544580634', 'result_long': None, 'result_double': None}] Qualite : 0.09729479544580634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20815112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_25-02-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20815112 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_P20815112_25-02-2025_19_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, 'pht': 3726}}" where mtr_portfolio_id = 20815112 and dashboard_run_id = 1631461 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`=20815112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9057840, 0.09729479544580634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_25-02-2025_19_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, '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 (20813591,20814318,20815112) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,), (1339578390,), (1339578465,), (1339578470,), (1339578474,), (1339578502,), (1339578506,), (1339578510,), (1339578530,), (1339578534,), (1339578536,), (1339578804,), (1339578809,), (1339578852,), (1339578857,), (1339578881,), (1339578892,), (1339578938,), (1339578946,), (1339578949,), (1339578952,), (1339578955,), (1339578958,), (1339578989,), (1339578987,), (1339579013,), (1339579016,), (1339579019,), (1339579021,), (1339579023,), (1339579025,), (1339579047,), (1339579057,), (1339579059,), (1339579504,), (1339579507,), (1339579510,), (1339579513,), (1339579516,), (1339579949,), (1339580213,), (1339580489,), (1339580590,), (1339580594,), (1339580665,), (1339580697,), (1339581137,), (1339581140,), (1339581144,), (1339581148,), (1339581151,), (1339581167,), (1339581170,), (1339581173,), (1339581176,), (1339581178,), (1339581204,), (1339581207,), (1339581263,), (1339581276,), (1339581286,), (1339581330,), (1339581333,), (1339581334,), (1339581357,), (1339581359,), (1339581362,), (1339581365,), (1339581368,), (1339581370,), (1339581587,), (1339581592,), (1339581625,), (1339581628,), (1339581649,), (1339581656,), (1339581664,), (1339581669,), (1339581700,), (1339581704,), (1339581707,), (1339581709,), (1339581712,), (1339581774,), (1339581780,), (1339581789,), (1339581799,), (1339581836,), (1339582534,), (1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20815112]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339584816, 1339584547, 1339584478] map_info['map_portfolio_photo'] : {20815112: [1339584816, 1339584547, 1339584478, 1339584426, 1339584421, 1339584418, 1339584414, 1339584099, 1339584095, 1339584092, 1339584088, 1339584084, 1339584002, 1339584000, 1339583979, 1339583876, 1339583571, 1339583567, 1339583564, 1339583561, 1339583560, 1339583516, 1339582834, 1339582830, 1339582827, 1339582825, 1339582822, 1339582799, 1339582793, 1339582789, 1339582778, 1339582775, 1339582738, 1339582734, 1339582731, 1339582728, 1339582659, 1339582657, 1339582654, 1339582618, 1339582616, 1339582614, 1339582611, 1339582608, 1339582604, 1339582493, 1339582455, 1339582367, 1339582272]} final : True mtd_id 4302 list_pids : [1339584816, 1339584547, 1339584478] Looping around the photos to save general results len do output : 1 /20815112Didn'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, '2613698') ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698') ('4302', None, None, None, None, None, None, None, '2613698') ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '20815112', 'None', None, None, None, None, '2613698'), ('4302', '20815112', '1339584816', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584547', None, None, None, None, None, '2613698'), ('4302', '20815112', '1339584478', None, None, None, None, None, '2613698')] time used for this insertion : 0.013444185256958008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2811739444732666 time spend to save output : 0.013623952865600586 total time spend for step 5 : 0.2947978973388672 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 (2613698) 2.06user 2.37system 0:10.11elapsed 43%CPU (0avgtext+0avgdata 159320maxresident)k 3792inputs+18400outputs (13major+63742minor)pagefaults 0swaps