#5 Created ability to generate views for a given product from the past X days

This commit is contained in:
2024-02-05 23:19:39 +00:00
parent ee33965baf
commit 3a08686fc3
3 changed files with 34 additions and 1 deletions

View File

@ -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)