reset due on load if outside i32 bounds

Some third party clients that create apkg files appear to be saving
a millisecond timestamp into this column. While this could also be
solved by increasing this field to a 64 bit number, some older clients
expect this column to be a 32 bit number.
This commit is contained in:
Damien Elmes 2020-04-30 11:57:35 +10:00
parent 94d369db18
commit 898801ebda

View File

@ -44,7 +44,7 @@ impl super::SqliteStorage {
usn: row.get(4)?,
ctype: row.get(5)?,
queue: row.get(6)?,
due: row.get(7)?,
due: row.get(7).ok().unwrap_or_default(),
ivl: row.get(8)?,
factor: row.get(9)?,
reps: row.get(10)?,