Fix remove_fedora()

This commit is contained in:
Jeffrey Serio 2024-07-08 19:37:17 -05:00
parent 0ef8d09119
commit 99378945d5

View File

@ -87,7 +87,11 @@ def add_fedora(relver: str):
def remove_fedora(relver: str): def remove_fedora(relver: str):
remove_torrents(f"{relver}.torrent") torrents = qb.torrents()
for torrent in torrents:
if torrent["name"].startswith("Fedora") and torrent["name"].endswith(relver):
qb.delete_permanently(torrent["hash"])
print(f"Removed {torrent['name']}")
def add_freebsd(relver: str): def add_freebsd(relver: str):