Fix integrity check before database backup

This commit is contained in:
JonnyWong16 2019-11-29 23:14:33 -08:00
parent d1e401cb0c
commit 55aad4e6ee

View file

@ -70,7 +70,7 @@ def make_backup(cleanup=False, scheduler=False):
""" Makes a backup of db, removes all but the last 5 backups """
# Check the integrity of the database first
integrity = (integrity_check() == 'ok')
integrity = (integrity_check()['integrity_check'] == 'ok')
corrupt = ''
if not integrity: