This commit is contained in:
jxxghp
2023-07-09 18:56:04 +08:00
parent 812dc991e3
commit 3f6bb2b381
5 changed files with 18 additions and 8 deletions

View File

@ -33,6 +33,7 @@ class MessageChain(ChainBase):
self.medtachain = MediaChain()
self.torrent = TorrentHelper()
self.eventmanager = EventManager()
self.torrenthelper = TorrentHelper()
def process(self, body: Any, form: Any, args: Any) -> None:
"""
@ -111,7 +112,7 @@ class MessageChain(ChainBase):
userid=userid)
return
# 搜索结果排序
contexts = TorrentHelper.sort_torrents(contexts)
contexts = self.torrenthelper.sort_torrents(contexts)
# 更新缓存
self._user_cache[userid] = {
"type": "Torrent",