Fix history bug

This commit is contained in:
micialware committed 2026-08-20 18:18:14 +03:00
1 parent 9456eec2af
commit c5c1f34e1c
7 files changed
+38 -34

No files matched your search

-9
View File
@@ -73,15 +73,6 @@ pub fn update_stat_score(stat: &CardStatistics, connection: &Connection) {
println!("Updated stat: {}", time.elapsed().as_millis());
}
pub fn delete_stat(stat: &CardStatistics, connection: &Connection) {
if !stat.id.is_valid() {
return;
}
connection
.execute("DELETE FROM card_stats WHERE id = ?1", (&stat.id,))
.unwrap();
}
pub fn delete_stats(stat: &[CardStatistics], connection: &Connection) {
if stat.is_empty() {
return;