Browse Source

Fix history API endpoint for all snatch and download statuses (including archived, failed).

tags/release_0.25.2^2
Prinz23 4 years ago
committed by JackDandy
parent
commit
f23dfd53e4
  1. 7
      CHANGES.md
  2. 6
      sickbeard/webapi.py

7
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

6
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")

Loading…
Cancel
Save