tests/find #32

Merged
jkuhl merged 28 commits from tests/find into develop 2026-04-15 12:35:16 +02:00
Showing only changes of commit b50ffc4c6b - Show all commits

any hotfix
All checks were successful
Mypy / mypy (push) Successful in 1m11s
Pytest / pytest (3.14) (push) Successful in 1m17s
Pytest / pytest (3.12) (push) Successful in 1m17s
Pytest / pytest (3.13) (push) Successful in 1m16s
Ruff / ruff (push) Successful in 1m1s

Justus Kuhlmann 2026-03-23 23:45:22 +01:00

View file

@ -259,7 +259,7 @@ def find_record(path: Path, ensemble: str, correlator_name: str, code: str, proj
raise ValueError("Code " + code + "unknown, take one of the following:" + ", ".join(codes))
get(path, db_file)
results = _db_lookup(db, ensemble, correlator_name,code, project, parameters=parameters)
if Any([created_before, created_after, updated_before, updated_after]):
if any(arg is not None for arg in [created_before, created_after, updated_before, updated_after]):
results = _time_filter(results, created_before, created_after, updated_before, updated_after)
if code == "sfcf":
results = sfcf_filter(results, **kwargs)