fix import
Some checks failed
Mypy / mypy (push) Failing after 1m14s
Pytest / pytest (3.12) (push) Failing after 1m18s
Pytest / pytest (3.13) (push) Failing after 1m11s
Pytest / pytest (3.14) (push) Failing after 1m13s
Ruff / ruff (push) Successful in 1m1s

This commit is contained in:
Justus Kuhlmann 2026-04-15 10:49:03 +02:00
commit d8bb9e4080
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -6,8 +6,8 @@ import numpy as np
from .input.implementations import codes from .input.implementations import codes
from .tools import k2m, get_db_file from .tools import k2m, get_db_file
from .tracker import get from .tracker import get
from .integrity import check_time_validity from .integrity import has_valid_times
from typing import Any, Optional, Union from typing import Any, Optional
from pathlib import Path from pathlib import Path
import datetime as dt import datetime as dt
from collections.abc import Callable from collections.abc import Callable
@ -88,7 +88,7 @@ def _time_filter(results: pd.DataFrame, created_before: Optional[str]=None, cre
result = results.iloc[ind] result = results.iloc[ind]
created_at = dt.datetime.fromisoformat(result['created_at']) created_at = dt.datetime.fromisoformat(result['created_at'])
updated_at = dt.datetime.fromisoformat(result['updated_at']) updated_at = dt.datetime.fromisoformat(result['updated_at'])
db_times_valid = check_time_validity(created_at=created_at, updated_at=updated_at) db_times_valid = has_valid_times(result)
if not db_times_valid: if not db_times_valid:
raise ValueError('Time stamps not valid for result with path', result["path"]) raise ValueError('Time stamps not valid for result with path', result["path"])