summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-10 10:33:35 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-10 10:34:02 +0100
commit7023454904b0a030b37f9b3fe8ab66c942be77b4 (patch)
treee4d4ccac83a6975356166d5de746695a19df3951
parentc89ae37758b918354e4fb60820c554921ced88f2 (diff)
downloadpykolab-7023454904b0a030b37f9b3fe8ab66c942be77b4.tar.gz
Actually commit the auth_cache db purge_entries() deletion of stale records
-rw-r--r--pykolab/auth/ldap/auth_cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
index ba14262..35fbebb 100644
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -116,6 +116,7 @@ def set_entry(key, value):
def purge_entries(db):
db.query(Entry).filter(Entry.last_change <= (datetime.datetime.now() - datetime.timedelta(1))).delete()
+ db.commit()
def init_db():
"""