diff --git a/src/templates/dashboard_template.py b/src/templates/dashboard_template.py index 30628c7..a31f929 100644 --- a/src/templates/dashboard_template.py +++ b/src/templates/dashboard_template.py @@ -50,7 +50,9 @@ def generate_dashboard(stats: dict, dashboard_path: str = "") -> str: # Generate suspicious accesses rows with clickable IPs suspicious_rows = ( - "\n".join([f""" + "\n".join( + [ + f""" {_escape(log["ip"])} {_escape(log["path"])} {_escape(log["user_agent"][:60])} @@ -62,7 +64,10 @@ def generate_dashboard(stats: dict, dashboard_path: str = "") -> str:
Loading stats...
- """ for log in stats["recent_suspicious"][-10:]]) + """ + for log in stats["recent_suspicious"][-10:] + ] + ) or 'No suspicious activity detected' )