aboutsummaryrefslogtreecommitdiff
path: root/src/web/models/__init__.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 22:03:50 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 22:03:50 +0200
commitb70ae0e1dd2b21e1257a6894d0c3977bb02cc251 (patch)
tree65d7ffd95283c74bf2828c20dbc23aef0e224d2f /src/web/models/__init__.py
parentWon't use munin. (diff)
downloadnewspipe-b70ae0e1dd2b21e1257a6894d0c3977bb02cc251.tar.gz
newspipe-b70ae0e1dd2b21e1257a6894d0c3977bb02cc251.tar.bz2
newspipe-b70ae0e1dd2b21e1257a6894d0c3977bb02cc251.zip
Minor updates in the manager.
Diffstat (limited to 'src/web/models/__init__.py')
-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