mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix bug in media sync where we weren't fetching needed files
This commit is contained in:
parent
122c5c8f4c
commit
ec888eb2aa
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ create table log (fname text primary key, type int);
|
|||
need = []
|
||||
remove = []
|
||||
for f in files:
|
||||
if self.db.execute("select 1 from log where fname=?", f):
|
||||
if self.db.scalar("select 1 from log where fname=?", f):
|
||||
remove.append((f,))
|
||||
else:
|
||||
need.append(f)
|
||||
|
|
Loading…
Reference in a new issue