Skip to content
Snippets Groups Projects
Commit 3b71bcac authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'master' into '476-fix-localisation-of-preference-section-names'

# Conflicts:
#   CHANGELOG.rst
parents f0334859 1eb0f23f
No related branches found
No related tags found
1 merge request!655Resolve "Fix localisation of preference section names"
Pipeline #16711 failed
......@@ -14,6 +14,11 @@ Changed
* Add verbose names for all preference sections.
Fixed
~~~~~
* Fix broken backup health check
`2.0b1`_ - 2021-06-01
---------------------
......
......@@ -38,9 +38,9 @@ class BaseBackupHealthCheck(BaseHealthCheckBackend):
self.add_error(_("The backup folder doesn't exist."))
return
if backups:
last_backup = backups[-1]
last_backup_time = dbbackup_utils.filename_to_date(last_backup)
time_gone_since_backup = last_backup_time - datetime.now()
last_backup = backups[:1]
last_backup_time = dbbackup_utils.filename_to_date(last_backup[0])
time_gone_since_backup = datetime.now() - last_backup_time
# Check if backup is older than configured time
if time_gone_since_backup.seconds > self.configured_seconds:
......
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