summaryrefslogtreecommitdiff
path: root/src/ssh_node5_net.py
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-23 22:42:54 +0100
committeruser <user@node5.net>2024-03-23 22:42:54 +0100
commita16451a7a1a168d1362004ff951f73bb57c64e29 (patch)
treee9709b559faee20cefb1a97d59da5c5dde264da9 /src/ssh_node5_net.py
parent1f22ef7a77a21a38d29feff621ba3a12ce60ea8f (diff)
sort graph by time
Diffstat (limited to 'src/ssh_node5_net.py')
-rw-r--r--src/ssh_node5_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh_node5_net.py b/src/ssh_node5_net.py
index e594f38..d2c38c9 100644
--- a/src/ssh_node5_net.py
+++ b/src/ssh_node5_net.py
@@ -64,7 +64,7 @@ def index():
top_passwords = db_handler.get_top('password')
histogram = db_handler.get_histogram_detailed()
- all_dates = list({d['date'] for d in histogram})
+ all_dates = sorted(list({d['date'] for d in histogram}))
by_ip = {}
for d in histogram:
if d['ip'] not in by_ip: