history page works

This commit is contained in:
2026-07-03 21:02:40 +03:00
parent 15c3ec2018
commit c184945e95
6 changed files with 117 additions and 9 deletions
+1 -3
View File
@@ -79,9 +79,7 @@ impl CardStatistics {
self.score = MAX_SCORE
}
self.last_open = Utc::now();
updateCardStat(self.id, self.score, last_open).catch((err) =>
console.error('[Training] Ошибка сохранения last_opened:', err),
); }
}
pub fn calculated_score(&self) -> f32 {
let time = Utc::now() - self.last_open;