Browse Source

Удалил импорты

master
Дмитрий 3 years ago
parent
commit
e5cc47fe78
  1. 5
      main.py

5
main.py

@ -8,7 +8,6 @@ import secrets
from sqlalchemy import create_engine from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import sessionmaker
from sqlalchemy.exc import IntegrityError from sqlalchemy.exc import IntegrityError
from sqlalchemy_utils import database_exists, create_database
from models import Allowed_user, Token, Messages_to_delete, Base from models import Allowed_user, Token, Messages_to_delete, Base
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
@ -23,10 +22,6 @@ bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot) dp = Dispatcher(bot)
engine = create_engine("sqlite:///" + str(DB_PATH)) engine = create_engine("sqlite:///" + str(DB_PATH))
# if not database_exists(engine.url):
# create_database(engine.url)
Session = sessionmaker(bind=engine) Session = sessionmaker(bind=engine)
session = Session() session = Session()

Loading…
Cancel
Save