diff options
-rw-r--r-- | wqflask/wqflask/database.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/wqflask/wqflask/database.py b/wqflask/wqflask/database.py index 38c37d2c..11f8d287 100644 --- a/wqflask/wqflask/database.py +++ b/wqflask/wqflask/database.py @@ -14,9 +14,5 @@ db_session = scoped_session(sessionmaker(autocommit=False, Base = declarative_base() Base.query = db_session.query_property() - -def init_db(): - Base.metadata.create_all(bind=engine) - - -init_db() +# Initialise the db +Base.metadata.create_all(bind=engine) |