This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cursor_from_offset(q, offset, cursor=None): | |
""" | |
the maximum cursor position you can get in one shot is | |
1250 (page_size=250, offset=1000), so to get a cursor | |
beyond that requires a bit of work. | |
will return None if not results and more | |
""" | |
MAX_OFFSET = 1000 | |
if offset <= MAX_OFFSET: |
NewerOlder