Skip to content

Commit

Permalink
fix: Inline links for material names
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Aug 15, 2024
1 parent da73314 commit 428070d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions samplesheets/assayapps/generic/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ def _link_from_comment(cell, header, top_header, target_cols, url):
return True
# Special case for Material Names
if (
top_header['value']
in th.DATA_FILE_HEADERS + th.MATERIAL_NAME_HEADERS
) and (header['value'] == 'Name'):
(
top_header['value']
in th.DATA_FILE_HEADERS + th.MATERIAL_NAME_HEADERS
)
and top_header['value'].lower() in target_cols
and (header['value'] == 'Name')
):
cell['link'] = f"{url}/{cell['value']}"
return True
# Handle everything else
Expand Down

0 comments on commit 428070d

Please sign in to comment.