Add ratio attribute to Transmission torrent info (#143459)

This commit is contained in:
Everton Leite 2025-04-25 12:00:02 -03:00 committed by GitHub
parent 1075ea1220
commit f72c5ebb76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,6 +211,7 @@ def _torrents_info_attr(
"percent_done": f"{torrent.percent_done * 100:.2f}",
"status": torrent.status,
"id": torrent.id,
"ratio": torrent.ratio,
}
with suppress(ValueError):
info["eta"] = str(torrent.eta)