mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
save progress more frequently (#64)
This commit is contained in:
parent
5d2b174f8e
commit
4b21d6f523
@ -192,6 +192,8 @@ class BEPUB:
|
||||
self.p_to_save.append(new_p.text)
|
||||
p.insert_after(new_p)
|
||||
index += 1
|
||||
if index % 50 == 0:
|
||||
self.save_progress()
|
||||
if IS_TEST and index > TEST_NUM:
|
||||
break
|
||||
i.content = soup.prettify().encode()
|
||||
|
Loading…
x
Reference in New Issue
Block a user