small fixes
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
from os import path
|
from os import path
|
||||||
import aiosqlite
|
|
||||||
|
|
||||||
from .create import create_tables_if_not_exists
|
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_PATH = 'res/db/'
|
||||||
DB_FILENAME = 'database.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}')
|
create_tables_if_not_exists(f'{DB_PATH}{DB_FILENAME}')
|
||||||
|
|||||||
1
start.py
1
start.py
@@ -4,7 +4,6 @@ from aiohttp import web
|
|||||||
|
|
||||||
from config import Config
|
from config import Config
|
||||||
from telegram import telegram_bot, telegram_dispatcher
|
from telegram import telegram_bot, telegram_dispatcher
|
||||||
import db
|
|
||||||
from web import create_app
|
from web import create_app
|
||||||
|
|
||||||
config = Config()
|
config = Config()
|
||||||
|
|||||||
Reference in New Issue
Block a user