aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-06 09:17:13 +0300
committerBonfaceKilz2021-05-26 20:01:28 +0300
commitb5779f798ca5ef30a000af726921db43b33291a6 (patch)
treefa52d4a7ffa3bffd6bd3814444fb6f51b3eacde8 /wqflask
parent9c583587b64d26dd9c554e092318435facc510f3 (diff)
downloadgenenetwork2-b5779f798ca5ef30a000af726921db43b33291a6.tar.gz
wqflask: database: Replace one-line function with it's body
* wqflask/wqflask/database.py (init_db): Remove it.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/database.py8
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)