From 4c8cd7bd1684aec166c8b997cc6d92b28c1d8f9a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 23:02:57 -0400 Subject: [PATCH] Revert "fix(aurora): trying ast" This reverts commit 278bd9834992e485cc9f18a8a15f5b3a9aa8346b. --- aurora/utilities/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aurora/utilities/utils.py b/aurora/utilities/utils.py index b728a30..b856003 100644 --- a/aurora/utilities/utils.py +++ b/aurora/utilities/utils.py @@ -1,6 +1,5 @@ # pylint: disable=cyclic-import import json -from ast import literal_eval from datetime import datetime, timedelta from typing import Optional, Union @@ -138,7 +137,7 @@ def generate_dict(bot: Red, result: dict, guild_id: int) -> dict: if result[14] is not None: json_str = result[14].replace('\\"', '"').replace('["{', '[{').replace('}"]', '}]') logger.debug('%s\n%s', result[14], json_str) - changes = literal_eval(json_str) + changes = json.loads(json_str) change_obj_list = [] for change in changes: change_obj_list.append(Change.from_dict(bot=bot, data=change))