fix: technician topology for all sites, per location and combined
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
677590f52c
commit
daf8bc671b
9 files changed
+51
-7
No files matched your search
@@ -628,7 +628,11 @@ def topology(scope, opts):
|
||||
if "technician" in scopes:
|
||||
from .topology import number_connections
|
||||
|
||||
for i, g in enumerate(build_graphs(scope, opts, per="site")):
|
||||
graphs = []
|
||||
for per in ("all", "site", "location"):
|
||||
if per in (opts.get("topo_tech_per") or ["all", "site"]):
|
||||
graphs += build_graphs(scope, opts, per=per)
|
||||
for i, g in enumerate(graphs):
|
||||
rows = number_connections(g)
|
||||
head = ([H(2, _("Technician version"))] if i == 0 else []) + [H(3, g.title)]
|
||||
tech.append((head, g, rows))
|
||||
|
||||
Reference in new issue
Block a user