fixed bug in sessions2trach.py, issue 1111, thanks Szimszon
This commit is contained in:
1 parent
a5f883c2f0
commit
aa149d2e7b
2 files changed
+4
-3
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.2.1 (2012-10-28 12:01:03) stable
|
||||
Version 2.2.1 (2012-10-29 08:53:44) stable
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user