feat: Update relative time for under 1 minute
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2024-09-12 20:27:31 +10:00
parent e8d2a6875d
commit 68bab4394e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -277,7 +277,7 @@ def format_last_check(last_log: datetime) -> str:
minutes = delta.seconds // 60
return f"{minutes} minutes ago" if minutes > 1 else "1 minute ago"
else:
return f"{delta.seconds} seconds ago" if delta.seconds > 1 else "1 second ago"
return "less than a minute ago"
def check_nodes() -> list: