Skip to content

Commit

Permalink
snake case file handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema committed Dec 13, 2024
1 parent dc67a77 commit 3da309b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asreviewcontrib/makita/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,20 @@ def render_template(self):
"""Main function to render the template."""
template_class = self._get_template_class(self.args.name.lower())
fp_custom_template = self._get_custom_template(self.args.template)
fileHandler = FileHandler(self.args.overwrite)
file_handler = FileHandler(self.args.overwrite)

job = template_class(
datasets=self.datasets,
fp_template=fp_custom_template,
file_handler=fileHandler,
file_handler=file_handler,
paths=self.paths,
**self._get_template_args(),
).render()

job = self._convert_job_for_platform(job)

fileHandler.add_file(content=job, export_fp=self.paths.job_file_path)
fileHandler.print_summary()
file_handler.add_file(content=job, export_fp=self.paths.job_file_path)
file_handler.print_summary()

def _convert_job_for_platform(self, job):
if self.paths.job_file_path.suffix == ".bat":
Expand Down

0 comments on commit 3da309b

Please sign in to comment.