mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
Fixed sorting by ETA
This commit is contained in:
parent
9abfc5b250
commit
f7a4951e0d
@ -551,6 +551,9 @@ class AllTorrents(BaseMode, component.Component):
|
||||
else:
|
||||
result = sorted(result, cmp_func, sort_key, reverse)
|
||||
|
||||
if field == "eta":
|
||||
result = sorted(result, key=lambda s: state.get(s)["eta"] == 0)
|
||||
|
||||
return result
|
||||
|
||||
#Just in case primary and secondary fields are empty and/or
|
||||
|
Loading…
x
Reference in New Issue
Block a user