Skip to content

Commit

Permalink
remove default options from functions
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Aug 14, 2024
1 parent bdd6d20 commit 8693aae
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions daras_ai_v2/workflow_url_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,19 @@ def get_published_run_options(
pr.updated_at, # newer first
),
)

options = {
# root recipe
page_cls.get_root_published_run().get_app_url(): "Default",
} | {
options_dict = {
pr.get_app_url(): get_title_breadcrumbs(page_cls, pr.saved_run, pr).h1_title
for pr in saved_runs_and_examples
}

options = (
options_dict
if page_cls.workflow == Workflow.FUNCTIONS
else {
# root recipe
page_cls.get_root_published_run().get_app_url(): "Default",
}
| options_dict
)

return options

0 comments on commit 8693aae

Please sign in to comment.