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