diff --git a/v2_adminpanel/routes/resource_routes.py b/v2_adminpanel/routes/resource_routes.py index 732bc37..1664868 100644 --- a/v2_adminpanel/routes/resource_routes.py +++ b/v2_adminpanel/routes/resource_routes.py @@ -94,15 +94,22 @@ def resources(): }) # Statistiken - cur.execute(""" + stats_query = """ SELECT resource_type, status, is_test, COUNT(*) as count FROM resource_pools - GROUP BY resource_type, status, is_test - """) + """ + + # Apply test filter to statistics as well + if not show_test: + stats_query += " WHERE is_test = false" + + stats_query += " GROUP BY resource_type, status, is_test" + + cur.execute(stats_query) stats = {} for row in cur.fetchall(): diff --git a/v2_adminpanel/templates/resources.html b/v2_adminpanel/templates/resources.html index 03f5263..bf45155 100644 --- a/v2_adminpanel/templates/resources.html +++ b/v2_adminpanel/templates/resources.html @@ -216,7 +216,7 @@
-

Resource Pool

+

Ressourcen Pool

Verwalten Sie Domains, IPs und Telefonnummern