From c851ce11ec82a2779e665ba41d12be27f04e765a Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Thu, 26 Mar 2015 22:23:11 +0100 Subject: [PATCH] Edited User parameters --- app/create_database.py | 7 +++---- app/models.py | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/create_database.py b/app/create_database.py index c8b86bd..6f15e18 100644 --- a/app/create_database.py +++ b/app/create_database.py @@ -5,12 +5,11 @@ db.drop_all() db.create_all() feli = User() -feli.configure("feliciaan", True, True) +feli.configure("feliciaan", True, 0) db.session.add(feli) -don = User() -don.configure("don", True, True) -db.session.add(don) +wout = User() +wout.configure('wout', True, 0) # To future developers, add yourself here diff --git a/app/models.py b/app/models.py index 5cbbc88..7318f7b 100644 --- a/app/models.py +++ b/app/models.py @@ -9,9 +9,8 @@ class User(db.Model): courrier = db.relationship('Courrier', backref='courrier', lazy='dynamic') logactions = db.relationship('LogAction', backref='user', lazy='dynamic') - def configure(self, username, allowed, admin, bias): + def configure(self, username, admin, bias): self.username = username - self.allowed = allowed self.admin = admin self.bias = bias