Skip to content

Commit

Permalink
fixup: Set a limit to 1 instead of 0 when retrieving query results me…
Browse files Browse the repository at this point in the history
…tadata (#113)

This change is needed because we are enforcing that the limit is non-zero
on the API at the moment.
  • Loading branch information
RichardKeo committed Mar 7, 2024
1 parent b8dd06e commit 78e5f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dune_client/api/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def get_latest_result(

params, query_id = parse_query_object_or_id(query)

# Only fetch the metadata first to determine if the result is fresh enough
# Only fetch 1 row to get metadata first to determine if the result is fresh enough
if params is None:
params = {}
params["limit"] = 0
params["limit"] = 1

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

0 comments on commit 78e5f4a

Please sign in to comment.