Remove dead code from prior work in nametag collection, change to user_tname usage.

This commit is contained in:
Dannon Baker
2017-03-03 14:21:59 -05:00
parent a3ab46ef26
commit 861368ae1c
+2 -4
View File
@@ -393,12 +393,10 @@ class HDASerializer( # datasets._UnflattenedMetadataDatasetAssociationSerialize
"""
nametags = []
for tag in hda.tags:
if tag.tag.name.startswith('name.'):
nametags.append(tag.tag.name[5:])
if tag.user_tname.startswith('name.'):
nametags.append(tag.user_tname[5:])
return nametags
return [tag for tag in hda.tags if tag.tag.name.startswith('name.')]
def serialize_old_display_applications( self, hda, key, trans=None, **context ):
"""
Return dictionary containing old-style display app urls.