From 609c21245fc89a4d454315923cd04b73693405ed Mon Sep 17 00:00:00 2001 From: dttric <87319664+dttric@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:56:33 +0700 Subject: [PATCH] =?UTF-8?q?+=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20"=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D1=80=D0=B5=D1=86=D0=B5=D0=BF=D1=82=D0=B0"=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20POST=20+=20=D1=80=D0=B5=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8?= =?UTF-8?q?=D1=86=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B5=D0=BC=D0=BE=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=82=D0=BE=D0=BC=D1=83=20=D1=87=D1=82=D0=BE=20?= =?UTF-8?q?=D1=83=D0=B4=D0=BE=D0=B1=D0=BD=D0=BE=20(=D1=8F=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BF=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B1=D1=83?= =?UTF-8?q?=D0=B4=D1=83=F0=9F=91=BF=F0=9F=91=BF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reworked/demo.html | 15 +++------------ reworked/site.py | 7 ++++++- reworked/templates/index.html | 15 +++++++++------ 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/reworked/demo.html b/reworked/demo.html index b780a5a..9955e99 100644 --- a/reworked/demo.html +++ b/reworked/demo.html @@ -75,18 +75,9 @@ - - Кислород - 100 - - - Фосфор - 100 - - - Келотан - 100 - + Кислород100 + Фосфор100 + Келотан100 diff --git a/reworked/site.py b/reworked/site.py index 8640dde..e2d207e 100644 --- a/reworked/site.py +++ b/reworked/site.py @@ -1,4 +1,4 @@ -from flask import Flask, render_template +from flask import Flask, render_template, request app = Flask(__name__) @app.route("/") @@ -7,3 +7,8 @@ def main(): if __name__ == '__main__': app.run(debug=False, port = 5001) + +@app.route("/submit", methods=['POST']) +def calculate(): + selectedval = request.form["getrecept"] + return f"{selectedval}" \ No newline at end of file diff --git a/reworked/templates/index.html b/reworked/templates/index.html index f52248c..002108a 100644 --- a/reworked/templates/index.html +++ b/reworked/templates/index.html @@ -35,12 +35,15 @@
- +
+ + +