aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Sloan2014-09-29 19:52:40 +0000
committerZachary Sloan2014-09-29 19:52:40 +0000
commit85aa283c7489e6f55237d4dc85a26cea4f7a3c02 (patch)
treed7af893a195649b79b355e526db23eb6fc29fe24
parente437f6235b3c06de31719d52cf506103e969ebce (diff)
downloadgenenetwork2-85aa283c7489e6f55237d4dc85a26cea4f7a3c02.tar.gz
Found the problem that was causing several collections functions to not work
and fixed it
-rwxr-xr-xwqflask/wqflask/collect.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index a446a710..28d774c0 100755
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -268,6 +268,7 @@ def remove_traits():
@app.route("/collections/delete", methods=('POST',))
def delete_collection():
params = request.form
+ print("params:", params)
uc_id = params['uc_id']
uc = model.UserCollection.query.get(uc_id)
# Todo: For now having the id is good enough since it's so unique
@@ -316,9 +317,9 @@ def view_collection():
# dis=trait_ob.description))
#json_version.append(trait_ob.__dict__th)
- #collection_info = dict(trait_obs=trait_obs,
- # uc = uc)
- collection_info = dict(trait_obs=trait_obs)
+ collection_info = dict(trait_obs=trait_obs,
+ uc = uc)
+ #collection_info = dict(trait_obs=trait_obs)
if "json" in params:
print("json_version:", json_version)
return json.dumps(json_version)