From e50b56d5423acd378fb1c6b156b3c6518e4142ce Mon Sep 17 00:00:00 2001 From: thsrite Date: Sun, 10 Sep 2023 19:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BA=A4=E4=BA=92=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/message.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/chain/message.py b/app/chain/message.py index 212ddbda..2fc011ba 100644 --- a/app/chain/message.py +++ b/app/chain/message.py @@ -214,6 +214,11 @@ class MessageChain(ChainBase): start = _current_page * self._page_size end = start + self._page_size if cache_type == "Torrent": + # 更新缓存 + user_cache[userid] = { + "type": "Torrent", + "items": cache_list[start:end] + } # 发送种子数据 self.__post_torrents_message(channel=channel, title=_current_media.title, @@ -251,6 +256,11 @@ class MessageChain(ChainBase): # 加一页 _current_page += 1 if cache_type == "Torrent": + # 更新缓存 + user_cache[userid] = { + "type": "Torrent", + "items": cache_list + } # 发送种子数据 self.__post_torrents_message(channel=channel, title=_current_media.title,