From d5a02db4dd4e059a46e6e66a56aecfa87bade0b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Sat, 27 Jul 2024 22:06:43 -0500 Subject: [PATCH] Refactor --- bin/qbth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/qbth b/bin/qbth index 96d5e12..ce971ac 100755 --- a/bin/qbth +++ b/bin/qbth @@ -70,7 +70,7 @@ def remove_torrents(distro_substring: str): torrent's file name. """ for torrent in qb.torrents(): - if distro_substring in torrent.get("name") # type: ignore + if distro_substring in torrent.get("name"): # type: ignore qb.delete_permanently(torrent.get("hash")) # type: ignore print(f"Removed {torrent.get('name')}") # type: ignore