Skip to content

Commit

Permalink
Enable filters on from_url options
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Sep 30, 2024
1 parent cd19148 commit 2fc8209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/galaxy/tools/parameters/dynamic_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,9 @@ def get_field_by_name_for_value(self, field_name, value, trans, other_values):
return rval

def get_options(self, trans, other_values):

rval = []

def to_triple(values):
if len(values) == 2:
return [str(values[0]), str(values[1]), False]
Expand Down Expand Up @@ -875,8 +878,7 @@ def to_triple(values):
data = []

# We only support the very specific ["name", "value", "selected"] format for now.
return [to_triple(d) for d in data]
rval = []
rval = [to_triple(d) for d in data]
if (
self.file_fields is not None
or self.tool_data_table is not None
Expand Down

0 comments on commit 2fc8209

Please sign in to comment.