Skip to content

Commit

Permalink
* 修复生成顺序与readList中顺序相反的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoZeyuan committed Mar 7, 2016
1 parent 92b1292 commit 162895a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def split(raw_book, surplus, index=1):
counter = 0
book = []
book_list = []
raw_book_list.reverse() # 后边要使用pop,所以提前反转一下,以保证顺序不变
while len(raw_book_list):
raw_book = raw_book_list.pop()
if not raw_book.epub.answer_count:
Expand Down

0 comments on commit 162895a

Please sign in to comment.