aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/__init__.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/web/models/__init__.py b/src/web/models/__init__.py
index 7c50cab3..260f3263 100644
--- a/src/web/models/__init__.py
+++ b/src/web/models/__init__.py
@@ -83,18 +83,3 @@ def db_empty(db):
conn.execute(DropTable(table))
trans.commit()
-
-def db_create(db):
- "Will create the database from conf parameters."
- db.create_all()
-
- user1 = User(nickname="admin",
- email=os.environ.get("ADMIN_EMAIL",
- "root@jarr.localhost"),
- pwdhash=generate_password_hash(
- os.environ.get("ADMIN_PASSWORD", "password")),
- is_admin=True)
-
- db.session.add(user1)
- db.session.commit()
- return user1
bgstack15