Skip to content

Commit

Permalink
bugfix: get_collection has callers inheritance now (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus authored Oct 8, 2024
1 parent 37bd0ea commit 4601c5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v. 1.5.2
========
Bugfix: `Database.get_collection` uses callers inheritance (same for async)


v. 1.5.1
========
Switching to endpoint as the only/primary way of specifying databases:
Expand Down
2 changes: 2 additions & 0 deletions astrapy/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ def get_collection(
embedding_api_key=coerce_embedding_headers_provider(embedding_api_key),
max_time_ms=collection_max_time_ms,
),
callers=self.callers,
)

def create_collection(
Expand Down Expand Up @@ -1810,6 +1811,7 @@ async def get_collection(
embedding_api_key=coerce_embedding_headers_provider(embedding_api_key),
max_time_ms=collection_max_time_ms,
),
callers=self.callers,
)

async def create_collection(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires-python = ">=3.8"

[tool.poetry]
name = "astrapy"
version = "1.5.1"
version = "1.5.2"
description = "AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
authors = [
"Stefano Lottini <[email protected]>",
Expand Down

0 comments on commit 4601c5f

Please sign in to comment.