Fix name config

Minor PEP fix
This commit is contained in:
Maxim Khomutov 2022-09-13 20:51:23 +03:00
parent de1c1af628
commit b35f974de5
4 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -39,5 +39,5 @@ coverage.xml
*.pot
# Sphinx documentation
docs/_build/
src/сonfig.json
src/config.json
.idea/

View File

@ -12,7 +12,7 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)-29s - %(le
class Config:
# noinspection PyTypeChecker
def __init__(self, config_file="сonfig.json"):
def __init__(self, config_file="config.json"):
self.log = logging.getLogger(__name__)
self.debug = self.log.debug

View File

@ -1,8 +1,8 @@
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton, ReplyKeyboardRemove
network = KeyboardButton('Сеть')
subnet = KeyboardButton('Подсети')
help = KeyboardButton('Помощь')
network_button = KeyboardButton('Сеть')
subnet_button = KeyboardButton('Подсети')
help_button = KeyboardButton('Помощь')
kb = ReplyKeyboardMarkup(resize_keyboard=True, one_time_keyboard=True)
kb.row(network, subnet, help)
kb.row(network_button, subnet_button, help_button)

View File

@ -13,7 +13,7 @@ from aiogram.utils import executor
from config import Config
from keyboard import *
config = Config("сonfig.json")
config = Config("config.json")
log = logging.getLogger("Bot")
bot = Bot(token=config.token)
dp = Dispatcher(bot)