From 8a6e10d401eea8db0947f8c4b309b8a6256f9748 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 May 2020 20:24:24 +0200 Subject: Add tags panel --- src/model/tag.py | 12 ++++++++++++ src/model/task.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/model/tag.py (limited to 'src/model') 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 -- cgit v1.2.3