fix bug in media sync where we weren't fetching needed files

This commit is contained in:
Damien Elmes 2013-05-31 14:03:34 +09:00
parent 122c5c8f4c
commit ec888eb2aa

View file

@ -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)