Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins committed Sep 15, 2023
1 parent cc87c18 commit 24cf489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparsezoo/objects/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(
self._default_recipe_name = self._RECIPE_DEFAULT_NAME
custom_default = stub_params.get("recipe_type") or stub_params.get("recipe")
if custom_default is not None:
self._default_recipe_name = "recipe_" + custom_default + ".md"
self._default_recipe_name = "recipe_" + custom_default

@property
def recipes(self) -> List:
Expand All @@ -62,7 +62,7 @@ def default(self) -> File:
:return: The default recipe in the recipe list
"""
for recipe in self._recipes:
if recipe.name == self._default_recipe_name:
if recipe.name.startswith(self._default_recipe_name):
return recipe

# fallback to first recipe in list
Expand Down

0 comments on commit 24cf489

Please sign in to comment.