From 6ed4e669ef7cb857c7b0ac774c41e8f9c7758217 Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 8 May 2020 19:35:08 +0200 Subject: Add duration to tasks --- src/model/task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/model') diff --git a/src/model/task.py b/src/model/task.py index 26496c4..afbb2ca 100644 --- a/src/model/task.py +++ b/src/model/task.py @@ -6,8 +6,10 @@ class Task(NamedTuple): created_at: int modified_at: int name: str + duration: int tag: str -class TaskForm(NamedTuple): +class ValidTaskForm(NamedTuple): name: str + duration: int tag: str -- cgit v1.2.3