DmitrMakeev commited on
Commit
0303747
·
verified ·
1 Parent(s): 501b6cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2054,9 +2054,11 @@ def from_allow():
2054
  result = cursor.fetchone()
2055
 
2056
  if result:
 
2057
  pr5 = result[21] if result[21] else '{}'
2058
  pr5_data = json.loads(pr5)
2059
  else:
 
2060
  pr5_data = {}
2061
 
2062
  print("Before update:", pr5_data) # Вывод значения перед обновлением
@@ -2111,7 +2113,6 @@ def from_allow():
2111
 
2112
 
2113
 
2114
-
2115
  @app.route('/gc_in', methods=['GET'])
2116
  def add_data_gc_in():
2117
  global current_curator_index
 
2054
  result = cursor.fetchone()
2055
 
2056
  if result:
2057
+ print("Contact found:", result)
2058
  pr5 = result[21] if result[21] else '{}'
2059
  pr5_data = json.loads(pr5)
2060
  else:
2061
+ print("Contact not found")
2062
  pr5_data = {}
2063
 
2064
  print("Before update:", pr5_data) # Вывод значения перед обновлением
 
2113
 
2114
 
2115
 
 
2116
  @app.route('/gc_in', methods=['GET'])
2117
  def add_data_gc_in():
2118
  global current_curator_index