Skip to content

Commit

Permalink
Merge pull request #339 from vshekar/dewar-tree-puckname-fix
Browse files Browse the repository at this point in the history
Fixed displaying puck name with proposal number
  • Loading branch information
vshekar authored Oct 24, 2023
2 parents a5bd381 + 060b810 commit f81b72d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/dewar_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ def add_samples_to_puck_tree(
)
return

parentItem.setText(f"{index_label} pass-{sample['proposalID']}")
proposal_id_text = f"(pass-{sample['proposalID']})"
if not parentItem.text().endswith(proposal_id_text):
parentItem.setText(f"{parentItem.text()} -- {proposal_id_text}")

position_s = f'{j+1}-{sample.get("name", "")}'
item = QtGui.QStandardItem(
Expand Down

0 comments on commit f81b72d

Please sign in to comment.