Fix pyflakes
All checks were successful
CI / test (push) Successful in 4m33s
Lint / test (push) Successful in 30s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-11-24 11:04:07 +11:00
parent 47a380ad38
commit 32bf2e1187
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -374,11 +374,11 @@ class DBManager:
Delete a specific version by version_id.
"""
cur = self.conn.cursor()
row = cur.execute(
with self.conn:
cur.execute(
"DELETE FROM versions WHERE id=?;",
(version_id,),
)
return True
# ------------------------- Export logic here ------------------------#
def get_all_entries(self) -> List[Entry]: