mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Fixed sorting by ETA
This commit is contained in:
parent
9abfc5b250
commit
f7a4951e0d
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue