mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Tweak tasks ordering
This commit is contained in:
parent
ed3c7c6e9d
commit
9893383e47
@ -866,9 +866,9 @@ class TasksView(ListView):
|
||||
)
|
||||
sort_keys = (
|
||||
# key, reverse
|
||||
('run_now', True),
|
||||
('priority', 'ASC' != order),
|
||||
('run_at', False),
|
||||
('priority', 'ASC' != order),
|
||||
('run_now', True),
|
||||
)
|
||||
data['errors'] = multi_key_sort(data['errors'], sort_keys, attr=True)
|
||||
data['scheduled'] = multi_key_sort(data['scheduled'], sort_keys, attr=True)
|
||||
|
Loading…
Reference in New Issue
Block a user