Update compare text layout
This commit is contained in:
parent
74a479359c
commit
49757b87c5
1 changed files with 5 additions and 1 deletions
|
@ -99,7 +99,11 @@ func HandleCompare(w http.ResponseWriter, r *http.Request) *types.AppError {
|
||||||
// maps to translate ids
|
// maps to translate ids
|
||||||
strains := make(map[string]string)
|
strains := make(map[string]string)
|
||||||
for _, strain := range *measurementsPayload.Strains {
|
for _, strain := range *measurementsPayload.Strains {
|
||||||
strains[fmt.Sprintf("%d", strain.ID)] = fmt.Sprintf("%s (%s)", strain.SpeciesName(), strain.StrainName)
|
var t string
|
||||||
|
if strain.TypeStrain {
|
||||||
|
t = "T"
|
||||||
|
}
|
||||||
|
strains[fmt.Sprintf("%d", strain.ID)] = fmt.Sprintf("%s %s %s", strain.SpeciesName(), strain.StrainName, t)
|
||||||
}
|
}
|
||||||
characteristics := make(map[string]string)
|
characteristics := make(map[string]string)
|
||||||
for _, characteristic := range *measurementsPayload.Characteristics {
|
for _, characteristic := range *measurementsPayload.Characteristics {
|
||||||
|
|
Reference in a new issue