DmitrMakeev commited on
Commit
1ed1e33
·
verified ·
1 Parent(s): bf7512c

Update google_db.py

Browse files
Files changed (1) hide show
  1. 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