feat(api): fix time

This commit is contained in:
Alejandro Vazquez
2026-03-27 15:54:45 -03:00
parent 402f8e07a8
commit 68e8d81617
3 changed files with 130 additions and 6 deletions
+7 -2
View File
@@ -57,5 +57,10 @@ class User(UserMixin, db.Model):
'last_login': self.last_login.isoformat() if self.last_login else None
}
def __repr__(self):
return f'<User {self.email}>'
def __repr__(self):
return f'<User {self.email}>'
@login_manager.user_loader
def load_user(user_id):
"""Load user from database by ID"""
return User.query.get(int(user_id))