Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/server/_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ def decorated_function(*args, **kwargs):


def update_key_last_time_used(user):
# TODO: reenable this once cc<-->aws latency issues are sorted out, or maybe do this call asynchronously
return
if user:
# update last usage for this user's api key to "now()"
# TODO: consider making this call asynchronously
r = redis.Redis(host=REDIS_HOST, password=REDIS_PASSWORD)
r.set(f"LAST_USED/{user.api_key}", datetime.strftime(datetime.now(), "%Y-%m-%d"))