Added top websites scatter graph

This commit is contained in:
Simon
2018-06-20 12:21:34 -04:00
parent 7400bdc2a9
commit cf51bb381c
5 changed files with 128 additions and 3 deletions

1
app.py
View File

@@ -57,6 +57,7 @@ def stats_page():
@app.route("/stats/json_chart")
def stats_json():
stats = searchEngine.get_global_stats()
db.join_website_on_stats(stats)
return Response(json.dumps(stats), mimetype="application/json")