history page works
This commit is contained in:
1 parent
15c3ec2018
commit
c184945e95
6 files changed
+117
-9
No files matched your search
@@ -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