diff options
author | Lei Yan | 2014-08-21 18:56:29 +0000 |
---|---|---|
committer | Lei Yan | 2014-08-21 18:56:29 +0000 |
commit | 7ff0dcda04dc853620bb5162180f18db596f1574 (patch) | |
tree | 0d4c0160607badcc800e6ee27cc32d5a4bbbd04c /wqflask/base/trait.py | |
parent | 41fb705cc57c94276573fd19b50c91c095fe76a9 (diff) | |
download | genenetwork2-7ff0dcda04dc853620bb5162180f18db596f1574.tar.gz |
Committer: Lei Yan <lei@penguin.uthsc.edu>
On branch master
Diffstat (limited to 'wqflask/base/trait.py')
-rwxr-xr-x | wqflask/base/trait.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 2bbd1f2a..71691899 100755 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -315,7 +315,7 @@ class GeneralTrait(object): ProbeSet.Name = '%s' """ % (escape(display_fields_string), escape(self.dataset.name), - escape(self.name)) + escape(str(self.name))) trait_info = g.db.execute(query).fetchone() #XZ, 05/08/2009: We also should use Geno.Id to find marker instead of just using Geno.Name # to avoid the problem of same marker name from different species. @@ -340,10 +340,6 @@ class GeneralTrait(object): """ % (string.join(self.dataset.display_fields,','), self.dataset.type, self.name) trait_info = g.db.execute(query).fetchone() - - - #self.cursor.execute(query) - #trait_info = self.cursor.fetchone() if trait_info: self.haveinfo = True @@ -440,8 +436,6 @@ class GeneralTrait(object): PublishXRef.InbredSetId = PublishFreeze.InbredSetId AND PublishFreeze.Id =%s """, (self.name, self.dataset.id)).fetchone() - #self.cursor.execute(query) - #trait_qtl = self.cursor.fetchone() if trait_qtl: self.locus, self.lrs = trait_qtl else: |