Change time to int
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn add_stat(stat: &mut CardStatistics, connection: &Connection) {
|
||||
&stat.word_id,
|
||||
&stat.set_id,
|
||||
&stat.score,
|
||||
&stat.last_open,
|
||||
&stat.last_open.timestamp(),
|
||||
),
|
||||
|row| row.get(0)
|
||||
)
|
||||
@@ -45,7 +45,7 @@ pub fn update_stat_score(stat: &CardStatistics, connection: &Connection){
|
||||
"UPDATE card_stats SET score = ?1, last_opened = ?2 WHERE id = ?3",
|
||||
(
|
||||
&stat.score,
|
||||
&stat.last_open,
|
||||
&stat.last_open.timestamp(),
|
||||
&stat.id
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user