Skip to content

Commit

Permalink
database.upgrade:get_db_version - ignore SqlResolve inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Nov 6, 2024
1 parent a21f020 commit 42c7fa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acacore/database/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .files_db import FileDB


# noinspection SqlResolve
def get_db_version(conn: Connection) -> Version | None:
if res := conn.execute("select VALUE from Metadata where KEY like 'version'").fetchone():
return Version(res[0])
Expand Down

0 comments on commit 42c7fa8

Please sign in to comment.