Commit ce906ecb authored by Ryan Herbert's avatar Ryan Herbert
Browse files

models/{generic,patient,run}.py add type ident to id string

parent 31a1667a
......@@ -26,4 +26,4 @@ class Generic(SampleSet):
def get_id_string(self, data):
name = data.name if data.name is not None else "Unnamed Sample Set"
return "%s (%d)" % (name, data.id)
return ":s %s (%d)" % (name, data.id)
......@@ -44,4 +44,4 @@ class Patient(SampleSet):
name = self.get_name(data)
birth = "[%s]" % str(data.birth)
id = "(%d)" % data.id
return "%s %s %s" % (birth, name, id)
return ":p %s %s %s" % (birth, name, id)
......@@ -43,4 +43,4 @@ class Run(SampleSet):
name = data.name
run_date = "[%s]" % str(data.run_date)
id = "(%d)" % data.id
return "%s %s %s" % (run_date, name, id)
return ":r %s %s %s" % (run_date, name, id)
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