mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
fix: Coverage breakdown now uses str(node_num) for health node lookup
Health engine stores node IDs as decimal strings, but UnifiedNode.node_num is an integer. The lookup health.nodes.get(n.node_num) was failing, causing all nodes to show as Unlocated. Fixed by converting to string first.
This commit is contained in:
parent
d8189e2e4d
commit
ac2bb87473
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ class MeshReporter:
|
|||
|
||||
region_coverage = {}
|
||||
for n in nodes_with_gw:
|
||||
health_node = health.nodes.get(n.node_num)
|
||||
health_node = health.nodes.get(str(n.node_num))
|
||||
region = health_node.region if health_node else "Unlocated"
|
||||
if not region:
|
||||
region = "Unlocated"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue