From 819fb938610e044e3d7fc3c48da614d72c36a4a2 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Wed, 20 Apr 2022 22:27:21 +0300 Subject: [PATCH] hooks: fix no json.loads user tags on discover --- hooks/RuSquads.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/RuSquads.py b/hooks/RuSquads.py index d028f43..8bfe29f 100644 --- a/hooks/RuSquads.py +++ b/hooks/RuSquads.py @@ -28,6 +28,7 @@ class UpdateRuSquad(Hook): def update(self, operation_id: int, last_records: list[dict]) -> None: if len(last_records) == 1: # Squad just discovered + last_records[0]['user_tags'] = json.loads(last_records[0]['user_tags']) record = last_records[0] if '32' in record['user_tags']: message = f"""