Commit 4d0ccaa6 authored by Ryan Herbert's avatar Ryan Herbert

SampleSet.py patient.py fix get_display_name uses

The method was used in places where it was not appropriate to to have an
html decorated name.

See #3595 #3622
parent c9cf9aa9
Pipeline #49401 passed with stages
in 5 minutes and 54 seconds
...@@ -46,7 +46,7 @@ class SampleSet(object): ...@@ -46,7 +46,7 @@ class SampleSet(object):
def get_config_urls(self, data): def get_config_urls(self, data):
configs = [] configs = []
for conf in data['conf_list']: for conf in data['conf_list']:
filename = "(%s %s)" % (self.get_display_name(data), conf['name']) filename = "(%s %s)" % (self.get_name(data), conf['name'])
if conf['fused_file'] is not None : if conf['fused_file'] is not None :
configs.append( configs.append(
str(A(conf['name'], str(A(conf['name'],
......
...@@ -32,7 +32,7 @@ class Patient(SampleSet): ...@@ -32,7 +32,7 @@ class Patient(SampleSet):
def get_info_dict(self, data): def get_info_dict(self, data):
name = self.get_display_name(data) name = self.get_display_name(data)
return dict(name = name, return dict(name = name,
filename = name, filename = self.get_name(data),
label = data['id_label'] + " (" + str(data['birth']) + ")", label = data['id_label'] + " (" + str(data['birth']) + ")",
info = data['info'] info = data['info']
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment