Fix a case where 'next' is not correctly returned.
This commit is contained in:
parent
895620b536
commit
96e81f595f
@ -222,7 +222,7 @@ def qute_history(url):
|
|||||||
yield {"url": item_url, "title": item_title, "time": item_time}
|
yield {"url": item_url, "title": item_title, "time": item_time}
|
||||||
|
|
||||||
# if we reached here, we had reached the end of history
|
# if we reached here, we had reached the end of history
|
||||||
yield {"next": -1}
|
yield {"next": int(last_item.atime if last_item else -1)}
|
||||||
|
|
||||||
if url.path() == '/data':
|
if url.path() == '/data':
|
||||||
# Use start_time in query or current time.
|
# Use start_time in query or current time.
|
||||||
|
Loading…
Reference in New Issue
Block a user