fix(moderation): set durations of 0 to NULL instead of a timedelta representing 0 seconds

This commit is contained in:
Seaswimmer 2023-12-16 20:31:50 -05:00
parent 95a2e3b520
commit d4095846ad
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1794,7 +1794,7 @@ class Moderation(commands.Cog):
except OverflowError:
continue
else:
duration = timedelta(seconds=0)
duration = 'NULL'
if case['resolved']:
resolved = 1