mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
fix: Replace deleted REGION_CONTEXT with config method, replace hardcoded city map with config aliases
- Line 763: REGION_CONTEXT.get() → self._region_context() (same method used elsewhere) - Deleted _CITY_TO_REGION hardcoded dict - Scope detection now uses config aliases/cities from RegionAnchor - Fixed Sun Valley/Ketchum geography (was Central ID, should be South Central ID) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
de400068dd
commit
51969050da
2 changed files with 27 additions and 38 deletions
|
|
@ -760,7 +760,7 @@ class MeshReporter:
|
|||
f"ID: !{node.node_num:08x} (dec: {node.node_num})",
|
||||
f"Hardware: {node.hw_model or 'Unknown'}",
|
||||
f"Role: {node.role} ({'Infrastructure' if node.is_infrastructure else 'Client'})",
|
||||
f"Region: {node.region or 'Unknown'}{' — ' + REGION_CONTEXT.get(node.region, '') if node.region and REGION_CONTEXT.get(node.region) else ''} / Locality: {node.locality or 'Unknown'}",
|
||||
f"Region: {node.region or 'Unknown'}{' — ' + self._region_context(node.region) if node.region and self._region_context(node.region) else ''} / Locality: {node.locality or 'Unknown'}",
|
||||
]
|
||||
|
||||
if node.latitude and node.longitude:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue