mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-06 16:53:21 +02:00
fix(ui): include out_path_hash_mode in cli.get_contacts_with_last_seen
This was the missing piece behind the lingering 1-byte path rendering in Contact Info / Contact Management. The cache layer between mc.contacts and the /api/contacts/detailed endpoint rebuilt each contact dict by hand and dropped the out_path_hash_mode field, so the API always saw the default 0 and rendered multi-byte paths as single-byte hops.
This commit is contained in:
@@ -184,6 +184,7 @@ def get_contacts_with_last_seen() -> Tuple[bool, Dict[str, Dict], str]:
|
||||
'flags': contact.get('flags', 0),
|
||||
'out_path_len': contact.get('out_path_len', -1),
|
||||
'out_path': contact.get('out_path', ''),
|
||||
'out_path_hash_mode': contact.get('out_path_hash_mode', 0),
|
||||
'adv_name': contact.get('adv_name', contact.get('name', '')),
|
||||
'last_advert': int(last_adv) if last_adv and isinstance(last_adv, (int, float)) and last_adv > 0 else 0,
|
||||
'adv_lat': contact.get('adv_lat', 0.0),
|
||||
|
||||
Reference in New Issue
Block a user