zhaoyang 2 년 전
부모
커밋
580e5691d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()