diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-21 15:20:49 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-21 15:20:49 +0200 |
commit | dbfbb82fb9d13e94e794b676f5ea569f3d1afac3 (patch) | |
tree | d2687f6b37cd686f830176ef51b32bb207657a6f /meetingtools/apps | |
parent | d6ae29cd315ab02f2cb0197b4b96858bca6b78f5 (diff) |
acc fix
Diffstat (limited to 'meetingtools/apps')
-rw-r--r-- | meetingtools/apps/room/tasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |