fix import
This commit is contained in:
parent
85698c377b
commit
d8bb9e4080
1 changed files with 3 additions and 3 deletions
|
|
@ -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"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue