Corrected issue where a date and string were being compared
This commit is contained in:
parent
964565c942
commit
2b60d45dbf
|
@ -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']
|
||||
|
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue