py3 filter->list(filter
This commit is contained in:
parent
2eafeff5f2
commit
12f3901c9a
17 changed files with 48 additions and 48 deletions
|
|
@ -106,7 +106,7 @@ def update(request, data):
|
|||
file__available=False,
|
||||
file__wanted=True)]
|
||||
|
||||
if filter(lambda l: l['id'] == 'subtitles', settings.CONFIG['layers']):
|
||||
if list(filter(lambda l: l['id'] == 'subtitles', settings.CONFIG['layers'])):
|
||||
qs = files.filter(
|
||||
file__is_subtitle=True,
|
||||
file__available=False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue