fix typing
Some checks failed
Ruff / ruff (pull_request) Waiting to run
Mypy / mypy (push) Successful in 1m13s
Pytest / pytest (3.12) (push) Successful in 1m17s
Pytest / pytest (3.13) (push) Successful in 1m12s
Pytest / pytest (3.14) (push) Successful in 1m15s
Ruff / ruff (push) Successful in 1m2s
Mypy / mypy (pull_request) Successful in 1m12s
Pytest / pytest (3.12) (pull_request) Successful in 1m19s
Pytest / pytest (3.13) (pull_request) Has been cancelled
Pytest / pytest (3.14) (pull_request) Has been cancelled

This commit is contained in:
Justus Kuhlmann 2026-04-17 17:42:47 +02:00
commit 0535e19bf0
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -6,6 +6,8 @@ import sqlite3
from .tracker import get from .tracker import get
import pyerrors.input.json as pj import pyerrors.input.json as pj
from typing import Any
def has_valid_times(result: pd.Series) -> bool: def has_valid_times(result: pd.Series) -> bool:
# we expect created_at <= updated_at <= now # we expect created_at <= updated_at <= now
@ -74,8 +76,7 @@ def check_db_file_links(path: Path) -> None:
search_expr = "SELECT path FROM 'backlogs'" search_expr = "SELECT path FROM 'backlogs'"
conn = sqlite3.connect(path / db) conn = sqlite3.connect(path / db)
results = pd.read_sql(search_expr, conn)['path'].values results = pd.read_sql(search_expr, conn)['path'].values
print(results) _check_db2paths(path, list(results))
_check_db2paths(path, results)
def full_integrity_check(path: Path) -> None: def full_integrity_check(path: Path) -> None: