Skip to content

Commit

Permalink
Maybe this time
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l authored and SuaYoo committed Jan 21, 2025
1 parent 0f1727a commit d410a42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/btrixcloud/colls.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ async def list_collections(
page = page - 1
skip = page * page_size

match_query: dict[str, Union[str, UUID, int, object]] = {"oid": org.id}
match_query: Dict[str, Union[str, UUID, int, object]] = {"oid": org.id}

if name:
match_query["name"] = name
Expand All @@ -409,7 +409,9 @@ async def list_collections(
elif access:
match_query["access"] = access

aggregate = [{"$match": match_query}]
aggregate: List[Dict[str, Union[str, UUID, int, object]]] = [
{"$match": match_query}
]

if sort_by:
if sort_by not in (
Expand Down

0 comments on commit d410a42

Please sign in to comment.