From 1193953316814fed01ea19e82de4686f8d34acf8 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 1 Jul 2020 00:09:34 +0100 Subject: [PATCH] Use `fromtimestamp` to perform check in `handle_rainbow_puffle_task_complete` --- houdini/handlers/play/rainbow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/rainbow.py b/houdini/handlers/play/rainbow.py index a3e4f70..7e5c4e2 100644 --- a/houdini/handlers/play/rainbow.py +++ b/houdini/handlers/play/rainbow.py @@ -23,7 +23,7 @@ async def handle_rainbow_puffle_task_complete(p, task_id: int): quest_wait = RainbowQuestWaitMember if p.is_member else RainbowQuestWait - if int(current_task) == 0 or current_datetime - datetime.utcfromtimestamp(int(task_completion)) > quest_wait: + if int(current_task) == 0 or current_datetime - datetime.fromtimestamp(int(task_completion)) > quest_wait: if int(task_id) == len(RainbowQuestRewards) - 1: await p.update(rainbow_adoptability=True).apply()