mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-08-09 10:23:03 +02:00
fix(e2e): restore observer-node coordinates in seed
A flake8 B007 fix at commit time renamed the whole observer-specs tuple to (_area, _lat, _lon), but the Node() call below still referenced lat/lon. Those names then resolved to the leaked values from the preceding content_specs loop (last iteration = Delta's None/None), so all observer nodes were seeded without coordinates and dropped from the map (7 -> 3 markers). Underscore only `area` (genuinely unused in that loop); lat/lon are used in Node(), so they stay as loop vars.
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ def seed_nodes(session: Session) -> dict[str, Node]:
|
||||
session.add(node)
|
||||
nodes[pk] = node
|
||||
|
||||
for i, (pk, name, _area, _lat, _lon) in enumerate(observer_specs):
|
||||
for i, (pk, name, _area, lat, lon) in enumerate(observer_specs):
|
||||
node = Node(
|
||||
public_key=pk,
|
||||
name=name,
|
||||
|
||||
Reference in New Issue
Block a user