diff options
| author | user <user@node5.net> | 2024-03-24 15:10:46 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-24 15:10:46 +0100 |
| commit | 396c580eb2b3a6c9789d22df4628a66ae08a3083 (patch) | |
| tree | a412e20e529d7080f14e88953eb9c05027767f0c /src/db_handler.py | |
| parent | 930c83706c75f7889422d1087ca097accd404836 (diff) | |
chart sort by login attempt asc
Diffstat (limited to 'src/db_handler.py')
| -rw-r--r-- | src/db_handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db_handler.py b/src/db_handler.py index 1c271d6..7ba74f8 100644 --- a/src/db_handler.py +++ b/src/db_handler.py @@ -64,7 +64,7 @@ SELECT count(la.id) as total_count, date_trunc('hour', la.timestamp) as date, cn FROM login_attempt la JOIN connection cn on cn.id = la.connection GROUP BY date_trunc('hour', la.timestamp), cn.ip -ORDER BY date_trunc('hour', la.timestamp) DESC; +ORDER BY COUNT(la.id) ; """) histogram = cur.fetchall() |
