ss14_chemistry_site/reworked/site.py

14 lines
328 B
Python
Raw Normal View History

from flask import Flask, render_template, request
2024-04-29 16:35:21 +00:00
app = Flask(__name__)
@app.route("/")
def main():
return render_template("index.html")
if __name__ == '__main__':
app.run(debug=False, port = 5001)
@app.route("/submit", methods=['POST'])
def calculate():
selectedval = request.form["getrecept"]
return f"{selectedval}"