From 3657d170f4e577863c0c1524c9c1ffd577985a2d Mon Sep 17 00:00:00 2001 From: eek7574 Date: Wed, 23 Nov 2022 15:00:37 +0000 Subject: [PATCH] Fix TypError --- cogs/assignments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/assignments.py b/cogs/assignments.py index 80d5e6a..9d97d8e 100644 --- a/cogs/assignments.py +++ b/cogs/assignments.py @@ -360,7 +360,7 @@ class AssignmentsCog(commands.Cog): if channel and channel.permissions_for(ctx.me).create_public_threads: channel: discord.ForumChannel opts = [60, 1440, 4320, 10080] - hours_away = (modal.create_kwargs["due_by"] - datetime.datetime.now()).total_seconds() / 3600 + hours_away = (modal.create_kwargs["due_by"] - datetime.datetime.now().timestamp()) / 3600 for option in opts: if hours_away > option: continue