From dabcc774920acc2d5ed6a5457450d3d7c89b0e2f Mon Sep 17 00:00:00 2001 From: Vexed01 Date: Wed, 3 Mar 2021 19:34:43 +0000 Subject: [PATCH] [Status] AAAAAAAAAA preview command bad >.< --- status/status.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/status/status.py b/status/status.py index df8adb1a..04227ffb 100644 --- a/status/status.py +++ b/status/status.py @@ -310,7 +310,7 @@ async def _check_real_update(self, service: str, feeddict: dict) -> bool: If so, will update the feed store. """ async with self.config.feed_store() as feed_store: - old_fields = feed_store["discord"].get("fields") + old_fields = feed_store[service].get("fields") prev_titles = [] for field in old_fields: prev_titles.append(field.get("name")) @@ -763,7 +763,6 @@ async def statusset_preview(self, ctx: commands.Context, service: str, mode: str await session.close() feed = feedparser.parse(html) feeddict = await self._process_feed(service, feed) - await self._check_real_update(service, feeddict) # this will add it to the feed_store else: feeddict["time"] = datetime.datetime.fromtimestamp(feeddict["time"])