Update google_db.py
Browse files- google_db.py +2 -4
google_db.py
CHANGED
|
@@ -4,10 +4,8 @@ async def async_save_db(data):
|
|
| 4 |
async with aiohttp.ClientSession() as session:
|
| 5 |
async with session.post(google_url, data=data, headers={'Content-Type': 'application/x-www-form-urlencoded'}) as response:
|
| 6 |
# Просто проверяем статус код, не ожидая тела ответа
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
else:
|
| 10 |
-
return False
|
| 11 |
|
| 12 |
def save_db():
|
| 13 |
err = 0
|
|
|
|
| 4 |
async with aiohttp.ClientSession() as session:
|
| 5 |
async with session.post(google_url, data=data, headers={'Content-Type': 'application/x-www-form-urlencoded'}) as response:
|
| 6 |
# Просто проверяем статус код, не ожидая тела ответа
|
| 7 |
+
return True
|
| 8 |
+
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def save_db():
|
| 11 |
err = 0
|