From dbfbb82fb9d13e94e794b676f5ea569f3d1afac3 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Sun, 21 Oct 2012 15:20:49 +0200 Subject: acc fix --- meetingtools/apps/room/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meetingtools/apps') diff --git a/meetingtools/apps/room/tasks.py b/meetingtools/apps/room/tasks.py index d5148b6..a4828dd 100644 --- a/meetingtools/apps/room/tasks.py +++ b/meetingtools/apps/room/tasks.py @@ -203,8 +203,8 @@ def import_recent_user_counts(): @periodic_task(run_every=crontab(hour="*", minute="*", day_of_week="*")) def import_sessions(): for room in Room.objects.all(): - with ac_api_client(room.acc) as api: - p = {'sco-id': room.sco_id,'sort-date-created': 'asc'} + with ac_api_client(room.sco.acc) as api: + p = {'sco-id': room.sco.sco_id,'sort-date-created': 'asc'} if room.lastvisited is not None: last = room.lastvisited last.replace(microsecond=0) -- cgit v1.1