zz 4 سال پیش
والد
کامیت
8a9509e3f4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ydyspider/mysql.py

+ 1 - 1
ydyspider/mysql.py

@@ -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()