Skip to content

Commit 78e5f4a

Browse files
authored
fixup: Set a limit to 1 instead of 0 when retrieving query results metadata (#113)
This change is needed because we are enforcing that the limit is non-zero on the API at the moment.
1 parent b8dd06e commit 78e5f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dune_client/api/extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ def get_latest_result(
189189

190190
params, query_id = parse_query_object_or_id(query)
191191

192-
# Only fetch the metadata first to determine if the result is fresh enough
192+
# Only fetch 1 row to get metadata first to determine if the result is fresh enough
193193
if params is None:
194194
params = {}
195-
params["limit"] = 0
195+
params["limit"] = 1
196196

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

0 commit comments

Comments
 (0)