Skip to content

Commit

Permalink
fix: summary no user_id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Oct 13, 2023
1 parent 4b27de8 commit c2477b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/linkai/linkai.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def _find_sum_id(context):
return USER_FILE_MAP.get(_find_user_id(context) + "-sum_id")

def _find_file_id(context):
return USER_FILE_MAP.get(_find_user_id(context) + "-file_id")
user_id = _find_user_id(context)
if user_id:
return USER_FILE_MAP.get(user_id + "-file_id")


USER_FILE_MAP = ExpiredDict(conf().get("expires_in_seconds") or 60 * 60)
USER_FILE_MAP = ExpiredDict(conf().get("expires_in_seconds") or 60 * 30)

0 comments on commit c2477b2

Please sign in to comment.