Skip to content

Commit

Permalink
legacy hic step3 naming is accounted for
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Jan 21, 2020
1 parent da2b9e8 commit 0a6f938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chalicelib/checks/helpers/wfr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ def get_wfr_out(emb_file, wfr_name, key=None, all_wfrs=None, versions=None, md_q
return {'status': "no workflow in file with accepted version"}
my_workflows = sorted(my_workflows, key=lambda k: k['run_hours'])
same_type_wfrs = [i for i in my_workflows if i['run_type'] == wfr_name]

if not same_type_wfrs:
return {'status': "no workflow on file"}
last_wfr = same_type_wfrs[0]

# get metadata for the last wfr
if all_wfrs:
wfr = [i for i in all_wfrs if i['uuid'] == last_wfr['uuid']][0]
Expand Down

0 comments on commit 0a6f938

Please sign in to comment.