mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-06-10 04:12:06 +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:
|
def update(self, operation_id: int, last_records: list[dict]) -> None:
|
||||||
if len(last_records) == 1:
|
if len(last_records) == 1:
|
||||||
# Squad just discovered
|
# Squad just discovered
|
||||||
|
last_records[0]['user_tags'] = json.loads(last_records[0]['user_tags'])
|
||||||
record = last_records[0]
|
record = last_records[0]
|
||||||
if '32' in record['user_tags']:
|
if '32' in record['user_tags']:
|
||||||
message = f"""
|
message = f"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user