Spaces:
IrDelSol
/
Runtime error

DmitrMakeev commited on
Commit
0db287d
·
verified ·
1 Parent(s): bbac2bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,7 +97,6 @@ for db in DATABASES:
97
 
98
 
99
 
100
- # Проверка, что системная переменная равна '1'
101
  if start_up == '1':
102
  # URL с местами для вставки API-ключа, даты и статуса
103
  url_template = f"{gc_url_gru}/{id_gru}/users?key={gc_api}&created_at[from]={date_from}&status={status}"
@@ -109,6 +108,8 @@ if start_up == '1':
109
  if response.status_code == 200:
110
  print("Запрос успешно выполнен")
111
  data = response.json()
 
 
112
  export_id = data.get("info", {}).get("export_id", "")
113
  print("Export ID:", export_id)
114
  else:
 
97
 
98
 
99
 
 
100
  if start_up == '1':
101
  # URL с местами для вставки API-ключа, даты и статуса
102
  url_template = f"{gc_url_gru}/{id_gru}/users?key={gc_api}&created_at[from]={date_from}&status={status}"
 
108
  if response.status_code == 200:
109
  print("Запрос успешно выполнен")
110
  data = response.json()
111
+
112
+ # Извлечение export_id из словаря
113
  export_id = data.get("info", {}).get("export_id", "")
114
  print("Export ID:", export_id)
115
  else: