Edited User parameters
This commit is contained in:
parent
b69132b5b7
commit
c851ce11ec
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue