From 2c01939ef5ae0adad4178b592ecf0267b3fe6c81 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 23 Jul 2018 09:47:31 +0200 Subject: [PATCH] [Docs] Add docstring to User.active_sessions --- calsocial/models.py | 3 +++ 1 file changed, 3 insertions(+) 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