diff options
| author | Andrew <saintruler@gmail.com> | 2020-02-12 14:10:44 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-02-12 14:10:44 +0400 |
| commit | f3f6b242f74547bf19065eed3ff8a58dcfc85d97 (patch) | |
| tree | 1d44c26067e0db1cdf1d25c702400263df0c8441 | |
| parent | 7b4099a416cdcfe6f253b72a26741203b6926929 (diff) | |
Fixed errors.
| -rw-r--r-- | backend_api.py | 1 | ||||
| -rw-r--r-- | bot.py | 2 | ||||
| -rw-r--r-- | states.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/backend_api.py b/backend_api.py index e830609..b50faf6 100644 --- a/backend_api.py +++ b/backend_api.py @@ -7,7 +7,6 @@ import json from typing import Tuple, Dict -logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) @@ -17,7 +17,7 @@ from keyboards import ( from utils import * from states import States -logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') +logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) @@ -81,6 +81,8 @@ class States: message = "Произошла ошибка в работе квиза. Мы уже работаем над её устранением!" keyboard = ContinueKeyboard.get_keyboard() + return MAIN_MENU + else: message = '\n'.join([ f"*{task['title']}*", |