From 10d50a0000f57ddc84e26b9054abf6214c9f44d4 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Thu, 5 Dec 2024 09:23:20 +0100 Subject: [PATCH] fixup! Issue #332 introduce support for job listing pagination --- openeo_driver/dummy/dummy_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openeo_driver/dummy/dummy_backend.py b/openeo_driver/dummy/dummy_backend.py index bcfce7f5..59d685e9 100644 --- a/openeo_driver/dummy/dummy_backend.py +++ b/openeo_driver/dummy/dummy_backend.py @@ -703,7 +703,7 @@ def order_key(m: BatchJobMetadata) -> Tuple[str, str]: url_safe_codec = UrlSafeStructCodec(signature_field="_usc") - threshold = request_parameters.get("search_after") + threshold = (request_parameters or {}).get("search_after") if threshold: threshold = url_safe_codec.decode(threshold) jobs = [m for m in jobs if order_key(m) < threshold]