mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
Be more user-friendly when sorting tasks
The time first, then the priority, if the tasks are at the same time.
This commit is contained in:
parent
e39fc86952
commit
0703032fcf
@ -782,8 +782,8 @@ class TasksView(ListView):
|
||||
prefix = '-' if 'ASC' != order else ''
|
||||
_priority = f'{prefix}priority'
|
||||
return qs.order_by(
|
||||
'run_at',
|
||||
_priority,
|
||||
'run_at'
|
||||
)
|
||||
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user