Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 30, 2025
1 parent 304d3bf commit 4e094da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions conda_metadata_app/pages/main_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,9 @@ def disable_button(query):
maintainers = []
if recipe := data.get("rendered_recipe", {}).get("recipe"): # recipe.yaml
recipe_format = f"recipe.yaml v{recipe.get("schema_version", 1)}"
rattler_build_version = data.get("rendered_recipe").get("system_tools").get("rattler-build", "")
rattler_build_version = (
data.get("rendered_recipe").get("system_tools").get("rattler-build", "")
)
built_with = f"`rattler-build {rattler_build_version}`"
else:
rendered_recipe = data["rendered_recipe"]
Expand All @@ -1145,10 +1147,9 @@ def disable_button(query):
built_with = f"`conda-build {conda_build_version}`"
if conda_version:
built_with += f", `conda {conda_version}`"
extra = (
data.get("rendered_recipe", {}).get("extra", {})
or data.get("rendered_recipe", {}).get("recipe", {}).get("extra", {})
)
extra = data.get("rendered_recipe", {}).get("extra", {}) or data.get(
"rendered_recipe", {}
).get("recipe", {}).get("extra", {})
for user in extra.get("recipe-maintainers", ["*N/A*"]):
if user == "*N/A*":
maintainers.append(user)
Expand Down

0 comments on commit 4e094da

Please sign in to comment.