Update modules/firewall.py

This commit is contained in:
Blackwhitebear8 2025-09-17 20:29:37 +02:00
parent ea2d94c987
commit 00a56d80b1

View file

@ -40,3 +40,10 @@ def parse_firewall_data(raw_json):
continue
return rulesets
def parse_firewall_log_data(raw_json):
if raw_json.get("success") and raw_json.get("data"):
return raw_json["data"].replace('\n', '<br>')
elif raw_json.get("error"):
return f"Could not retrieve the logs: {raw_json['error']}"
return "No log entries found for this line."