Skip to content

Commit

Permalink
[Status] AAAAAAAAAA
Browse files Browse the repository at this point in the history
preview command bad >.<
  • Loading branch information
Vexed01 committed Mar 3, 2021
1 parent 00e0d4e commit dabcc77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions status/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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"])

Expand Down

0 comments on commit dabcc77

Please sign in to comment.