Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -293,7 +293,30 @@ def save_settings(settings_dict):
|
|
293 |
|
294 |
conn.commit()
|
295 |
conn.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
|
298 |
@app.route('/load_settings', methods=['POST'])
|
299 |
def get_settings():
|
|
|
293 |
|
294 |
conn.commit()
|
295 |
conn.close()
|
296 |
+
# Обновляем глобальные переменные
|
297 |
+
api_key_auth = settings_dict.get('api_key_auth', '')
|
298 |
+
crypto_key_auth = settings_dict.get('crypto_key_auth', '')
|
299 |
+
crypto_key_url = settings_dict.get('crypto_key_url', '')
|
300 |
+
vk_api_key = settings_dict.get('vk_api_key', '')
|
301 |
+
senler_token = settings_dict.get('senler_token', '')
|
302 |
+
wa_ak = settings_dict.get('wa_ak', '')
|
303 |
+
wa_api_key = settings_dict.get('wa_api_key', '')
|
304 |
+
curators = settings_dict.get('curators', '')
|
305 |
+
call_api_key = settings_dict.get('call_api_key', '')
|
306 |
|
307 |
+
# Выводим значения в консоль
|
308 |
+
print(f"wa_api_key: {wa_api_key}")
|
309 |
+
print(f"wa_ak: {wa_ak}")
|
310 |
+
print(f"vk_api_key: {vk_api_key}")
|
311 |
+
print(f"senler_token: {senler_token}")
|
312 |
+
|
313 |
+
print(f"api_key_auth: {api_key_auth}")
|
314 |
+
print(f"crypto_key_auth: {crypto_key_auth}")
|
315 |
+
print(f"crypto_key_url: {crypto_key_url}")
|
316 |
+
print(f"curators: {curators}")
|
317 |
+
print(f"call_api_key: {call_api_key}")
|
318 |
+
|
319 |
+
|
320 |
|
321 |
@app.route('/load_settings', methods=['POST'])
|
322 |
def get_settings():
|