Cleaned up code
This commit is contained in:
parent
7ebeb10cda
commit
b49022f7f9
@ -19,7 +19,7 @@ def index():
|
|||||||
return render_template("index.html", content="stats.html", data=test)
|
return render_template("index.html", content="stats.html", data=test)
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/product/<int:id>')
|
@blueprint.route('/products/<int:id>')
|
||||||
def view_product_stats(id: int):
|
def view_product_stats(id: int):
|
||||||
""" Page to view statistics for a given product """
|
""" Page to view statistics for a given product """
|
||||||
db = StatsController()
|
db = StatsController()
|
||||||
@ -42,7 +42,7 @@ def view_product_stats(id: int):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/user/<int:id>')
|
@blueprint.route('/users/<int:id>')
|
||||||
def view_user_stats(id: int):
|
def view_user_stats(id: int):
|
||||||
""" Page to view statistics for a given user """
|
""" Page to view statistics for a given user """
|
||||||
db = StatsController()
|
db = StatsController()
|
||||||
|
@ -5,7 +5,6 @@ from flask import Blueprint
|
|||||||
|
|
||||||
from flask import render_template, redirect, request, session, flash
|
from flask import render_template, redirect, request, session, flash
|
||||||
from controllers.database.user import UserController
|
from controllers.database.user import UserController
|
||||||
from models.users.user import User
|
|
||||||
from models.users.customer import Customer
|
from models.users.customer import Customer
|
||||||
from models.users.seller import Seller
|
from models.users.seller import Seller
|
||||||
from hashlib import sha512
|
from hashlib import sha512
|
||||||
|
Loading…
Reference in New Issue
Block a user