From 7322f8348a2a54e10f9cd700bf3bcc0952a3c7ed Mon Sep 17 00:00:00 2001 From: Safihre Date: Thu, 3 Jun 2021 11:50:48 +0200 Subject: [PATCH] Filtering active post-proc queue by category was broken --- sabnzbd/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sabnzbd/api.py b/sabnzbd/api.py index 9a46fbd..5250c9c 100644 --- a/sabnzbd/api.py +++ b/sabnzbd/api.py @@ -1646,7 +1646,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):