Rename set to deck in repetitions.rs
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::lang::{DeckSettings, CardStatistics, INVALID_ID};
|
||||
use rusqlite::Connection;
|
||||
use std::time::Instant;
|
||||
|
||||
pub fn load_stats_of_set(set: &DeckSettings, connection: &Connection) -> Vec<CardStatistics> {
|
||||
pub fn load_stats_of_deck(set: &DeckSettings, connection: &Connection) -> Vec<CardStatistics> {
|
||||
let mut stmt = connection
|
||||
.prepare("SELECT id, word_id, score, last_opened FROM card_stats WHERE set_id = ?1")
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user