mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
Fix formatting
This commit is contained in:
parent
0d779c3465
commit
662ae3ccbc
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import time
|
||||
|
||||
|
||||
class AuthCache:
|
||||
def __init__(self, threshold=500, default_timeout=300):
|
||||
self.default_timeout = default_timeout
|
||||
|
@ -46,4 +47,4 @@ class AuthCache:
|
|||
expires, value = self._cache[key]
|
||||
return expires == 0 or expires > time.time()
|
||||
except KeyError:
|
||||
return False
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue