Use an integer to track direction, boolean is not an sqlite3 datatype.

This commit is contained in:
mmcwilliams 2017-11-23 09:29:44 -05:00
parent e558b0387d
commit cd3f79a3a0
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class DB {
createTable () {
const query = `CREATE TABLE
IF NOT EXISTS ${this._table} (
dir BOOLEAN,
dir INTEGER,
exposure INTEGER,
start INTEGER,
stop INTEGER,

View File

@ -197,7 +197,7 @@ intval._stop = function () {
entry.start = intval._state.frame.start
entry.stop = now
entry.len = len
entry.dir = intval._state.frame.current.dir
entry.dir = intval._state.frame.current.dir ? 1 : 0
entry.exposure = intval._state.frame.current.exposure
entry.counter = intval._state.counter