|
@@ -65,7 +65,7 @@ class msyqlHelper(object):
|
|
|
self.conn.close()
|
|
|
def getByZwSource(self, bid):
|
|
|
sql = 'select id from books where zw_id=%s'
|
|
|
- with self.__conn.cursor() as cursor:
|
|
|
+ with self.conn.cursor() as cursor:
|
|
|
cursor.execute(sql, (bid, ))
|
|
|
result = cursor.fetchone()
|
|
|
self.__conn.commit()
|