From 44c13f9fa3643cde01207cc4ff31ca45e2482f28 Mon Sep 17 00:00:00 2001 From: Ricardo Pedroso Date: Mon, 13 May 2013 21:29:37 +0100 Subject: [PATCH] fix missing variable --- gluon/contrib/redis_session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gluon/contrib/redis_session.py b/gluon/contrib/redis_session.py index ca7a1c6a..6e15b0ba 100644 --- a/gluon/contrib/redis_session.py +++ b/gluon/contrib/redis_session.py @@ -186,7 +186,8 @@ 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: - rtn = self.db.hmset("%s:%s" % (self.keyprefix, self.value), kwargs) + key = "%s:%s" % (self.keyprefix, self.value) + rtn = self.db.hmset(key, kwargs) if self.session_expiry: self.db.expire(key, self.session.expiry) return rtn