aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2023-01-23 13:14:46 +0300
committerAlexander_Kabui2023-01-23 13:14:46 +0300
commit53d126fad45f53f2abe442b20f540c719f9b280e (patch)
tree4198900dbc16bd64f8d8a986e9fdb4e9674696f4
parentb83e41162918619c11c475602743a682b6abd4c3 (diff)
downloadgenenetwork2-53d126fad45f53f2abe442b20f540c719f9b280e.tar.gz
init query for last modification
-rw-r--r--wqflask/wqflask/correlation/correlation_file_generator.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/wqflask/wqflask/correlation/correlation_file_generator.py b/wqflask/wqflask/correlation/correlation_file_generator.py
index 36959229..80dc82d8 100644
--- a/wqflask/wqflask/correlation/correlation_file_generator.py
+++ b/wqflask/wqflask/correlation/correlation_file_generator.py
@@ -53,3 +53,24 @@ def get_probesetfreeze(conn, probes):
(probes,)
)
return cursor.fetchone()
+
+
+ def query_for_last_modification():
+
+ pass
+ """
+
+SELECT database_name,table_name,last_update FROM
+ mysql.innodb_table_stats a,
+ (SELECT database_name AS db_last_update_name,
+ max(last_update) AS db_last_update
+ FROM mysql.innodb_table_stats
+ WHERE database_name in ( "db_webqtl")
+ GROUP BY database_name ) AS b
+WHERE a.database_name = b.db_last_update_name
+
+ AND a.last_update = b.db_last_update ;
+
+"""
+
+