Skip to content

Commit

Permalink
Merge pull request #73 from Esukhia/hot-fix
Browse files Browse the repository at this point in the history
fix(proofread)
  • Loading branch information
kaldan007 authored Jan 13, 2022
2 parents 15b97cb + aee7152 commit 587714e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pedurma/proofreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def get_note_page_img_link(text_id, pg_num, repo_path):

def get_note_page(text_id, cur_pg_num, repo_path=None):
manual_note = (
repo_path / text_id / "manual_notes" / f"{cur_pg_num}.txt"
repo_path / text_id / "manual_notes" / f"{cur_pg_num:04}.txt"
).read_text(encoding="utf-8")
google_note = (
repo_path / text_id / "google_notes" / f"{cur_pg_num}.txt"
repo_path / text_id / "google_notes" / f"{cur_pg_num:04}.txt"
).read_text(encoding="utf-8")
img_link = get_note_page_img_link(text_id, cur_pg_num, repo_path)

Expand All @@ -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}.txt").write_text(
new_manual_note_page, encoding="utf-8"
)
print(f"INFO: {cur_pg_num} updated")

0 comments on commit 587714e

Please sign in to comment.