From b410e46f69b3356da1256c6da34a1b2f7af2a7d4 Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Tue, 8 Sep 2020 00:03:42 +0200 Subject: [PATCH] Fix db error Comment last_seen. Is throwing error. --- app/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models.py b/app/models.py index 235ba11..d90b599 100644 --- a/app/models.py +++ b/app/models.py @@ -22,7 +22,7 @@ class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), index=True, unique=True) password_hash = db.Column(db.String(128)) - last_seen = db.Column(db.DateTime, default=datetime.utcnow) + #last_seen = db.Column(db.DateTime, default=datetime.utcnow) posts = db.relationship('Post', backref='author', lazy='dynamic') def __repr__(self): @@ -169,4 +169,4 @@ class Post(db.Model): def __repr__(self): return ''.format(self.body) - \ No newline at end of file +