diff options
-rw-r--r-- | wqflask/wqflask/show_trait/export_trait_data.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/export_trait_data.py b/wqflask/wqflask/show_trait/export_trait_data.py index ae83907e..6660ce4e 100644 --- a/wqflask/wqflask/show_trait/export_trait_data.py +++ b/wqflask/wqflask/show_trait/export_trait_data.py @@ -1,3 +1,4 @@ +import datetime import simplejson as json from pprint import pformat as pf @@ -5,7 +6,6 @@ from functools import cmp_to_key from base.trait import create_trait from base import data_set - def export_sample_table(targs): sample_data = json.loads(targs['export_data']) @@ -63,6 +63,7 @@ def get_export_metadata(trait_metadata): ["Title: ", (this_trait.title if this_trait.title else "N/A")]) metadata.append( ["Journal: ", (this_trait.journal if this_trait.journal else "N/A")]) + metadata.append( ["Dataset Link: ", "http://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName=" + dataset.name]) else: @@ -73,6 +74,10 @@ def get_export_metadata(trait_metadata): metadata.append(["Symbol: ", this_trait.symbol]) metadata.append(["Dataset: ", dataset.name]) metadata.append(["Group: ", dataset.group.name]) + metadata.append( + ["Export Date: ", datetime.datetime.now().strftime("%B %d, %Y")]) + metadata.append( + ["Export Time: ", datetime.datetime.now().strftime("%H:%M GMT")]) metadata.append([]) |