Changed urls to all use 'url_for' syntax

This commit is contained in:
2024-02-06 19:30:08 +00:00
parent f254c011b6
commit 7ebeb10cda
6 changed files with 14 additions and 27 deletions

View File

@ -1,21 +1,17 @@
""" The user controller to manage all of the stats related endpoints
in the web app
"""
import json
import random
from flask import Blueprint
from flask import render_template, redirect, request, session, flash
from flask import render_template, request
from controllers.database.stats import StatsController
from models.stats import Stats
from models.users.user import User
# Blueprint to append user endpoints to
blueprint = Blueprint("stats", __name__, url_prefix='/stats')
@blueprint.route('/')
def stats_index():
def index():
""" Main page to view all of the statistics for the site """
db = StatsController()
data = db.read()