mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2026-10-22 23:02:08 +03:00
hooks: fix no json.loads user tags on discover
This commit is contained in:
1 file changed
+1
@@ -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"""
|
||||
|
||||
Reference in new issue
Block a user