Fix a case where 'next' is not correctly returned.

This commit is contained in:
Imran Sobir 2017-03-02 23:14:00 +05:00
parent 895620b536
commit 96e81f595f

View File

@ -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.