WIP: Moderation type registry #26
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ class Moderation(BaseModel):
|
||||||
"resolved_by": result[11],
|
"resolved_by": result[11],
|
||||||
"resolve_reason": result[12],
|
"resolve_reason": result[12],
|
||||||
"expired": bool(result[13]),
|
"expired": bool(result[13]),
|
||||||
"changes": result[14] if result[14] else [],
|
"changes": json.loads(result[14].strip('"').replace('\\"', '"')) if result[14] else [],
|
||||||
"metadata": result[15] if result[15] else {},
|
"metadata": json.loads(result[15].strip('"').replace('\\"', '"')) if result[15] else {},
|
||||||
}
|
}
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Loading…
Reference in a new issue