mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +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 ''
|
prefix = '-' if 'ASC' != order else ''
|
||||||
_priority = f'{prefix}priority'
|
_priority = f'{prefix}priority'
|
||||||
return qs.order_by(
|
return qs.order_by(
|
||||||
|
'run_at',
|
||||||
_priority,
|
_priority,
|
||||||
'run_at'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_context_data(self, *args, **kwargs):
|
def get_context_data(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user