Skip to content

Commit

Permalink
Fix bug in token assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gray-adeyi committed Apr 30, 2023
1 parent e7dd12f commit f9cf7d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pykuda2/kuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def __init__(self, email: str, api_key: str, mode: Mode = Mode.DEVELOPMENT):
# a hacky solution to this issue. We use this `Kuda` wrapper to get the
# `access_token` and feed it to all these attributes, so they don't have
# to make a request to get the access token.
self.accounts._token = self._token
self.transactions._token = self._token
self.billing_and_betting._token = self._token
self.gift_cards._token = self._token
self.savings._token = self._token
self.cards._token = self._token
self.accounts._saved_token = self._token
self.transactions._saved_token = self._token
self.billing_and_betting._saved_token = self._token
self.gift_cards._saved_token = self._token
self.savings._saved_token = self._token
self.cards._saved_token = self._token


class AsyncKuda(BaseAsyncAPIWrapper):
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 = "pykuda2"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Jennifer <[email protected]>","Gbenga Adeyi <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit f9cf7d3

Please sign in to comment.