aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Yan2016-09-29 23:39:05 +0000
committerLei Yan2016-09-29 23:39:05 +0000
commita14887e0c548e5d6b33a2f05092f82a9d4931b13 (patch)
tree44e83e8fff27505dc79e5f83eef93df50e3ec472
parent55b332d6f03f20054902dabb7beeaaebef2139ac (diff)
downloadgenenetwork2-a14887e0c548e5d6b33a2f05092f82a9d4931b13.tar.gz
Fix global search "il6" for "Internal Server Error". Add single quotes into MySQL query.
-rw-r--r--wqflask/base/trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 900e050c..32032ba7 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -363,7 +363,7 @@ class GeneralTrait(object):
FROM
Homologene, Species, InbredSet
WHERE
- Homologene.GeneId =%s AND
+ Homologene.GeneId ='%s' AND
InbredSet.Name = '%s' AND
InbredSet.SpeciesId = Species.Id AND
Species.TaxonomyId = Homologene.TaxonomyId