fixed bug in sessions2trach.py, issue 1111, thanks Szimszon

This commit is contained in:
mdipierro
2012-10-29 08:53:50 -05:00
parent a5f883c2f0
commit aa149d2e7b
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-10-28 12:01:03) stable
Version 2.2.1 (2012-10-29 08:53:44) stable
+3 -2
View File
@@ -95,8 +95,9 @@ class SessionSetDb(SessionSet):
"""Return list of SessionDb instances for existing sessions."""
sessions = []
table = current.response.session_db_table
for row in table._db(table.id > 0).select():
sessions.append(SessionDb(row))
if table:
for row in table._db(table.id > 0).select():
sessions.append(SessionDb(row))
return sessions