From f23dfd53e4110b94afeb68be40e8124a0846c2ff Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 20 Sep 2021 20:34:27 +0200 Subject: [PATCH] Fix history API endpoint for all snatch and download statuses (including archived, failed). --- CHANGES.md | 7 ++++++- sickbeard/webapi.py | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1d0fe55..e1d4f09 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.25.1 (2021-09-18 00:06:00 UTC) +### 0.25.2 (2021-09-20 20:00:00 UTC) + +* Fix history API endpoint for all snatch and download statuses (including archived, failed) + + +### 0.25.1 (2021-09-18 00:06:00 UTC) * Fix history API endpoint to respect clear history diff --git a/sickbeard/webapi.py b/sickbeard/webapi.py index 144a3e7..a809b83 100644 --- a/sickbeard/webapi.py +++ b/sickbeard/webapi.py @@ -1620,12 +1620,12 @@ class CMD_SickGearHistory(ApiCall): # typeCodes = [] if "downloaded" == self.type: self.type = "Downloaded" - typeCodes = Quality.DOWNLOADED + typeCodes = Quality.DOWNLOADED + Quality.ARCHIVED + Quality.FAILED elif "snatched" == self.type: self.type = "Snatched" - typeCodes = Quality.SNATCHED + typeCodes = Quality.SNATCHED_ANY else: - typeCodes = Quality.SNATCHED + Quality.DOWNLOADED + typeCodes = Quality.SNATCHED_ANY + Quality.DOWNLOADED + Quality.ARCHIVED + Quality.FAILED my_db = db.DBConnection(row_type="dict")