history page works
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user