#10 Added Product section to admin page

This commit is contained in:
2024-02-14 16:46:30 +00:00
parent 45d2773f9a
commit d6f7b3e549
7 changed files with 90 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ def view_product_stats(id: int):
# Check user is seller
if not is_role("Seller"):
flash("You must be logged in as a seller to view this page!", "error")
return redirect(url_for('main.index'))
return redirect(url_for('main.products.product', id=id))
db = ProductController()
product = db.read_id(id)