Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Update google_db.py
Browse files- google_db.py +1 -5
google_db.py
CHANGED
@@ -10,11 +10,7 @@ google_url = os.getenv('goo_url')
|
|
10 |
async def async_save_db(data):
|
11 |
async with aiohttp.ClientSession() as session:
|
12 |
async with session.post(google_url, data=data, headers={'Content-Type': 'application/x-www-form-urlencoded'}) as response:
|
13 |
-
|
14 |
-
if response.status == 200:
|
15 |
-
return True
|
16 |
-
else:
|
17 |
-
return False
|
18 |
|
19 |
def save_db():
|
20 |
err = 0
|
|
|
10 |
async def async_save_db(data):
|
11 |
async with aiohttp.ClientSession() as session:
|
12 |
async with session.post(google_url, data=data, headers={'Content-Type': 'application/x-www-form-urlencoded'}) as response:
|
13 |
+
|
|
|
|
|
|
|
|
|
14 |
|
15 |
def save_db():
|
16 |
err = 0
|