zhaoyang 2 年之前
父節點
當前提交
efca3015e0
共有 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 = {} and sequence >={}'.format(bid,start)
+        sql = 'select id from zy_book_chapters  where bid = {} and sequence >={} order by sequence'.format(bid,start)
         with self.__conn.cursor() as cursor:
             cursor.execute(sql)
             result = cursor.fetchall()