DmitrMakeev commited on
Commit
5e5ef88
1 Parent(s): 4da42d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import flask
2
  from flask import request, jsonify
3
  import os
4
  from dotenv import load_dotenv
5
-
6
  from flask import render_template
7
  from api_logic import api
8
 
@@ -28,9 +28,9 @@ def index():
28
 
29
  @app.route('/zapro', methods=['GET'])
30
  def zapro():
31
- global ph_value, ec_value
32
 
33
- return flask.render_template('zapro.html', ph_values=ph_value, ec_values=ec_value)
34
 
35
 
36
 
 
2
  from flask import request, jsonify
3
  import os
4
  from dotenv import load_dotenv
5
+ import globs
6
  from flask import render_template
7
  from api_logic import api
8
 
 
28
 
29
  @app.route('/zapro', methods=['GET'])
30
  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
 
36