Change time to int

This commit is contained in:
2026-07-05 01:22:19 +03:00
parent be60b170eb
commit 0718251073
3 changed files with 68 additions and 8 deletions
+2 -2
View File
@@ -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
),
)