Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
4eeb14d
1
Parent(s):
c074486
Update google_db.py
Browse files- google_db.py +2 -2
google_db.py
CHANGED
@@ -3,7 +3,7 @@ import globs
|
|
3 |
import os
|
4 |
import requests
|
5 |
api_variabl = os.getenv('api_key')
|
6 |
-
|
7 |
|
8 |
def save_db():
|
9 |
err = 0
|
@@ -44,7 +44,7 @@ def save_db():
|
|
44 |
}
|
45 |
|
46 |
# Отправляем POST запрос
|
47 |
-
response = requests.post(
|
48 |
|
49 |
# Проверяем статус ответа
|
50 |
if response.status_code == 200:
|
|
|
3 |
import os
|
4 |
import requests
|
5 |
api_variabl = os.getenv('api_key')
|
6 |
+
google_url = os.getenv('goo_url')
|
7 |
|
8 |
def save_db():
|
9 |
err = 0
|
|
|
44 |
}
|
45 |
|
46 |
# Отправляем POST запрос
|
47 |
+
response = requests.post(google_url, json=data)
|
48 |
|
49 |
# Проверяем статус ответа
|
50 |
if response.status_code == 200:
|