From 56c908c63fa99f1467a61d726c4f3c30c63ca30a Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Fri, 27 Mar 2015 14:03:28 +0100 Subject: [PATCH] Removed slotmachien slack stuff --- app/admin.py | 1 + app/create_database.py | 4 ++-- app/zeus.py | 8 +------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/admin.py b/app/admin.py index 3fda49c..b6dceff 100644 --- a/app/admin.py +++ b/app/admin.py @@ -29,6 +29,7 @@ class LocationAdminModel(ModelBaseView): admin = Admin(app, name='FoodBot', url='/admin', template_mode='bootstrap3') + admin.add_view(UserAdminModel(User, db.session)) admin.add_view(LocationAdminModel(Location, db.session)) admin.add_view(ModelBaseView(Food, db.session)) diff --git a/app/create_database.py b/app/create_database.py index 6f15e18..82caa5b 100644 --- a/app/create_database.py +++ b/app/create_database.py @@ -8,8 +8,8 @@ feli = User() feli.configure("feliciaan", True, 0) db.session.add(feli) -wout = User() -wout.configure('wout', True, 0) +destro = User() +destro.configure('destro', True, 0) # To future developers, add yourself here diff --git a/app/zeus.py b/app/zeus.py index 7661260..553509d 100644 --- a/app/zeus.py +++ b/app/zeus.py @@ -65,13 +65,7 @@ def login_and_redirect_user(user): def create_user(username): user = User() - user.configure(username, False) + user.configure(username, False, 1) db.session.add(user) db.session.commit() - # EASTER EGG - text = 'Welcome ' + username + '!' - js = json.dumps({'text': text}) - url = app.config['SLACK_WEBHOOK'] - if len(url) > 0: - requests.post(url, data=js) return user