DmitrMakeev commited on
Commit
53206f0
·
verified ·
1 Parent(s): 0cea002

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -100,7 +100,7 @@ for db in DATABASES:
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}"
104
 
105
  # Отправка запроса к серверу
106
  response = requests.get(url_template)
@@ -109,6 +109,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:
@@ -138,9 +140,6 @@ else:
138
 
139
 
140
 
141
-
142
-
143
-
144
 
145
 
146
 
 
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}"
104
 
105
  # Отправка запроса к серверу
106
  response = requests.get(url_template)
 
109
  if response.status_code == 200:
110
  print("Запрос успешно выполнен")
111
  data = response.json()
112
+
113
+ # Извлечение export_id из словаря
114
  export_id = data.get("info", {}).get("export_id", "")
115
  print("Export ID:", export_id)
116
  else:
 
140
 
141
 
142
 
 
 
 
143
 
144
 
145