aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r--[-rwxr-xr-x]wqflask/maintenance/__init__.py0
-rw-r--r--[-rwxr-xr-x]wqflask/maintenance/gen_select_dataset.py15
-rw-r--r--[-rwxr-xr-x]wqflask/maintenance/generate_probesetfreeze_file.py2
-rw-r--r--[-rwxr-xr-x]wqflask/maintenance/get_group_samplelists.py0
-rw-r--r--[-rwxr-xr-x]wqflask/maintenance/print_benchmark.py0
5 files changed, 9 insertions, 8 deletions
diff --git a/wqflask/maintenance/__init__.py b/wqflask/maintenance/__init__.py
index e69de29b..e69de29b 100755..100644
--- a/wqflask/maintenance/__init__.py
+++ b/wqflask/maintenance/__init__.py
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py
index b1459bf3..d39bf4a5 100755..100644
--- a/wqflask/maintenance/gen_select_dataset.py
+++ b/wqflask/maintenance/gen_select_dataset.py
@@ -5,6 +5,7 @@ It needs to be run manually when database has been changed.
"""
+
# Copyright (C) University of Tennessee Health Science Center, Memphis, TN.
#
# This program is free software: you can redistribute it and/or modify it
@@ -36,11 +37,11 @@ from __future__ import print_function, division
#print("cdict is:", cdict)
import sys
-import zach_settings # no hard code paths!
+# import zach_settings # no hard code paths!
-import MySQLdb
+# import MySQLdb
-import simplejson as json
+# import simplejson as json
import urlparse
@@ -54,8 +55,8 @@ from pprint import pformat as pf
#conn = Engine.connect()
-
-
+print('ERROR: This conversion is now OBSOLETE as the menu gets built from the database in Javascript using GN_SERVER instead!')
+sys.exit()
def parse_db_uri(db_uri):
@@ -257,7 +258,7 @@ def build_datasets(species, group, type_name):
def main():
"""Generates and outputs (as json file) the data for the main dropdown menus on the home page"""
- parse_db_uri(zach_settings.DB_URI)
+ parse_db_uri(zach_settings.SQL_URI)
species = get_species()
groups = get_groups(species)
@@ -296,6 +297,6 @@ def _test_it():
#print("build_datasets:", pf(datasets))
if __name__ == '__main__':
- Conn = MySQLdb.Connect(**parse_db_uri(zach_settings.DB_URI))
+ Conn = MySQLdb.Connect(**parse_db_uri(zach_settings.SQL_URI))
Cursor = Conn.cursor()
main()
diff --git a/wqflask/maintenance/generate_probesetfreeze_file.py b/wqflask/maintenance/generate_probesetfreeze_file.py
index 84319a21..b7b2dc8e 100755..100644
--- a/wqflask/maintenance/generate_probesetfreeze_file.py
+++ b/wqflask/maintenance/generate_probesetfreeze_file.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function, division
import sys
-sys.path.insert(0, "..")
+# sys.path.insert(0, "..") - why?
import os
import collections
diff --git a/wqflask/maintenance/get_group_samplelists.py b/wqflask/maintenance/get_group_samplelists.py
index 2d48ce78..2d48ce78 100755..100644
--- a/wqflask/maintenance/get_group_samplelists.py
+++ b/wqflask/maintenance/get_group_samplelists.py
diff --git a/wqflask/maintenance/print_benchmark.py b/wqflask/maintenance/print_benchmark.py
index ae327cf3..ae327cf3 100755..100644
--- a/wqflask/maintenance/print_benchmark.py
+++ b/wqflask/maintenance/print_benchmark.py