about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/collect.py2
-rw-r--r--wqflask/wqflask/search_results.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 74013239..7e3337a0 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -214,6 +214,8 @@ def collections_new():
     if "create_new" in params:
         logger.debug("in create_new")
         collection_name = params['new_collection']
+        if collection_name.strip() == "":
+            collection_name = datetime.datetime.utcnow().strftime('Collection_%b_%d_%H:%M')
         return create_new(collection_name)
     elif "add_to_existing" in params:
         logger.debug("in add to existing")
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index 12a69bc3..278bf930 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -112,7 +112,7 @@ views.py).
             trait_dict['hmac'] = user_manager.data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name))
             if this_trait.dataset.type == "ProbeSet":
                 trait_dict['symbol'] = this_trait.symbol
-                trait_dict['description'] = insert_newlines(this_trait.description_display)
+                trait_dict['description'] = this_trait.description_display
                 trait_dict['location'] = this_trait.location_repr
                 trait_dict['mean'] = "N/A"
                 trait_dict['additive'] = "N/A"