From a54b7776320ef5aa02e6ef7378c2a011dc454885 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 16 Oct 2021 20:09:55 +0200 Subject: Introduce due date Also: - Remove duration, difficulty and priority, - Translate to french. --- todo/model/task.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'todo/model/task.py') 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 -- cgit v1.2.3