mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
don't bother to return used media
This commit is contained in:
parent
70eb44bce2
commit
7a196b3747
1 changed files with 1 additions and 2 deletions
|
|
@ -185,10 +185,9 @@ update media set originalPath = :sum, created = :c where filename = :f""",
|
||||||
# update deck and get return info
|
# update deck and get return info
|
||||||
if dirty:
|
if dirty:
|
||||||
deck.flushMod()
|
deck.flushMod()
|
||||||
have = deck.s.scalar("select count() from media where originalPath != ''")
|
|
||||||
nohave = deck.s.column0("select filename from media where originalPath = ''")
|
nohave = deck.s.column0("select filename from media where originalPath = ''")
|
||||||
deck.finishProgress()
|
deck.finishProgress()
|
||||||
return (have, nohave, unused)
|
return (nohave, unused)
|
||||||
|
|
||||||
# Download missing
|
# Download missing
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue