From 1abdc6f172c449289a4e8a1d4785a631af647a57 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 14 Dec 2023 10:05:13 -0800 Subject: [PATCH] Remove unused status function --- app/model_util.py | 15 --------------- 1 file changed, 15 deletions(-) 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}")