forked from blizzthewolf/SeaCogs
fix(moderation): fixed strptime import
This commit is contained in:
parent
555f386553
commit
72cedc89d3
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
from datetime import timedelta, strptime
|
from datetime import timedelta, datetime
|
||||||
import json
|
import json
|
||||||
from redbot.core import commands
|
from redbot.core import commands
|
||||||
from discord import Message, ButtonStyle, Interaction, ui
|
from discord import Message, ButtonStyle, Interaction, ui
|
||||||
|
@ -70,7 +70,7 @@ class ImportModerationView(ui.View):
|
||||||
case['metadata'] = {}
|
case['metadata'] = {}
|
||||||
|
|
||||||
if duration != 'NULL':
|
if duration != 'NULL':
|
||||||
duration_t = strptime(case['duration'], "%H:%M:%S")
|
duration_t = datetime.strptime(case['duration'], "%H:%M:%S")
|
||||||
duration = timedelta(
|
duration = timedelta(
|
||||||
hours=duration_t.hours,
|
hours=duration_t.hours,
|
||||||
minutes=duration_t.minutes,
|
minutes=duration_t.minutes,
|
||||||
|
|
Loading…
Reference in a new issue