mirror of
https://github.com/topydo/topydo.git
synced 2024-05-20 05:48:35 +00:00
Set default priority of tasks to 'M' level
Previously, unprioritized tasks were set below all other tasks. This change sets unprioritized tasks directly in the middle of all task prioritizations.
This commit is contained in:
parent
5cc02c99a8
commit
60c072eba0
|
@ -1,3 +1,5 @@
|
|||
(N) A low priority task
|
||||
An unprioritized task
|
||||
(C) Useless
|
||||
(B) Minor
|
||||
(A) Important
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
(C) Useless
|
||||
(A) Important
|
||||
(A) Another important task star:1
|
||||
An unprioritized task
|
||||
(N) A low priority task
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
(A) Another important task star:1
|
||||
(B) Minor
|
||||
(C) Useless
|
||||
An unprioritized task
|
||||
(N) A low priority task
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
(C) Useless
|
||||
(A) Important
|
||||
(A) Another important task star:1
|
||||
(N) A low priority task
|
||||
An unprioritized task
|
||||
|
|
|
@ -495,9 +495,9 @@ x 11 months ago
|
|||
result = """{C}
|
||||
{C}
|
||||
{D}
|
||||
|
||||
|
||||
{Z}
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
@ -508,9 +508,9 @@ x 11 months ago
|
|||
result = """%pC%p
|
||||
%pC%p
|
||||
%pD%p
|
||||
|
||||
|
||||
%pZ%p
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
@ -521,9 +521,9 @@ x 11 months ago
|
|||
result = """CC
|
||||
CC
|
||||
DD
|
||||
|
||||
|
||||
ZZ
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
@ -536,9 +536,9 @@ ZZ
|
|||
result = """C C
|
||||
C C
|
||||
D D
|
||||
|
||||
|
||||
Z Z
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
@ -552,9 +552,9 @@ Z Z
|
|||
result = """C C
|
||||
C C
|
||||
D D
|
||||
|
||||
|
||||
Z Z
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
@ -567,9 +567,9 @@ Z Z
|
|||
result = """ C
|
||||
C
|
||||
D
|
||||
|
||||
|
||||
Z
|
||||
|
||||
|
||||
"""
|
||||
self.assertEqual(self.output, result)
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ FIELDS = {
|
|||
label='Length',
|
||||
),
|
||||
'priority': Field(
|
||||
sort=(lambda t: t.priority() or 'ZZ'),
|
||||
sort=(lambda t: t.priority() or 'M'),
|
||||
group=(lambda t: t.priority() or 'None'),
|
||||
label='Priority',
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue