fix(moderation): fixed strptime import

This commit is contained in:
Seaswimmer 2023-12-18 16:45:34 -05:00
parent 555f386553
commit 72cedc89d3
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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,