Show More
@@ -133,7 +133,7 b' class SessionManager(LoggingConfigurable):' | |||
|
133 | 133 | |
|
134 | 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 | 137 | model = self.cursor.fetchone() |
|
138 | 138 | if model is None: |
|
139 | 139 | q = [] |
@@ -170,7 +170,7 b' class SessionManager(LoggingConfigurable):' | |||
|
170 | 170 | raise TypeError("No such column: %r" % column) |
|
171 | 171 | sets.append("%s=?" % column) |
|
172 | 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 | 175 | @staticmethod |
|
176 | 176 | def row_factory(cursor, row): |
General Comments 0
You need to be logged in to leave comments.
Login now