From c2477b26c0d416c1b10f8fd803bf3a40bbdfe552 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Fri, 13 Oct 2023 18:58:13 +0800 Subject: [PATCH] fix: summary no user_id bug --- plugins/linkai/linkai.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/linkai/linkai.py b/plugins/linkai/linkai.py index f791cc492..39feaf124 100644 --- a/plugins/linkai/linkai.py +++ b/plugins/linkai/linkai.py @@ -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)