From 4aaed03655907f3a184451e2f9733c7a21c7667a Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 22 Aug 2022 21:19:42 +0300 Subject: [PATCH] small fixes --- db/__init__.py | 3 +-- start.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/db/__init__.py b/db/__init__.py index 7d33838..b0fd29f 100644 --- a/db/__init__.py +++ b/db/__init__.py @@ -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}') diff --git a/start.py b/start.py index 0cfc298..13a2c15 100644 --- a/start.py +++ b/start.py @@ -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()