fixed redis_session.py, thanks @Giovanni for pointing

This commit is contained in:
niphlod committed 2013-09-09 21:32:26 +02:00
1 parent 69d5fb1d64
commit 5951ce2aef
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -185,7 +185,8 @@ class MockQuery(object):
if self.with_lock:
acquire_lock(self.db, key + ':lock', self.value)
rtn = self.db.hgetall(key)
rtn['update_record'] = self.update # update record support
if rtn:
rtn['update_record'] = self.update # update record support
return [Storage(rtn)] if rtn else []
elif self.op == 'ge' and self.field == 'id' and self.value == 0:
#means that someone wants the complete list