diff options
author | Joris | 2020-05-10 20:24:24 +0200 |
---|---|---|
committer | Joris | 2020-05-10 20:24:24 +0200 |
commit | 8a6e10d401eea8db0947f8c4b309b8a6256f9748 (patch) | |
tree | 6e2dc6956ce7825f0f1b6c3ed6f0b4171fe9c274 /src/model | |
parent | 3e1415c738facb8b0274adb50ae65f218fd59c9b (diff) |
Add tags panel
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/tag.py | 12 | ||||
-rw-r--r-- | src/model/task.py | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/model/tag.py b/src/model/tag.py new file mode 100644 index 0000000..030b223 --- /dev/null +++ b/src/model/tag.py @@ -0,0 +1,12 @@ +from typing import NamedTuple + +class Tag(NamedTuple): + id: int + created_at: int + updated_at: int + name: str + color: str + +class ValidTagForm(NamedTuple): + name: str + color: str diff --git a/src/model/task.py b/src/model/task.py index f5e0ae5..4bb9a89 100644 --- a/src/model/task.py +++ b/src/model/task.py @@ -6,7 +6,7 @@ from model.priority import Priority class Task(NamedTuple): id: int created_at: int - modified_at: int + updated_at: int name: str duration: int tag: str |