mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 14:44:21 +00:00
clear completed
This commit is contained in:
parent
b4f5e1d198
commit
3dcbd9444e
@ -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…
x
Reference in New Issue
Block a user