From a7d8f452d11ca8a4fa52021b073c98891ad2fd32 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 18:23:24 -0400 Subject: [PATCH] fix(aurora): updated utilities.json.JSONEncoder to match the model change I just made --- aurora/utilities/json.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aurora/utilities/json.py b/aurora/utilities/json.py index aad7be7..7052f90 100644 --- a/aurora/utilities/json.py +++ b/aurora/utilities/json.py @@ -1,7 +1,7 @@ import json from datetime import datetime, timedelta -from aurora.models import AuroraBaseModel +from aurora.models import AuroraBaseModel, AuroraGuildModel class JSONEncoder(json.JSONEncoder): @@ -12,6 +12,8 @@ class JSONEncoder(json.JSONEncoder): return str(o) if isinstance(o, AuroraBaseModel): return o.to_json() + if isinstance(o, AuroraGuildModel): + return o.to_json() return super().default(o)