Skip to content

Commit

Permalink
fix: conditional error when tutor version is up to 15.0.0 (eduNEXT#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrrypg authored Jul 14, 2023
1 parent 9a771ed commit 8360e3f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def _get_hook_context_app(self, app_name):
"""Get the hook context for the given app name."""

tutor_version = version.parse(tutor_env.__version__)
if tutor_version > version.parse("15"):
return hooks.Contexts.app(app_name)
return hooks.Contexts.APP(app_name)
if tutor_version < version.parse("16"):
return hooks.Contexts.APP(app_name)
return hooks.Contexts.app(app_name)

def render(self, root: str, config: DrydockConfig) -> None:
"""Register drydock custom templates and render a tutor env."""
Expand Down

0 comments on commit 8360e3f

Please sign in to comment.