From b70ae0e1dd2b21e1257a6894d0c3977bb02cc251 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 7 Apr 2016 22:03:50 +0200 Subject: Minor updates in the manager. --- src/web/models/__init__.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/web') 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 -- cgit