From 30ab499d41aeb099db05e038404a8389a7c078c5 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 7 Jan 2021 14:24:10 +0800 Subject: [PATCH] update --- rssbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rssbot.py b/rssbot.py index 072f6dc..4393efe 100644 --- a/rssbot.py +++ b/rssbot.py @@ -582,7 +582,7 @@ class callbackQueryHandle(Thread): hashEntries = HashEntries(self._main._setting._maxCount) tempList = self._rssMeta.itemList.copy() tempList.reverse() - for v in tempList[-100:]: + for v in tempList[-self._main._setting._maxCount:]: hashEntries.add(calHash(url, v)) suc = self._main._db.addRSSList( title, url, chatId, config, ttl, hashEntries)