diff options
author | Zachary Sloan | 2012-11-29 18:44:01 -0600 |
---|---|---|
committer | Zachary Sloan | 2012-11-29 18:44:01 -0600 |
commit | 94300b4488aa334ced34981981ad5d0ecdec01d6 (patch) | |
tree | 2e1c67ccf85dc66b1d0100ca11d2c3378ee43ae0 /wqflask/dbFunction/webqtlDatabaseFunction.py | |
parent | 8540859f868a5fa6827f35d7fa5cc14e97360850 (diff) | |
download | genenetwork2-94300b4488aa334ced34981981ad5d0ecdec01d6.tar.gz |
Changed a number of variables (riset to group, db to dataset)
Put most of the code for cisLRS and transLRS searches into the class
CisTransLrsSearch (might change this name to something else later)
Simplified escape code for searches in do_search.py
Got search_results working again after some changes
Diffstat (limited to 'wqflask/dbFunction/webqtlDatabaseFunction.py')
-rwxr-xr-x | wqflask/dbFunction/webqtlDatabaseFunction.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/dbFunction/webqtlDatabaseFunction.py b/wqflask/dbFunction/webqtlDatabaseFunction.py index 8f923b8a..1e028ecc 100755 --- a/wqflask/dbFunction/webqtlDatabaseFunction.py +++ b/wqflask/dbFunction/webqtlDatabaseFunction.py @@ -80,9 +80,9 @@ def getAllSpecies(cursor=None): #function: retrieve specie's name info based on RISet ########################################################################### -def retrieveSpecies(cursor=None, RISet=None): +def retrieveSpecies(cursor=None, group=None): try: - cursor.execute("select Species.Name from Species, InbredSet where InbredSet.Name = '%s' and InbredSet.SpeciesId = Species.Id" % RISet) + cursor.execute("select Species.Name from Species, InbredSet where InbredSet.Name = '%s' and InbredSet.SpeciesId = Species.Id" % group) return cursor.fetchone()[0] except: return None |