Skip to content

Commit

Permalink
readd get_member_count for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 8, 2015
1 parent ccf084c commit e7108b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ipynbsrv/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ def get_members(self):
members.append(self.creator)
return list(set(members))

def get_member_count(self):
"""
Get the number of members in the group.
"""
return len(self.get_members())

def get_users(self):
"""
Get a list of regular members for this group.
Expand Down

0 comments on commit e7108b1

Please sign in to comment.