Use an integer to track direction, boolean is not an sqlite3 datatype.
This commit is contained in:
parent
e558b0387d
commit
cd3f79a3a0
|
@ -14,7 +14,7 @@ class DB {
|
||||||
createTable () {
|
createTable () {
|
||||||
const query = `CREATE TABLE
|
const query = `CREATE TABLE
|
||||||
IF NOT EXISTS ${this._table} (
|
IF NOT EXISTS ${this._table} (
|
||||||
dir BOOLEAN,
|
dir INTEGER,
|
||||||
exposure INTEGER,
|
exposure INTEGER,
|
||||||
start INTEGER,
|
start INTEGER,
|
||||||
stop INTEGER,
|
stop INTEGER,
|
||||||
|
|
|
@ -197,7 +197,7 @@ intval._stop = function () {
|
||||||
entry.start = intval._state.frame.start
|
entry.start = intval._state.frame.start
|
||||||
entry.stop = now
|
entry.stop = now
|
||||||
entry.len = len
|
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.exposure = intval._state.frame.current.exposure
|
||||||
entry.counter = intval._state.counter
|
entry.counter = intval._state.counter
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue