Skip to content

Commit

Permalink
Updated code for data type of offset and length
Browse files Browse the repository at this point in the history
  • Loading branch information
JyotiWhcl committed Nov 19, 2021
1 parent f97fec4 commit 3a440a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_results_connection(self, search_id, offset, length):
newdata+=value

# slice off the data count according to offset values
if newdata and max_range > 0 and len(newdata) > max_range:
if newdata and min_range > 0 and max_range > 0 and len(newdata) > max_range:
newdata = newdata[min_range:max_range]

for msg in newdata:
Expand Down

0 comments on commit 3a440a1

Please sign in to comment.