Fix for chapter repeats.
This commit is contained in:
@@ -367,7 +367,7 @@ def rewrite_chapter_task(run_id, project_path, book_folder, chap_num, instructio
|
||||
if result and result[0]:
|
||||
new_text, summary = result
|
||||
for ch in ms:
|
||||
if ch.get('num') == chap_num:
|
||||
if str(ch.get('num')) == str(chap_num):
|
||||
ch['content'] = new_text
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user