Skip to content

Commit

Permalink
fix lint and format errors (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Jun 5, 2023
1 parent 2bd224c commit 1249203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dune_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def get_latest_result(self, query: Union[Query, str, int]) -> ResultsResponse:
"""
GET the latest results for a query_id without having to execute the query again.
:param query: :class:`Query` object OR query id as string | int
:param query: :class:`Query` object OR query id as string | int
https://dune.com/docs/api/api-reference/latest_results/
https://dune.com/docs/api/api-reference/latest_results/
"""
if isinstance(query, Query):
params = {
Expand All @@ -144,7 +144,7 @@ def get_latest_result(self, query: Union[Query, str, int]) -> ResultsResponse:
query_id = query.query_id
else:
params = None
query_id = query
query_id = int(query)

response_json = self._get(
route=f"query/{query_id}/results",
Expand Down
2 changes: 1 addition & 1 deletion dune_client/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def get_latest_result(self, query: Union[Query, str, int]) -> ResultsRespo
query_id = query.query_id
else:
params = None
query_id = query
query_id = int(query)

response_json = await self._get(
url=f"/query/{query_id}/results",
Expand Down

0 comments on commit 1249203

Please sign in to comment.