Skip to content

Commit

Permalink
reset due on load if outside i32 bounds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dae committed Apr 30, 2020
1 parent 94d369d commit 898801e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslib/src/storage/card/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?,
Expand Down

0 comments on commit 898801e

Please sign in to comment.