From 87af662c65f0b056b2398cfe3c3c844d1d8f26ca Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 17 Mar 2022 13:44:09 +0100 Subject: [PATCH] robustifie last_seen --- app/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/auth/models.py b/app/auth/models.py index d3548cb13..544afc319 100644 --- a/app/auth/models.py +++ b/app/auth/models.py @@ -173,7 +173,7 @@ class User(UserMixin, db.Model): "id": self.id, "active": self.active, "status_txt": "actif" if self.active else "fermé", - "last_seen": self.last_seen.isoformat() + "Z", + "last_seen": self.last_seen.isoformat() + "Z" if self.last_seen else "", "nom": (self.nom or ""), # sco8 "prenom": (self.prenom or ""), # sco8 "roles_string": self.get_roles_string(), # eg "Ens_RT, Ens_Info"