mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
clear completed
This commit is contained in:
parent
b4f5e1d198
commit
3dcbd9444e
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ class Manager:
|
||||||
def clear_completed(self):
|
def clear_completed(self):
|
||||||
for unique_ID in self.unique_IDs:
|
for unique_ID in self.unique_IDs:
|
||||||
torrent_state = self.get_core_torrent_state(unique_ID)
|
torrent_state = self.get_core_torrent_state(unique_ID)
|
||||||
if torrent_state['progress'] == 100.0:
|
if torrent_state['progress'] == 1.0:
|
||||||
self.remove_torrent_ns(unique_ID)
|
self.remove_torrent_ns(unique_ID)
|
||||||
|
|
||||||
self.sync()
|
self.sync()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue