fixed redis_session.py, thanks @Giovanni for pointing

This commit is contained in:
niphlod
2013-09-09 21:32:26 +02:00
parent 69d5fb1d64
commit 5951ce2aef
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -915,7 +915,7 @@ class Session(Storage):
return
(record_id, sep, unique_key) = response.session_id.partition(':')
if record_id.isdigit() and long(record_id)>1:
if record_id.isdigit() and long(record_id)>0:
new_unique_key = web2py_uuid()
row = table(record_id)
if row and row.unique_key==unique_key: