Changed urls to all use 'url_for' syntax
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user