Skip to content
Snippets Groups Projects
Commit 239b32d5 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix(tests): remove useless infromation

parent dbce90a1
No related branches found
No related tags found
No related merge requests found
...@@ -135,11 +135,7 @@ def check_local_backup(path: str) -> bool: ...@@ -135,11 +135,7 @@ def check_local_backup(path: str) -> bool:
now = datetime.now() now = datetime.now()
diff_seconds = (now - date).total_seconds() diff_seconds = (now - date).total_seconds()
if diff_seconds > MAX_AGE * 24 * 3600: if diff_seconds > MAX_AGE * 24 * 3600:
u.error( u.error("Backup {} is older than {} days".format(backup_folder, MAX_AGE))
"Backup {} is older than {}d (%{}h)".format(
backup_folder, MAX_AGE, diff_seconds / 3600
)
)
all_ok = False all_ok = False
else: else:
u.success("Backup {} is fine".format(backup_folder)) u.success("Backup {} is fine".format(backup_folder))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment