diff options
author | Joris | 2020-05-10 12:50:46 +0200 |
---|---|---|
committer | Joris | 2020-05-10 12:50:46 +0200 |
commit | 7372ab407535ade48ce0b642ae051990e3bef7ed (patch) | |
tree | 65ae22d72cf10e40e777c4fa1919539d8e065e46 /src/model/task.py | |
parent | a134f20eb62e6d174e7da81fd4adb7ff9e8b3b71 (diff) |
Add task difficulty and priority fields
Diffstat (limited to 'src/model/task.py')
-rw-r--r-- | src/model/task.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/model/task.py b/src/model/task.py index cc7758d..f5e0ae5 100644 --- a/src/model/task.py +++ b/src/model/task.py @@ -1,17 +1,23 @@ from typing import NamedTuple -from datetime import datetime + +from model.difficulty import Difficulty +from model.priority import Priority class Task(NamedTuple): id: int created_at: int modified_at: int name: str - description: str duration: int tag: str + difficulty: Difficulty + priority: Priority + description: str class ValidTaskForm(NamedTuple): name: str - description: str duration: int tag: str + difficulty: Difficulty + priority: Priority + description: str |