Counts should now be accurate

This commit is contained in:
iFargle
2023-03-03 13:13:02 +09:00
parent 304162233b
commit d81df94ea7

View File

@@ -50,7 +50,6 @@ def render_overview():
# Get all routes:
routes = headscale.get_routes(url,api_key)
total_routes = len(routes["routes"])
for route in routes["routes"]:
if int(route['machine']['id']) != 0:
total_routes += 1