From 7b1e0808efb63eb46001d658ad301ad441aa23c5 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Thu, 21 Nov 2024 10:16:30 +0100 Subject: [PATCH] database.files_db:FileDB - better check rules --- acacore/database/files_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acacore/database/files_db.py b/acacore/database/files_db.py index 68997f5..76b6257 100644 --- a/acacore/database/files_db.py +++ b/acacore/database/files_db.py @@ -205,10 +205,10 @@ def __init__( ], ) - if check_initialisation and not self.is_initialised(check_views=False, check_indices=False): + if check_initialisation and not self.is_initialised(): raise DatabaseError("Database is not initialised") - if check_version and self.is_initialised(): + if check_version and self.is_initialised(check_views=False, check_indices=False): from acacore.database.upgrade import is_latest is_latest(self, raise_on_difference=True)