mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-02 04:44:25 +01:00
Fix memoize call
This commit is contained in:
@@ -88,7 +88,7 @@ def get_current_user_ips():
|
||||
return None
|
||||
|
||||
|
||||
@cache.memoize
|
||||
@cache.memoize(timeout=60)
|
||||
def get_user_ips(user_id):
|
||||
addrs = (
|
||||
Tracking.query.with_entities(Tracking.ip.distinct())
|
||||
|
||||
Reference in New Issue
Block a user