aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2019-07-23 11:24:56 -0500
committerzsloan2019-07-23 11:24:56 -0500
commit5f5adb62bf13ace887c03522b0b8e83181cd6503 (patch)
treec585a3d65a9f2e2e2be9932039ed28b4e42b38bc /wqflask/base
parent60ae84f8bf2f68846ddeb41bba073b11747bc5e7 (diff)
downloadgenenetwork2-5f5adb62bf13ace887c03522b0b8e83181cd6503.tar.gz
Added change to automatically update datasets list using rest api instead of json file
Removed option to edit certain html pages, like news, policies, etc
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/data_set.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index d766e284..41de8492 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -46,6 +46,8 @@ from utility import chunks
from utility import gen_geno_ob
from utility.tools import locate, locate_ignore_error, flat_files
+from wqflask.api import gen_menu
+
from maintenance import get_group_samplelists
from MySQLdb import escape_string as escape
@@ -92,7 +94,7 @@ Publish or ProbeSet. E.g.
"""
self.datasets = {}
if USE_GN_SERVER:
- data = menu_main()
+ data = gen_menu.gen_dropdown_json()
else:
file_name = "wqflask/static/new/javascript/dataset_menu_structure.json"
with open(file_name, 'r') as fh: