diff options
author | Joris | 2020-05-10 14:43:24 +0200 |
---|---|---|
committer | Joris | 2020-05-10 14:43:24 +0200 |
commit | 2b479fae26b7446f9269223d1e1fb4073839f5cc (patch) | |
tree | 8a15017b80e94e778857fe856160c36865568a1d /src/model/priority.py | |
parent | 7372ab407535ade48ce0b642ae051990e3bef7ed (diff) | |
download | todo-2b479fae26b7446f9269223d1e1fb4073839f5cc.tar.gz todo-2b479fae26b7446f9269223d1e1fb4073839f5cc.tar.bz2 todo-2b479fae26b7446f9269223d1e1fb4073839f5cc.zip |
Improve difficulty and priority reading
Diffstat (limited to 'src/model/priority.py')
-rw-r--r-- | src/model/priority.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/priority.py b/src/model/priority.py index 873369d..76cfd62 100644 --- a/src/model/priority.py +++ b/src/model/priority.py @@ -3,27 +3,27 @@ from typing import Optional class Priority(IntEnum): LOW = 0 - MEDIUM = 1 + MIDDLE = 1 HIGH = 2 values = [ Priority.LOW, - Priority.MEDIUM, + Priority.MIDDLE, Priority.HIGH] def format(priority: Priority) -> str: if priority == Priority.LOW: return 'Low' - elif priority == Priority.MEDIUM: - return 'Medium' + elif priority == Priority.MIDDLE: + return 'Middle' elif priority == Priority.HIGH: return 'High' def parse(string: str) -> Optional[Priority]: if string == 'Low': return Priority.LOW - elif string == 'Medium': - return Priority.MEDIUM + elif string == 'Middle': + return Priority.MIDDLE elif string == 'High': return Priority.HIGH else: |