Browse Source

Filtering active post-proc queue by category was broken

pull/1920/head
Safihre 4 years ago
parent
commit
6d729d27cd
  1. 2
      sabnzbd/api.py

2
sabnzbd/api.py

@ -1600,7 +1600,7 @@ def build_history(
# Filter out any items that don't match the search term or category
if postproc_queue:
# It would be more efficient to iterate only once, but we accept the penalty for code clarity
if isinstance(search, list):
if isinstance(categories, list):
postproc_queue = [nzo for nzo in postproc_queue if nzo.cat in categories]
if isinstance(search, str):

Loading…
Cancel
Save