DmitrMakeev commited on
Commit
3231b49
·
verified ·
1 Parent(s): bcf8ccd

Update api_logic.py

Browse files
Files changed (1) hide show
  1. api_logic.py +11 -11
api_logic.py CHANGED
@@ -63,17 +63,17 @@ def api():
63
  # Оборачиваем ответ в "set_deta"
64
  response = {
65
  "set_deta": {
66
- "1_ph_set": float(globs.ph_set),
67
- "2_ph_on_set": float(globs.ph_on_set),
68
- "3_ec_set": float(globs.ec_set),
69
- "4_ec_A_set": float(globs.ec_A_set),
70
- "5_ec_B_set": float(globs.ec_B_set),
71
- "6_ec_C_set": float(globs.ec_C_set),
72
- "7_l_ON_h_set": int(globs.l_ON_h_set),
73
- "7_l_ON_m_set": int(globs.l_ON_m_set),
74
- "8_l_OFF_h_set": int(globs.l_OFF_h_set),
75
- "8_l_OFF_m_set": int(globs.l_OFF_m_set),
76
- "9_ec_t_Voz_set": int(globs.ec_t_Voz_set),
77
  "eep_set": int(globs.eep_set),
78
  "err": int(err)
79
  }
 
63
  # Оборачиваем ответ в "set_deta"
64
  response = {
65
  "set_deta": {
66
+ "ph_set": float(globs.ph_set),
67
+ "ph_on_set": float(globs.ph_on_set),
68
+ "ec_set": float(globs.ec_set),
69
+ "ec_A_set": float(globs.ec_A_set),
70
+ "ec_B_set": float(globs.ec_B_set),
71
+ "ec_C_set": float(globs.ec_C_set),
72
+ "ON_h_set": int(globs.l_ON_h_set),
73
+ "ON_m_set": int(globs.l_ON_m_set),
74
+ "OFF_h_set": int(globs.l_OFF_h_set),
75
+ "OFF_m_set": int(globs.l_OFF_m_set),
76
+ "ec_t_Voz_set": int(globs.ec_t_Voz_set),
77
  "eep_set": int(globs.eep_set),
78
  "err": int(err)
79
  }