Reformat
This commit is contained in:
@ -10,6 +10,7 @@ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False;
|
||||
|
||||
db.init_app(app)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
users = User.query.all()
|
||||
@ -23,11 +24,13 @@ def index():
|
||||
|
||||
return render_template("index.jinja", users=users, raceresults=raceresults, guesses=guesses)
|
||||
|
||||
|
||||
@app.route("/reload")
|
||||
def reload():
|
||||
reload_static_data(db)
|
||||
return redirect("/")
|
||||
|
||||
|
||||
# @app.route("/teams", methods=["GET", "POST"])
|
||||
# def teams():
|
||||
# if request.method == "POST":
|
||||
@ -43,4 +46,4 @@ def reload():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=False)
|
||||
app.run(debug=False)
|
||||
|
Reference in New Issue
Block a user