From 3304f879939cc851650040c21b5ce8a93140c8c5 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 25 Mar 2024 00:25:17 +0100 Subject: chart switch to bar, tooltip only nonzero, sum --- src/db_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db_handler.py') diff --git a/src/db_handler.py b/src/db_handler.py index 7c40d51..7a436e6 100644 --- a/src/db_handler.py +++ b/src/db_handler.py @@ -65,7 +65,7 @@ FROM login_attempt la JOIN connection cn on cn.id = la.connection WHERE la.timestamp BETWEEN current_timestamp - interval '2 days' AND la.timestamp GROUP BY date_trunc('hour', la.timestamp), cn.ip -ORDER BY COUNT(la.id) +ORDER BY COUNT(la.id) DESC ; """) histogram = cur.fetchall() -- cgit v1.2.3