##// END OF EJS Templates
Fixes for notebook session manager
Thomas Kluyver -
Show More
@@ -133,7 +133,7 b' class SessionManager(LoggingConfigurable):'
133
133
134 query = "SELECT * FROM session WHERE %s" % (' AND '.join(conditions))
134 query = "SELECT * FROM session WHERE %s" % (' AND '.join(conditions))
135
135
136 self.cursor.execute(query, kwargs.values())
136 self.cursor.execute(query, list(kwargs.values()))
137 model = self.cursor.fetchone()
137 model = self.cursor.fetchone()
138 if model is None:
138 if model is None:
139 q = []
139 q = []
@@ -170,7 +170,7 b' class SessionManager(LoggingConfigurable):'
170 raise TypeError("No such column: %r" % column)
170 raise TypeError("No such column: %r" % column)
171 sets.append("%s=?" % column)
171 sets.append("%s=?" % column)
172 query = "UPDATE session SET %s WHERE session_id=?" % (', '.join(sets))
172 query = "UPDATE session SET %s WHERE session_id=?" % (', '.join(sets))
173 self.cursor.execute(query, kwargs.values() + [session_id])
173 self.cursor.execute(query, list(kwargs.values()) + [session_id])
174
174
175 @staticmethod
175 @staticmethod
176 def row_factory(cursor, row):
176 def row_factory(cursor, row):
General Comments 0
You need to be logged in to leave comments. Login now