diff options
author | Joris | 2021-10-16 20:09:55 +0200 |
---|---|---|
committer | Joris | 2021-10-16 20:09:56 +0200 |
commit | a54b7776320ef5aa02e6ef7378c2a011dc454885 (patch) | |
tree | 0cc69107fc3db626ade1b91e70966f9ecff19678 /todo/model/task.py | |
parent | 9d8b61da195bf8de14159f1222a693d62ceebacd (diff) | |
download | todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.gz todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.bz2 todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.zip |
Introduce due date
Also:
- Remove duration, difficulty and priority,
- Translate to french.
Diffstat (limited to 'todo/model/task.py')
-rw-r--r-- | todo/model/task.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/todo/model/task.py b/todo/model/task.py index f20cbc9..086a84b 100644 --- a/todo/model/task.py +++ b/todo/model/task.py @@ -1,22 +1,17 @@ from typing import NamedTuple, List - -from todo.model.difficulty import Difficulty -from todo.model.priority import Priority +from PyQt5 import QtCore +from datetime import date class Task(NamedTuple): id: int created_at: int updated_at: int name: str - duration: int - difficulty: Difficulty - priority: Priority + due_date: date description: str class ValidTaskForm(NamedTuple): name: str - duration: int - difficulty: Difficulty - priority: Priority + due_date: date tags: List[int] description: str |