From 145d68e14b8fb747b43fb31bac61ece0dad10b5a Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 12 Oct 2011 01:09:43 +0200 Subject: probably need to look at the visit stats... --- src/meetingtools/apps/room/views.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/meetingtools') diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 3991495..33566fd 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -257,6 +257,7 @@ def _import_room(request,acc,r): if userlist.status_code() == 'ok': r['user_count'] = int(userlist.et.xpath("count(.//userdetails)")) r['host_count'] = int(userlist.et.xpath("count(.//userdetails/role[text() = 'host'])")) + modified = True #logging.debug(pformat(room)) @@ -280,6 +281,8 @@ def _import_room(request,acc,r): logging.debug("saving ... %s" % pformat(room)) room.save() + room.save() + return room @login_required -- cgit v1.1