zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
580e5691d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      content_spider/mysqlHelper.py

+ 1 - 1
content_spider/mysqlHelper.py

@@ -187,7 +187,7 @@ FROM zy_book_chapters where   bid = {} ORDER BY sequence desc  LIMIT 1
         return result
     
     def get_simple_chapter_list(self,bid,start):
-        sql = 'select id from zy_book_chapters order by sequence where bid = {} where sequence >={}'.format(bid,start)
+        sql = 'select id from zy_book_chapters order by sequence where bid = {} and sequence >={}'.format(bid,start)
         with self.__conn.cursor() as cursor:
             cursor.execute(sql)
             result = cursor.fetchall()