tests/find #32
1 changed files with 3 additions and 3 deletions
commit
d8bb9e4080
|
|
@ -6,8 +6,8 @@ import numpy as np
|
|||
from .input.implementations import codes
|
||||
from .tools import k2m, get_db_file
|
||||
from .tracker import get
|
||||
from .integrity import check_time_validity
|
||||
from typing import Any, Optional, Union
|
||||
from .integrity import has_valid_times
|
||||
from typing import Any, Optional
|
||||
from pathlib import Path
|
||||
import datetime as dt
|
||||
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]
|
||||
created_at = dt.datetime.fromisoformat(result['created_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:
|
||||
raise ValueError('Time stamps not valid for result with path', result["path"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue