Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed Dec 29, 2020
1 parent 32f454c commit 3e1b4d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyathena/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ def _find_previous_query_id(
try:
next_token = None
while cache_size > 0:
n = min(cache_size, 50) # 50 is max allowed by AWS API
cache_size -= n
max_results = min(cache_size, 50) # 50 is max allowed by AWS API
cache_size -= max_results
next_token, query_executions = self._list_query_executions(
n, work_group, next_token=next_token
max_results, work_group, next_token=next_token
)
for execution in sorted(
(
Expand Down

0 comments on commit 3e1b4d5

Please sign in to comment.