aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJoris2020-05-08 19:35:08 +0200
committerJoris2020-05-08 19:35:08 +0200
commit6ed4e669ef7cb857c7b0ac774c41e8f9c7758217 (patch)
treefd14205caaf9fdb5db472c53fd9954bbeb7aee72 /src/model
parentbff2dfd96169f595510b16980a4cb2f3d4548029 (diff)
Add duration to tasks
Diffstat (limited to 'src/model')
-rw-r--r--src/model/task.py4
1 files changed, 3 insertions, 1 deletions
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