feat: Update last down to go back 30 days
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
This commit is contained in:
parent
3c85ce105f
commit
4d1581c4a0
@ -820,7 +820,7 @@ def index():
|
||||
f"The {node['name']} node's certificate is expiring {format_relative_time(cert_853_expiry)} for DNS over TLS (port 853)"
|
||||
)
|
||||
|
||||
history_days = 7
|
||||
history_days = 30
|
||||
if "history" in request.args:
|
||||
try:
|
||||
history_days = int(request.args["history"])
|
||||
@ -833,7 +833,8 @@ def index():
|
||||
for node in history_summary["nodes"]:
|
||||
for key in ["plain_dns", "doh", "dot"]:
|
||||
if node[key]["last_down"] == "Never":
|
||||
continue
|
||||
node[key]["last_down"] = "over 30 days ago"
|
||||
else:
|
||||
node[key]["last_down"] = format_last_check(
|
||||
datetime.strptime(node[key]["last_down"], "%Y-%m-%d %H:%M:%S")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user