diff --git a/app/model_util.py b/app/model_util.py index 6a52f58..3a2ab64 100644 --- a/app/model_util.py +++ b/app/model_util.py @@ -1,5 +1,4 @@ import time -from contextlib import contextmanager import sqlalchemy as sa @@ -10,20 +9,6 @@ from . import psa # noqa: F401 -@contextmanager -def status(message): - print(f"[·] {message}", end="") - try: - yield - except: # noqa: E722 - print(f"\r[✗] {message}") - raise - else: - print(f"\r[✓] {message}") - finally: - models.DBSession().commit() - - def drop_tables(): conn = models.DBSession.session_factory.kw["bind"] print(f"Dropping tables on database {conn.url.database}")