Fix history bug
This commit is contained in:
1 parent
9456eec2af
commit
c5c1f34e1c
7 files changed
+38
-34
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user