Commit a0751265 by serpucga

Bugfix: calculation of recovery index was being made combining the new and old…

Bugfix: calculation of recovery index was being made combining the new and old style of page indexing
parent 407daa4c
...@@ -53,7 +53,7 @@ if args.recovery: ...@@ -53,7 +53,7 @@ if args.recovery:
client = pymongo.MongoClient( client = pymongo.MongoClient(
recovery_data["host"], recovery_data["port"]) recovery_data["host"], recovery_data["port"])
database_tweets = client[recovery_data["database"]]["tweets"] database_tweets = client[recovery_data["database"]]["tweets"]
full_page_index = utils.get_page_index( full_page_index = utils.get_page_index_fast(
database_tweets, recovery_data["pagesize"]) database_tweets, recovery_data["pagesize"])
client.close() client.close()
page_index = [page for page in full_page_index page_index = [page for page in full_page_index
......
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