aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-16 19:48:11 +0300
committerAlexander Kabui2021-11-16 19:48:11 +0300
commit06fbab6427cadf7706da4e954874a7e5da1bd32d (patch)
treeacbcf87bdc9b9d4ca3a43e801d808d0a719143c4 /wqflask/base/data_set.py
parent4725a8c20d1d4209d59b3b113f00bbc467c5bd31 (diff)
downloadgenenetwork2-06fbab6427cadf7706da4e954874a7e5da1bd32d.tar.gz
pep8 formatting remove debug statements
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r--wqflask/base/data_set.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index cae1a2a7..37f35121 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -1263,7 +1263,7 @@ def query_table_timestamp(dataset_type: str):
# computation data and actions
query_update_time = f"""
- SELECT UPDATE_TIME FROM information_schema.tables
+ SELECT UPDATE_TIME FROM information_schfema.tables
WHERE TABLE_SCHEMA = 'db_webqtl_s'
AND TABLE_NAME = '{dataset_type}Data'
"""
@@ -1275,7 +1275,7 @@ def query_table_timestamp(dataset_type: str):
return date_time_obj.strftime(f)
-def generate_hash_file(dataset_name: str, dataset_timestamp: str):
+def generate_hash_file(dataset_name: str, dataset_type: str, dataset_timestamp: str):
"""given the trait_name generate a unique name for this"""
string_unicode = f"{dataset_name}{dataset_timestamp}".encode()
md5hash = hashlib.md5(string_unicode)
@@ -1317,5 +1317,4 @@ def fetch_cached_results(dataset_name: str, dataset_type: str):
return json.load(file_handler)
except FileNotFoundError:
- # take actions continue to fetch dataset results and fetch results
- pass
+ pass \ No newline at end of file