Skip to content

Commit

Permalink
Remove unused statements in job search function
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 26, 2024
1 parent 9f467d4 commit a0f69c5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def replace_dataset_ids(path, key, value):
)

for k, v in wildcard_param_dump.items():
wildcard_value = None
if v == {"__class__": "RuntimeValue"}:
# TODO: verify this is always None. e.g. run with runtime input input
v = None
Expand All @@ -400,10 +399,8 @@ def replace_dataset_ids(path, key, value):
continue
elif k == "chromInfo" and "?.len" in v:
continue
wildcard_value = '"%?.len"'
if not wildcard_value:
value_dump = json.dumps(v, sort_keys=True)
wildcard_value = value_dump.replace('"id": "__id_wildcard__"', '"id": %')
value_dump = json.dumps(v, sort_keys=True)
wildcard_value = value_dump.replace('"id": "__id_wildcard__"', '"id": %')
a = aliased(JobParameter)
if value_dump == wildcard_value:
subq = subq.join(a).where(
Expand Down Expand Up @@ -601,9 +598,6 @@ def replace_dataset_ids(path, key, value):
continue
elif k == "chromInfo" and "?.len" in v:
continue
wildcard_value = '"%?.len"'
if not wildcard_value:
wildcard_value = json.dumps(v, sort_keys=True).replace('"id": "__id_wildcard__"', '"id": %')
a = aliased(model.JobParameter)
job_parameter_conditions.append(
and_(model.Job.id == a.job_id, a.name == k, a.value == json.dumps(v, sort_keys=True))
Expand Down

0 comments on commit a0f69c5

Please sign in to comment.