mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-04-14 02:27:13 +03:00
hooks: fix no json.loads user tags on discover
This commit is contained in:
parent
01a5590f7a
commit
819fb93861
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user