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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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,8 +109,6 @@ if start_up == '1':
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:
 
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
  export_id = data.get("info", {}).get("export_id", "")
113
  print("Export ID:", export_id)
114
  else: