Converts page_size to int

This commit is contained in:
Alex Marvin 2020-02-24 15:05:43 -05:00 committed by GitHub
parent 12bc9d68c4
commit 00523eaaf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1165,7 +1165,7 @@ def _paginate(seq, page_size):
it = iter(seq)
while True:
try:
for i in range(page_size):
for i in range(int(page_size)):
page.append(next(it))
yield page
page = []