zhaoyang 2 éve
szülő
commit
580e5691d1
1 módosított fájl, 1 hozzáadás és 1 törlés
  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()