Homepage stats now work with elasticsearch

This commit is contained in:
Simon
2018-06-12 23:19:57 -04:00
parent 2fe81e4b06
commit e91572a06f
4 changed files with 12 additions and 8 deletions

2
app.py
View File

@@ -133,8 +133,8 @@ def contribute():
@app.route("/")
def home():
stats = {}
stats = searchEngine.get_global_stats()
stats["website_count"] = len(db.get_all_websites())
current_websites = ", ".join(task.url for task in taskDispatcher.get_current_tasks())
return render_template("home.html", stats=stats, current_websites=current_websites)