fix(moderation): fixed changes in imports

This commit is contained in:
SeaswimmerTheFsh 2023-12-15 21:51:51 -05:00
parent 418cff9de6
commit c2c8644d43
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1723,12 +1723,15 @@ class Moderation(commands.Cog):
if case['resolved']:
resolved = 1
for change in case['changes']:
if change['type'] == 'RESOLVE':
resolved_by = change['staff']
resolved_reason = change['reason']
resolve_timestamp = change['timestamp'] / 1000
break
resolved_by = None
resolved_reason = None
if case['changes']:
for change in case['changes']:
if change['type'] == 'RESOLVE':
resolved_by = change['staff']
resolved_reason = change['reason']
resolve_timestamp = change['timestamp'] / 1000
break
if resolved_by is None:
resolved_by = '?'
if resolved_reason is None: