обновление даты создания данных
This commit is contained in:
		
							parent
							
								
									197ad95959
								
							
						
					
					
						commit
						0f7ca4f6bf
					
				@ -29,6 +29,7 @@ def shelf(filename, ttl=0):
 | 
			
		||||
                    "data": {},
 | 
			
		||||
                })
 | 
			
		||||
            elif ttl > 0 and (time.time() - d["created_at"]) > ttl:
 | 
			
		||||
                d["created_at"] = time.time()
 | 
			
		||||
                d["data"] = {}
 | 
			
		||||
            return d
 | 
			
		||||
        except:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user