summaryrefslogtreecommitdiff
path: root/meetingtools/apps/sco
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-31 00:11:52 +0100
committerLeif Johansson <leifj@sunet.se>2012-10-31 00:11:52 +0100
commitea0442b4797fdc34414d1b0c3153298e214766f6 (patch)
treef2b36f2a58c69a50308c67af345dd7d2f6401083 /meetingtools/apps/sco
parent0d218d69284497581c869ecc1606cfd173e87745 (diff)
stats in DB
Diffstat (limited to 'meetingtools/apps/sco')
-rw-r--r--meetingtools/apps/sco/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meetingtools/apps/sco/models.py b/meetingtools/apps/sco/models.py
index 325baae..3607579 100644
--- a/meetingtools/apps/sco/models.py
+++ b/meetingtools/apps/sco/models.py
@@ -1,6 +1,7 @@
"""
Abstract sco objects and utility methods
"""
+import logging
__author__ = 'leifj'
@@ -53,7 +54,7 @@ def get_sco(acc,sco_id):
if sco is None:
sco,created = ACObject.objects.get_or_create(acc=acc,sco_id=sco_id)
assert sco is not None
- cache.set(key,sco)
+ cache.set(key,sco,30)
return sco
def get_sco_shortcuts(acc,shortcut_id):