This commit is contained in:
2023-11-04 00:34:13 +01:00
parent 6796f4b207
commit b0d16a037f
3 changed files with 33 additions and 12 deletions

View File

@ -5,17 +5,19 @@ from database_utils import reload_static_data, export_dynamic_data
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///formula10.db";
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False;
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///formula10.db"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
db.init_app(app)
@app.route("/")
def index():
reload_static_data(db)
return render_template("index.jinja")
# @app.route("/teams", methods=["GET", "POST"])
# def teams():
# if request.method == "POST":
@ -31,4 +33,4 @@ def index():
if __name__ == "__main__":
app.run(debug=False)
app.run(debug=False)