1
0
Fork 0
mirror of synced 2024-06-03 03:04:33 +12:00

Corrected issue where a date and string were being compared

This commit is contained in:
Phxntxm 2016-10-07 20:34:05 -05:00
parent 964565c942
commit 2b60d45dbf
2 changed files with 2 additions and 1 deletions

View file

@ -32,7 +32,7 @@ class Core:
d = pendulum.parse(entry['date'])
# Check if the date for this entry is newer than our currently saved latest entry
if d > latest_motd['date']:
if d > pendulum.parse(latest_motd['date']):
latest_motd = entry
date = latest_motd['date']

View file

@ -15,6 +15,7 @@ class Deviantart:
self.session = aiohttp.ClientSession()
bot.loop.create_task(self.get_token())
# Lets start the task a few seconds after, to ensure our token gets set
bot.loop.call_later(lambda: bot.loop.create_task(self.post_task()))
await asyncio.sleep(5)
bot.loop.create_task(self.post_task())