Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Jun 10, 2024
1 parent d35b438 commit 2cd5dc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Добавлено
- Новое поле к модели `UserModel`: `last_active_time`
- Добавлен таймаут в 10 секунд на запросы для отправки рекламы

### Исправлено
- Баг с обменником ([#18](https://github.com/HamletSargsyan/livebot/issues/18))
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/advert.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def show_advert(user: UserModel):

logger.debug(f"Send advert to user `{user.id}`")
response = requests.post(
"https://api.gramads.net/ad/SendPost", headers=headers, json=json
"https://api.gramads.net/ad/SendPost", headers=headers, json=json, timeout=20
)

logger.debug(response.text)
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import bot as _ # noqa: F401
from threads.check import check
from config import bot, event_open, logger
from threads.notification import notification
from config import bot, event_open, logger
from middlewares import middlewares


Expand Down

0 comments on commit 2cd5dc6

Please sign in to comment.