fix(moderation): set durations of 0 to NULL instead of a timedelta representing 0 seconds
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 54s

This commit is contained in:
Seaswimmer 2023-12-16 20:31:50 -05:00
parent 95a2e3b520
commit d4095846ad
Signed by: 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