diff options
| author | user <user@node5.net> | 2024-03-23 23:23:48 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-23 23:23:48 +0100 |
| commit | bdff35e7356cbbcf46343e90f8fb989db9a73a9b (patch) | |
| tree | 0f4ebcba0d6cc956a470674e0b67e4fe2c1a3e0d | |
| parent | be144dbee5776ea199415b4271a5cb51b0864463 (diff) | |
list date format + oneline
| -rw-r--r-- | src/ssh_node5_net.py | 2 | ||||
| -rw-r--r-- | src/templates/table.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ssh_node5_net.py b/src/ssh_node5_net.py index 57754e4..ea75533 100644 --- a/src/ssh_node5_net.py +++ b/src/ssh_node5_net.py @@ -60,6 +60,8 @@ def format_time(input: datetime.datetime) -> str: @app.route("/") def index(): latest_loging_attempts = db_handler.get_latest_login_attempts() + for login_attempt in latest_loging_attempts[0]: + login_attempt['timestamp'] = format_time(login_attempt['timestamp']) top_usernames = db_handler.get_top('username') top_passwords = db_handler.get_top('password') diff --git a/src/templates/table.html b/src/templates/table.html index 791c10e..252b2f9 100644 --- a/src/templates/table.html +++ b/src/templates/table.html @@ -11,7 +11,7 @@ <tr> {% for header in data[1] %} <td> - {{ row[header] }} + <nobr>{{ row[header] }}</nobr> </td> {% endfor %} </tr> |
