From 42c7fa8c69c5ac930fac9403c064e43203c536d9 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Wed, 6 Nov 2024 13:25:56 +0100 Subject: [PATCH] database.upgrade:get_db_version - ignore SqlResolve inspection --- acacore/database/upgrade.py | 1 + 1 file changed, 1 insertion(+) diff --git a/acacore/database/upgrade.py b/acacore/database/upgrade.py index e1a9182..32fe1b3 100644 --- a/acacore/database/upgrade.py +++ b/acacore/database/upgrade.py @@ -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])