DmitrMakeev
commited on
Commit
•
2ab4f80
1
Parent(s):
c849d0e
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,12 @@ def index():
|
|
24 |
|
25 |
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
|
29 |
@app.route('/zapro', methods=['GET'])
|
@@ -31,8 +37,8 @@ def zapro():
|
|
31 |
# globs.initialize()
|
32 |
|
33 |
# return flask.render_template('zapro.html', ph_values=globs.ph_value, ec_values=globs.ec_value)
|
34 |
-
|
35 |
-
return render_template('zapro.html', ph_values=globs.ph_value, ec_values=globs.ec_value)
|
36 |
|
37 |
|
38 |
|
|
|
24 |
|
25 |
|
26 |
|
27 |
+
@app.route('/page', methods=['GET'])
|
28 |
+
def page():
|
29 |
+
return render_template('zapro.html')
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
|
34 |
|
35 |
@app.route('/zapro', methods=['GET'])
|
|
|
37 |
# globs.initialize()
|
38 |
|
39 |
# return flask.render_template('zapro.html', ph_values=globs.ph_value, ec_values=globs.ec_value)
|
40 |
+
return jsonify(ph_value=globs.ph_value, ec_value=globs.ec_value)
|
41 |
+
# return render_template('zapro.html', ph_values=globs.ph_value, ec_values=globs.ec_value)
|
42 |
|
43 |
|
44 |
|