From 72cedc89d37604b8ff2cec454f147c709795424a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 16:45:34 -0500 Subject: [PATCH] fix(moderation): fixed strptime import --- moderation/importers/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index c5a54fe..090f47c 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -1,4 +1,4 @@ -from datetime import timedelta, strptime +from datetime import timedelta, datetime import json from redbot.core import commands from discord import Message, ButtonStyle, Interaction, ui @@ -70,7 +70,7 @@ class ImportModerationView(ui.View): case['metadata'] = {} if duration != 'NULL': - duration_t = strptime(case['duration'], "%H:%M:%S") + duration_t = datetime.strptime(case['duration'], "%H:%M:%S") duration = timedelta( hours=duration_t.hours, minutes=duration_t.minutes,