mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Homepage stats now work with elasticsearch
This commit is contained in:
2
app.py
2
app.py
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user