libsaria: Fix playlist filtering

The variables "filtered" and "visible" are global, so we need to tell
the function that it shouldn't create local variables.
This commit is contained in:
Bryan Schumaker 2011-05-16 12:04:28 -04:00
parent 3301439e88
commit 6d01a1cbc8
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ def list_ids():
yield id
def filter(text):
global visible
global filtered
if len(text) > 0:
visible = playlist.as_set().intersection(library.test_filter(text))
filtered = True