[chronojump] Chronojump import shows on tmp SQL selects if debug mode active
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Chronojump import shows on tmp SQL selects if debug mode active
- Date: Fri, 8 Nov 2019 17:36:17 +0000 (UTC)
commit 19f20bccccdf4faf25e25fe5484e0256f1b351f5
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Nov 8 18:35:31 2019 +0100
Chronojump import shows on tmp SQL selects if debug mode active
src/chronojump-importer/chronojump_importer.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/chronojump-importer/chronojump_importer.py b/src/chronojump-importer/chronojump_importer.py
index 1cd80240..6de55557 100755
--- a/src/chronojump-importer/chronojump_importer.py
+++ b/src/chronojump-importer/chronojump_importer.py
@@ -215,6 +215,9 @@ class Database:
"join_clause": join_clause, "where": where_condition, "group_by": group_by}
sql = "SELECT {column_names} FROM {table_names_str} {join_clause} {where}
{group_by}".format(**format_data)
+ if(DEBUGTOFILE):
+ debugFile.write(str(sql) + "\n")
+
self._execute_query_and_log(sql, [])
results = self._cursor.fetchall()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]