Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
6fcfbd6
1
Parent(s):
3f54678
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,14 @@ def set_EC_value():
|
|
118 |
globs.eep_set = 3
|
119 |
return "EC value set successfully"
|
120 |
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
@app.route("/api", methods=['GET'])
|
123 |
def handle_api():
|
124 |
response = api()
|
|
|
118 |
globs.eep_set = 3
|
119 |
return "EC value set successfully"
|
120 |
|
121 |
+
@app.route('/ec_A_set')
|
122 |
+
def ec_A_setValue():
|
123 |
+
ec_value = request.args.get('value')
|
124 |
+
globs.ec_A_set = ec_A_setValue
|
125 |
+
globs.eep_set = 4
|
126 |
+
return "EC value set successfully"
|
127 |
+
|
128 |
+
|
129 |
@app.route("/api", methods=['GET'])
|
130 |
def handle_api():
|
131 |
response = api()
|