mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
fix deletion notices being sent unnecessarily
This commit is contained in:
parent
f940c326c2
commit
44053f0715
1 changed files with 3 additions and 1 deletions
|
@ -213,7 +213,9 @@ delete from media where fname=?"
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn all_mtimes(&mut self) -> Result<HashMap<String, i64>> {
|
pub(super) fn all_mtimes(&mut self) -> Result<HashMap<String, i64>> {
|
||||||
let mut stmt = self.db.prepare("select fname, mtime from media")?;
|
let mut stmt = self
|
||||||
|
.db
|
||||||
|
.prepare("select fname, mtime from media where csum is not null")?;
|
||||||
let map: std::result::Result<HashMap<String, i64>, rusqlite::Error> = stmt
|
let map: std::result::Result<HashMap<String, i64>, rusqlite::Error> = stmt
|
||||||
.query_map(NO_PARAMS, |row| Ok((row.get(0)?, row.get(1)?)))?
|
.query_map(NO_PARAMS, |row| Ok((row.get(0)?, row.get(1)?)))?
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Reference in a new issue