Skip to content

Commit

Permalink
Merge pull request #28 from PADAS/fix-trailling-slash-in-url
Browse files Browse the repository at this point in the history
Fix trailing slash in URL
  • Loading branch information
vgarcia13 authored Oct 15, 2024
2 parents dedb841 + cd7d8e1 commit 72e57f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gundi_client_v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def post_events(self, data: List[dict]) -> dict:
return await self._post_data(data=data, endpoint="events")

async def update_event(self, event_id: str, data: dict) -> dict:
return await self._update_data(data=data, endpoint=f"events/{event_id}/")
return await self._update_data(data=data, endpoint=f"events/{event_id}")

async def post_event_attachments(self, event_id: str, attachments: List[tuple]) -> dict:
return await self._post_data(attachments=attachments, endpoint=f"events/{event_id}/attachments")
Expand Down Expand Up @@ -96,7 +96,7 @@ async def _update_data(self, data: dict = None, endpoint: str = None) -> dict:
headers={"apikey": apikey}
)

clean_batch = [json.loads(json.dumps(data, default=str))]
clean_batch = json.loads(json.dumps(data, default=str))
request["json"] = clean_batch

logger.debug(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gundi-client-v2"
version = "2.3.6"
version = "2.3.8"
description = "An async client for Gundi's API"
authors = [
"Chris Doehring <[email protected]>",
Expand Down

0 comments on commit 72e57f4

Please sign in to comment.