Skip to content

Commit

Permalink
fix cursor scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsdevera committed May 29, 2023
1 parent c18d7cc commit f1ec43f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions espywrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from elasticsearch import Elasticsearch, helpers

__version__ = '1.2.0'
__version__ = '1.2.1'

class EsPyWrapperResult:
def __init__(self, results: dict = None):
Expand Down Expand Up @@ -214,8 +214,8 @@ def query_sql(self, query: str = None):
json={'cursor': cursor}
)
results['rows'] += r.json()['rows']
if 'cursor' in list(r.json()['rows'].keys()):
cursor = r.json()['rows']['cursor']
if 'cursor' in list(r.json().keys()):
cursor = r.json()['cursor']
else:
cursor = None

Expand Down

0 comments on commit f1ec43f

Please sign in to comment.