Skip to content

Commit

Permalink
database.files_db:FileDB - better check rules
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Nov 21, 2024
1 parent 34a4423 commit 7b1e080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b1e080

Please sign in to comment.