[Docs] Add docstring to User.active_sessions

This commit is contained in:
Gergely Polonkai 2018-07-23 09:47:31 +02:00
parent e45726fd7c
commit 2c01939ef5

View File

@ -229,6 +229,9 @@ class User(db.Model, UserMixin):
@property @property
def active_sessions(self): def active_sessions(self):
"""The list of active sessions of this user
"""
return cache.get(self.session_list_key) or [] return cache.get(self.session_list_key) or []
@active_sessions.setter @active_sessions.setter