Fix #1239: Translated Tracker Error text not counted in sidebar Error status

This commit is contained in:
Calum Lind 2011-07-04 14:30:55 +01:00
parent 55f456d851
commit 9a1ae06033

View File

@ -113,7 +113,7 @@ def tracker_error_filter(torrent_ids, values):
# Check all the torrent's tracker_status for 'Error:' and only return torrent_ids
# that have this substring in their tracker_status
for torrent_id in torrent_ids:
if "Error:" in tm[torrent_id].get_status(["tracker_status"])["tracker_status"]:
if _("Error") + ":" in tm[torrent_id].get_status(["tracker_status"])["tracker_status"]:
filtered_torrent_ids.append(torrent_id)
return filtered_torrent_ids