Skip to content

Commit

Permalink
switched to f string per comment
Browse files Browse the repository at this point in the history
  • Loading branch information
baophamtd committed Oct 19, 2021
1 parent 0350ac0 commit de846a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_code_generator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main(
input_name: str = input_file.name
input_text: str = input_file.read()
if model_file:
model_path = Path(model_file + ".py")
model_path = Path(f"{model_file}.py")
else:
model_path = Path("models.py")
return generate_code(input_name, input_text, output_dir, template_dir, model_path)
Expand Down

0 comments on commit de846a2

Please sign in to comment.