aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/collect.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/collect.py')
-rw-r--r--wqflask/wqflask/collect.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 891da437..87a96a26 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -21,9 +21,7 @@ from base.trait import retrieve_trait_info
from base.trait import jsonable
from base.data_set import create_dataset
-from utility.logger import getLogger
-logger = getLogger(__name__)
Redis = get_redis_conn()
@@ -48,8 +46,6 @@ def report_change(len_before, len_now):
if new_length:
flash("We've added {} to your collection.".format(
numify(new_length, 'new trait', 'new traits')))
- else:
- logger.debug("No new traits were added.")
@app.route("/collections/store_trait_list", methods=('POST',))
@@ -273,7 +269,10 @@ def view_collection():
trait_ob, dataset, get_qtl_info=True)
trait_obs.append(trait_ob)
- json_version.append(jsonable(trait_ob))
+ trait_json = jsonable(trait_ob)
+ trait_json['trait_info_str'] = trait_info_str(trait_ob)
+
+ json_version.append(trait_json)
collection_info = dict(
trait_obs=trait_obs,
@@ -285,6 +284,7 @@ def view_collection():
else:
return render_template(
"collections/view.html",
+ traits_json=json_version,
trait_info_str=trait_info_str,
**collection_info)