#5 Added ability to correlate data into graph
This commit is contained in:
@ -18,7 +18,10 @@ def stats_index():
|
||||
""" Main page to view all of the statistics for the site """
|
||||
db = StatsController()
|
||||
data = db.read()
|
||||
return render_template("index.html", content="stats.html", data=data)
|
||||
test = list(map(lambda d: d.productID, data))
|
||||
for i in test:
|
||||
print(i)
|
||||
return render_template("index.html", content="stats.html", data=test)
|
||||
|
||||
|
||||
@blueprint.route('/product/<int:id>')
|
||||
|
Reference in New Issue
Block a user