Commit aceb72df authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud

generic.py run.py use display_name for get_info_dict

See #3533
parent 613d314b
Pipeline #44122 passed with stages
in 6 minutes and 7 seconds
......@@ -12,7 +12,7 @@ class Generic(SampleSet):
return filter(lambda row : vidjil_utils.advanced_filter(row['string'], filter_str), data)
def get_info_dict(self, data):
return dict(name = "set : %s" % self.get_display_name(data),
return dict(name = self.get_display_name(data),
filename = "sample_set_%d" % data['id'],
label = "",
info = ""
......
......@@ -30,7 +30,7 @@ class Run(SampleSet):
return filter(lambda row : vidjil_utils.advanced_filter(row['string'], filter_str), data)
def get_info_dict(self, data):
return dict(name = "run : " + data['name'] + " (" + str(data['run_date']) + ")",
return dict(name = self.get_display_name(data),
filename = "run : " + data['name'] + "_" + str(data['run_date']),
label = data['id_label'] + " (" + str(data['run_date']) + ")",
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