mirror of https://github.com/JohnHammond/CTFd.git
Fix memoize call
parent
541d7e9cfa
commit
4e28e30cb8
|
@ -88,7 +88,7 @@ def get_current_user_ips():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
@cache.memoize
|
@cache.memoize(timeout=60)
|
||||||
def get_user_ips(user_id):
|
def get_user_ips(user_id):
|
||||||
addrs = (
|
addrs = (
|
||||||
Tracking.query.with_entities(Tracking.ip.distinct())
|
Tracking.query.with_entities(Tracking.ip.distinct())
|
||||||
|
|
Loading…
Reference in New Issue