Skip to content

Commit

Permalink
Remove unused status function
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Dec 19, 2023
1 parent 4d4375c commit 1abdc6f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/model_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import time
from contextlib import contextmanager

import sqlalchemy as sa

Expand All @@ -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}")
Expand Down

0 comments on commit 1abdc6f

Please sign in to comment.