Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Aug 11, 2023
1 parent ae4c773 commit 7e34a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c3s_eqc_automatic_quality_control/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ def split_request(

def ensure_request_gets_cached(request: dict[str, Any]) -> dict[str, Any]:
cacheable_request = {}
for k, v in request.items():
for k, v in sorted(request.items()):
v = ensure_list(v)
if k != "area":
v = sorted(v)
cacheable_request[k] = v[0] if len(v) == 1 else v
return dict(sorted(cacheable_request.items()))
return cacheable_request


def _cached_retrieve(collection_id: str, request: dict[str, Any]) -> emohawk.Data:
Expand Down

0 comments on commit 7e34a70

Please sign in to comment.