From 85aa283c7489e6f55237d4dc85a26cea4f7a3c02 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Mon, 29 Sep 2014 19:52:40 +0000 Subject: Found the problem that was causing several collections functions to not work and fixed it --- wqflask/wqflask/collect.py | 7 ++++--- 1 file 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) -- cgit v1.2.3