mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-01-18 16:58:48 +00:00
609c21245f
+ реформат таблицы для демо потому что удобно (я копировать буду👿👿)
14 lines
328 B
Python
14 lines
328 B
Python
from flask import Flask, render_template, request
|
|
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}" |