From 92f9619cead2dfd009cc92d336863e5475220080 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 14:54:14 -0400 Subject: [PATCH] fix(aurora): added two conditional statements to fix an error --- aurora/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/models.py b/aurora/models.py index 77ce650..31037ec 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -59,8 +59,8 @@ class Moderation(BaseModel): "resolved_by": result[11], "resolve_reason": result[12], "expired": bool(result[13]), - "changes": json.loads(result[14]), - "metadata": json.loads(result[15]), + "changes": json.loads(result[14]) if result[14] else [], + "metadata": json.loads(result[15]) if result[15] else {}, } cursor.close()