diff options
author | zsloan | 2020-07-21 16:52:17 -0500 |
---|---|---|
committer | zsloan | 2020-07-21 16:52:17 -0500 |
commit | 1775b713478bff182e0047dd5f92b751d7e68a20 (patch) | |
tree | 2fd98397986358f63e8a009b6c8ab92ad39bd7b6 /wqflask | |
parent | 811c55fb8614725e89b7a9604b6f97e4f0bc65da (diff) | |
download | genenetwork2-1775b713478bff182e0047dd5f92b751d7e68a20.tar.gz |
Fixed issue that caused group codes to be wrong sometimes
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/base/trait.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |