diff options
author | Leif Johansson <leifj@sunet.se> | 2013-03-04 06:45:29 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2013-03-04 06:45:29 +0100 |
commit | 4508fb9cff19fb41f0b0ed5745661eb8f18b1e0b (patch) | |
tree | f60315734a53038995d1aecd0dda513a800b541a | |
parent | df7ff6df0795072e56a4147f908c41f557712a22 (diff) |
correct action name
-rw-r--r-- | meetingtools/apps/room/tasks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meetingtools/apps/room/tasks.py b/meetingtools/apps/room/tasks.py index 08cc349..a94ee54 100644 --- a/meetingtools/apps/room/tasks.py +++ b/meetingtools/apps/room/tasks.py @@ -169,7 +169,7 @@ def _user_meeting_folder(user,api): def import_user_rooms(acc, api, user): mf_sco_id = _user_meeting_folder(user, api) if mf_sco_id > 0: - r = api.request('sco_contents', {'filter-type': 'meeting', 'sco_id': mf_sco_id}) + r = api.request('sco-contents', {'filter-type': 'meeting', 'sco_id': mf_sco_id}) nr = 0 ne = 0 for row in r.et.xpath("//sco"): @@ -240,7 +240,7 @@ def import_recent_user_counts(): logging.info("%s: Checked usage for %d rooms since %s" % (acc,nr,then)) # look for sessions that are newer than the one we know about for a room -#@periodic_task(run_every=crontab(hour="*", minute="*/5", day_of_week="*")) +@periodic_task(run_every=crontab(hour="*", minute="*/5", day_of_week="*")) def import_sessions(): for room in Room.objects.all(): with ac_api_client(room.sco.acc) as api: @@ -257,7 +257,7 @@ def import_sessions(): room.save() break -#@periodic_task(run_every=crontab(hour="*", minutes="*/5", day_of_week="*")) +@periodic_task(run_every=crontab(hour="*", minutes="*/5", day_of_week="*")) def import_transactions(): for acc in ACCluster.objects.all(): then = datetime.now() - timedelta(seconds=600) |