Skip to content

Commit

Permalink
rename: Manager -> ConvertTaskRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutaj committed Sep 9, 2023
1 parent 0c0b2a2 commit 3de135b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def need_to_save(
)


class Manager:
class ConvertTaskRunner:
def __init__(
self,
problem_attr: dict[str, Any],
Expand Down
6 changes: 3 additions & 3 deletions statements_manager/src/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import toml

from statements_manager.src.manager import Manager
from statements_manager.src.convert_task_runner import ConvertTaskRunner
from statements_manager.src.recognize_mode import recognize_mode
from statements_manager.src.utils import resolve_path

Expand All @@ -23,7 +23,7 @@ def __init__(self, working_dir: str, ext: str) -> None:
self.template_attr = self._search_template_attr()
self._check_template()
self.pdf_attr_raw = self._search_pdf_attr_raw()
self.stmts_manager = Manager(
self.task_runner = ConvertTaskRunner(
problem_attr=self.problem_attr,
template_attr=self.template_attr,
pdf_attr_raw=self.pdf_attr_raw,
Expand All @@ -34,7 +34,7 @@ def run_problems(
) -> None:
"""問題文作成を実行する"""
problem_ids: list[str] = sorted(list(self.problem_attr.keys()))
self.stmts_manager.run(
self.task_runner.run(
problem_ids=problem_ids,
output_ext=self._ext,
make_problemset=make_problemset,
Expand Down

0 comments on commit 3de135b

Please sign in to comment.