def set_active(self, user_id, active):
with self.connection:
return self.cursor.execute("UPDATE `users` SET `active` = ? WHERE `user_id` = ?", (active, user_id))
return self.cursor.execute("UPDATE users SET active = ? WHERE user_id = ?", (active, user_id))
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.