Commit 407daa4c by serpucga

Bugfix: first tweet of each paged was being ignored

parent 2612720f
...@@ -440,7 +440,7 @@ def get_tweets_page_fast( ...@@ -440,7 +440,7 @@ def get_tweets_page_fast(
""" """
tweets = collection\ tweets = collection\
.find({"id": {"$lt": page_index}})\ .find({"id": {"$lte": page_index}})\
.sort("id", pymongo.DESCENDING)\ .sort("id", pymongo.DESCENDING)\
.limit(page_size) .limit(page_size)
return tweets return tweets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment