Resource Pool fixed
Dieser Commit ist enthalten in:
@@ -94,15 +94,22 @@ def resources():
|
|||||||
})
|
})
|
||||||
|
|
||||||
# Statistiken
|
# Statistiken
|
||||||
cur.execute("""
|
stats_query = """
|
||||||
SELECT
|
SELECT
|
||||||
resource_type,
|
resource_type,
|
||||||
status,
|
status,
|
||||||
is_test,
|
is_test,
|
||||||
COUNT(*) as count
|
COUNT(*) as count
|
||||||
FROM resource_pools
|
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 = {}
|
stats = {}
|
||||||
for row in cur.fetchall():
|
for row in cur.fetchall():
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<h1 class="mb-0">Resource Pool</h1>
|
<h1 class="mb-0">Ressourcen Pool</h1>
|
||||||
<p class="text-muted mb-0">Verwalten Sie Domains, IPs und Telefonnummern</p>
|
<p class="text-muted mb-0">Verwalten Sie Domains, IPs und Telefonnummern</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren