diff --git a/calsocial/models.py b/calsocial/models.py index c5802f0..61fde67 100644 --- a/calsocial/models.py +++ b/calsocial/models.py @@ -229,6 +229,9 @@ class User(db.Model, UserMixin): @property def active_sessions(self): + """The list of active sessions of this user + """ + return cache.get(self.session_list_key) or [] @active_sessions.setter