From 8fe821ed0ca51cd0dbf21b495977b7f4640fd983 Mon Sep 17 00:00:00 2001 From: niphlod Date: Tue, 20 Aug 2013 20:59:14 +0200 Subject: [PATCH] standardized keyprefix --- gluon/contrib/redis_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/contrib/redis_session.py b/gluon/contrib/redis_session.py index 55cd7f9a..2d50d35c 100644 --- a/gluon/contrib/redis_session.py +++ b/gluon/contrib/redis_session.py @@ -198,7 +198,7 @@ class MockQuery(object): def update(self, **kwargs): #means that the session has been found and needs an update if self.op == 'eq' and self.field == 'id' and self.value: - key = "%s:%s" % (self.keyprefix, self.value) + key = self.keyprefix + ':' + str(self.value) with self.db.pipeline() as pipe: pipe.hmset(key, kwargs) if self.session_expiry: