Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Fix getting matched count #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tipgstac/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ async def CollectionsParams( # noqa: C901
matched = None
if context := results.get("context"):
matched = context.get("matched")
else:
matched = results.get("numberMatched")

for collection in results.get("collections", []):
collections.append(
Expand Down