Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
a312100
1
Parent(s):
5b86fd1
Update api_logic.py
Browse files- api_logic.py +4 -1
api_logic.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
from flask import request, jsonify
|
2 |
import globs
|
3 |
|
|
|
|
|
|
|
4 |
def api():
|
5 |
#globs.initialize()
|
6 |
|
@@ -12,7 +15,7 @@ def api():
|
|
12 |
|
13 |
# Создаем JSON-объект с прочитанными значениями параметров
|
14 |
response = {
|
15 |
-
"ph_out":
|
16 |
"ec_out": globs.ec_value
|
17 |
}
|
18 |
|
|
|
1 |
from flask import request, jsonify
|
2 |
import globs
|
3 |
|
4 |
+
test_variable = os.getenv('TEST')
|
5 |
+
|
6 |
+
|
7 |
def api():
|
8 |
#globs.initialize()
|
9 |
|
|
|
15 |
|
16 |
# Создаем JSON-объект с прочитанными значениями параметров
|
17 |
response = {
|
18 |
+
"ph_out": test_variable,
|
19 |
"ec_out": globs.ec_value
|
20 |
}
|
21 |
|