From 770eaefe422b1352c93036432c79978204997b7a Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 18 Jan 2021 21:49:54 +0800 Subject: [PATCH] reget list before get text --- rssbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rssbot.py b/rssbot.py index 1c7299d..777d8fb 100644 --- a/rssbot.py +++ b/rssbot.py @@ -1166,6 +1166,9 @@ class callbackQueryHandle(Thread): self.answer('已发送强制更新请求。') else: self.answer('发送强制更新请求失败。') + rssList = self._main._db.getRSSListByChatId(chatId) + ind = int(self._inputList[3]) + ind = max(min(ind, len(rssList)), 0) di['text'] = getTextContentForRSSInList(rssList[ind]) di['parse_mode'] = 'HTML' di['reply_markup'] = getInlineKeyBoardForRSSSettingsInList(