Skip to content

Commit

Permalink
Add support for str passed as 'fullpath'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Jun 21, 2024
1 parent 02b4744 commit 16ce5b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edc_qareports/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def read_unmanaged_model_sql(
) -> str:
if not fullpath:
fullpath = Path(settings.BASE_DIR) / app_name / "models" / "unmanaged" / filename
else:
fullpath = Path(fullpath)

parsed_sql = []
with fullpath.open("r") as f:
Expand Down

0 comments on commit 16ce5b3

Please sign in to comment.