mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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 = []
|
need = []
|
||||||
remove = []
|
remove = []
|
||||||
for f in files:
|
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,))
|
remove.append((f,))
|
||||||
else:
|
else:
|
||||||
need.append(f)
|
need.append(f)
|
||||||
|
|
Loading…
Reference in a new issue