#5 Created ability to generate views for a given product from the past X days
This commit is contained in:
@ -28,7 +28,7 @@ def stats_index():
|
||||
def view_product_stats(id: int):
|
||||
""" Page to view statistics for a given product """
|
||||
db = StatsController()
|
||||
data = db.read_product(id)
|
||||
data = db.read_days(id, 7)
|
||||
return render_template("index.html", content="stats.html", data=data)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user