WIP: Refactor Aurora (3.0.0) #29
1 changed files with 3 additions and 2 deletions
|
@ -135,8 +135,9 @@ def generate_dict(bot: Red, result: dict, guild_id: int) -> dict:
|
|||
duration = None
|
||||
|
||||
if result[14] is not None:
|
||||
logger.debug('%s\n%s', result[14], result[14].replace('\\"', '"').replace('["{', '[{').replace('}"]', '}]'))
|
||||
changes = json.loads(result[14].replace('\\"', '"').replace('["{', '[{').replace('}"]', '}]'))
|
||||
json_str = f'{result[14].replace('\\"', '"').replace('["{', '[{').replace('}"]', '}]')}'
|
||||
logger.debug('%s\n%s', result[14], 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))
|
||||
|
|
Loading…
Reference in a new issue