small fixes

This commit is contained in:
Alexey Sokolov
2022-08-22 21:19:42 +03:00
parent 18fa0a8542
commit 4aaed03655
2 changed files with 1 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
from os import path
import aiosqlite
from .create import create_tables_if_not_exists
@@ -7,5 +6,5 @@ from .create import create_tables_if_not_exists
DB_PATH = 'res/db/'
DB_FILENAME = 'database.db'
if not path.exists('res/db/database.db'):
if not path.exists(f'{DB_PATH}{DB_FILENAME}'):
create_tables_if_not_exists(f'{DB_PATH}{DB_FILENAME}')

View File

@@ -4,7 +4,6 @@ from aiohttp import web
from config import Config
from telegram import telegram_bot, telegram_dispatcher
import db
from web import create_app
config = Config()