fix(moderation): fixed changes in imports
This commit is contained in:
parent
418cff9de6
commit
c2c8644d43
1 changed files with 9 additions and 6 deletions
|
@ -1723,12 +1723,15 @@ class Moderation(commands.Cog):
|
||||||
|
|
||||||
if case['resolved']:
|
if case['resolved']:
|
||||||
resolved = 1
|
resolved = 1
|
||||||
for change in case['changes']:
|
resolved_by = None
|
||||||
if change['type'] == 'RESOLVE':
|
resolved_reason = None
|
||||||
resolved_by = change['staff']
|
if case['changes']:
|
||||||
resolved_reason = change['reason']
|
for change in case['changes']:
|
||||||
resolve_timestamp = change['timestamp'] / 1000
|
if change['type'] == 'RESOLVE':
|
||||||
break
|
resolved_by = change['staff']
|
||||||
|
resolved_reason = change['reason']
|
||||||
|
resolve_timestamp = change['timestamp'] / 1000
|
||||||
|
break
|
||||||
if resolved_by is None:
|
if resolved_by is None:
|
||||||
resolved_by = '?'
|
resolved_by = '?'
|
||||||
if resolved_reason is None:
|
if resolved_reason is None:
|
||||||
|
|
Loading…
Reference in a new issue