Fix memoize call

cache-user-ips-for-tracker
Kevin Chung 2020-04-29 23:10:39 -04:00
parent 541d7e9cfa
commit 4e28e30cb8
1 changed files with 1 additions and 1 deletions

View File

@ -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())