From b231ea7c004e0751764d870870410608559233e0 Mon Sep 17 00:00:00 2001 From: codl Date: Tue, 29 Aug 2017 15:17:47 +0200 Subject: [PATCH] remove unnecessary lambdas --- model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model.py b/model.py index e9a0905..11a2b4e 100644 --- a/model.py +++ b/model.py @@ -189,7 +189,7 @@ class Session(db.Model, TimestampMixin): __tablename__ = 'sessions' id = db.Column(db.String, primary_key=True, - default=lambda: secrets.token_urlsafe()) + default=secrets.token_urlsafe) account_id = db.Column( db.String, @@ -199,7 +199,7 @@ class Session(db.Model, TimestampMixin): account = db.relationship(Account, lazy='joined', backref='sessions') csrf_token = db.Column(db.String, - default=lambda: secrets.token_urlsafe(), + default=secrets.token_urlsafe, nullable=False)