fix(moderation): fixed strptime import
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 46s

This commit is contained in:
Seaswimmer 2023-12-18 16:45:34 -05:00
parent 555f386553
commit 72cedc89d3
Signed by: 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,