From 1775b713478bff182e0047dd5f92b751d7e68a20 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 21 Jul 2020 16:52:17 -0500 Subject: Fixed issue that caused group codes to be wrong sometimes --- wqflask/base/trait.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index f9da7b87..7666348e 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -152,7 +152,7 @@ class GeneralTrait(object): '''Return a text formatted alias''' alias = 'Not available' - if self.alias: + if getattr(self, "alias", None): alias = string.replace(self.alias, ";", " ") alias = string.join(string.split(alias), ", ") @@ -412,6 +412,7 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False): Phenotype.Id = PublishXRef.PhenotypeId AND Publication.Id = PublishXRef.PublicationId AND PublishXRef.InbredSetId = PublishFreeze.InbredSetId AND + PublishXRef.InbredSetId = InbredSet.Id AND PublishFreeze.Id = %s """ % (trait.name, dataset.id) -- cgit v1.2.3