Read SAB cat as category
Treat SAB history cat/category fields equivalently for #20.
This commit is contained in:
@@ -30,7 +30,8 @@ def classify_history_item(item: dict[str, Any], active_nzo_ids: set[str], catego
|
||||
nzo_id = str(item.get("nzo_id") or item.get("nzoid") or "")
|
||||
if not force_status and nzo_id and nzo_id in active_nzo_ids:
|
||||
return Readiness("processing", "SAB job is still present in queue")
|
||||
if str(item.get("category") or "") != category:
|
||||
item_category = str(item.get("category") or item.get("cat") or "")
|
||||
if item_category != category:
|
||||
return Readiness("ignored", "SAB category is not owned by Importarr")
|
||||
status = str(item.get("status") or "")
|
||||
if not force_status and status == "Failed":
|
||||
|
||||
Reference in New Issue
Block a user