Fix integrity check before database backup
This commit is contained in:
@@ -70,7 +70,7 @@ def make_backup(cleanup=False, scheduler=False):
|
|||||||
""" Makes a backup of db, removes all but the last 5 backups """
|
""" Makes a backup of db, removes all but the last 5 backups """
|
||||||
|
|
||||||
# Check the integrity of the database first
|
# Check the integrity of the database first
|
||||||
integrity = (integrity_check() == 'ok')
|
integrity = (integrity_check()['integrity_check'] == 'ok')
|
||||||
|
|
||||||
corrupt = ''
|
corrupt = ''
|
||||||
if not integrity:
|
if not integrity:
|
||||||
|
Reference in New Issue
Block a user