summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/apps/room/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 6df49fe..ba1c8d3 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -349,8 +349,13 @@ def _goto(request,room,clean=True,promote=False):
room.lastvisited = datetime.now()
if clean:
- session_info = api.request('report-meeting-sessions',{'sco-id':room.sco_id})
- room.user_count = _nusers(session_info)
+ userlist = api.request('meeting-usermanager-user-list',{'sco-id': room.sco_id},False)
+ room.user_count = 0
+ if userlist.status_code() == 'ok':
+ room.user_count = userlist.et.xpath("count(.//userdetails)")
+
+ #session_info = api.request('report-meeting-sessions',{'sco-id':room.sco_id})
+ #room.user_count = _nusers(session_info)
logging.debug("---------- nusers: %s" % room.user_count)
room.save()
if room.self_cleaning: