DmitrMakeev
commited on
Commit
•
d333e20
1
Parent(s):
e4fbd3e
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ date_from = "2022-01-01"
|
|
34 |
export_id = ""
|
35 |
|
36 |
code_executed = False
|
37 |
-
|
38 |
|
39 |
status = "active"
|
40 |
json_data = '''
|
@@ -129,10 +129,6 @@ def initialize_requests():
|
|
129 |
export_id = data.get("info", {}).get("export_id", "")
|
130 |
print("Export ID:", export_id) # Отладочное сообщение
|
131 |
|
132 |
-
# Задержка перед вторым запросом
|
133 |
-
print(f"Ожидание {delay_seconds} секунд перед отправкой второго запроса...")
|
134 |
-
time.sleep(delay_seconds)
|
135 |
-
|
136 |
# Отправка оповещения на другой сервер
|
137 |
notification_url = "https://skyauto.me/cllbck/217669590/29245685/bGZuMDRZZUpLZ3VJR2oxcC9CQmh0UT0?api=1&uid=535939344"
|
138 |
notification_data = {
|
@@ -159,7 +155,6 @@ def initialize_requests():
|
|
159 |
|
160 |
|
161 |
|
162 |
-
|
163 |
def load_data_from_json():
|
164 |
data = json.loads(json_data)
|
165 |
items = data['info']['items']
|
|
|
34 |
export_id = ""
|
35 |
|
36 |
code_executed = False
|
37 |
+
|
38 |
|
39 |
status = "active"
|
40 |
json_data = '''
|
|
|
129 |
export_id = data.get("info", {}).get("export_id", "")
|
130 |
print("Export ID:", export_id) # Отладочное сообщение
|
131 |
|
|
|
|
|
|
|
|
|
132 |
# Отправка оповещения на другой сервер
|
133 |
notification_url = "https://skyauto.me/cllbck/217669590/29245685/bGZuMDRZZUpLZ3VJR2oxcC9CQmh0UT0?api=1&uid=535939344"
|
134 |
notification_data = {
|
|
|
155 |
|
156 |
|
157 |
|
|
|
158 |
def load_data_from_json():
|
159 |
data = json.loads(json_data)
|
160 |
items = data['info']['items']
|