Skip to content

Commit 2e20596

Browse files
committed
Merge branch 'testing' of https://github.com/a-hurst/klibs into testing
2 parents 67ffd61 + 9bb6e14 commit 2e20596

File tree

5 files changed

+409
-192
lines changed

5 files changed

+409
-192
lines changed

docs/CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ New Features:
8787
* Enabled HiDPI support on Windows 10, allowing experiments to run at the true
8888
desktop resolution (e.g. 1920x1080) instead of the scaled desktop resolution
8989
(e.g. 1600x900).
90+
* Added export logging to prevent re-exporting identical data files when
91+
repeatedly calling ``klibs export`` for a project. With this change,
92+
duplicate data files (e.g. ``p1.2022-11-19_1.txt`` and
93+
``p1.2022-11-19_2.txt``) will only occur if the database is rebuilt,
94+
and new data is collected and exported that results in an identical file name
95+
to an existing data file from before the rebuild. These changes do not affect
96+
single-file (``klibs export -c``) exporting.
9097

9198

9299
API Changes:

klibs/KLConstants.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@
108108
SQL_BIN = 'blob'
109109
SQL_NULL = 'null'
110110
SQL_COL_DELIM_STR = "`, `"
111-
ID = "id"
112-
DB_SUPPLY_PATH = "s"
113-
DB_CREATE = "c"
114111
QUERY_INS = "insert"
115112
QUERY_UPD = "update"
116113
QUERY_DEL = "delete"
117114
QUERY_SEL = "select"
115+
DB_INTERNAL_TABLES = [
116+
'sqlite_sequence',
117+
'session_info',
118+
'export_history',
119+
]
118120

119121
# AudioResponse Constants
120122
AR_CHUNK_SIZE = 1024

0 commit comments

Comments
 (0)