clean imports (delete imports, which are not used)

This commit is contained in:
2023-08-12 23:46:09 +03:00
parent a5798cf767
commit 1880f8abec
7 changed files with 86 additions and 25 deletions

View File

@ -1,6 +1,12 @@
from sqlalchemy import Table, MetaData
from .db import engine
from sqlalchemy import Table, MetaData, text
from .db import engine, Base
tbl = Table('UserDatabase', MetaData(), autoload_with=engine)
tbl.drop(engine, checkfirst=False)
a = input()
# tbl = Table('Poems', MetaData(), autoload_with=engine)
# tbl.drop(engine, checkfirst=False)
# a = input()
# Base.metadata.drop_all(bind=engine)
with engine.connect() as conn:
conn.execute(text("DELETE FROM alembic_version"))
conn.commit()