From 8bcca0c7547f3e954be36eb90dfd72100177fe5d Mon Sep 17 00:00:00 2001 From: kaldan007 Date: Fri, 14 Jan 2022 15:14:41 +0530 Subject: [PATCH] fix(proofread): note update file name changed --- pedurma/proofreading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pedurma/proofreading.py b/pedurma/proofreading.py index fa8cf86..e91d041 100644 --- a/pedurma/proofreading.py +++ b/pedurma/proofreading.py @@ -37,7 +37,7 @@ def get_note_pages(text_id, repo_path): def update_note_page(text_id, page: ProofreadNotePage, repo_path=None): new_manual_note_page = page.manual cur_pg_num = page.page_num - (repo_path / text_id / "manual_notes" / f"{cur_pg_num}.txt").write_text( + (repo_path / text_id / "manual_notes" / f"{cur_pg_num:04}.txt").write_text( new_manual_note_page, encoding="utf-8" ) print(f"INFO: {cur_pg_num} updated")