From 0cd0b92d9e261dbe75fa45001aeca74592c053f8 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 15 Mar 2024 19:02:39 +0100 Subject: [PATCH] Add foreign key restraints, expand and fix tests, add deletion and forking. --- new_todo/html/template.html | 7 +++- new_todo/init.sql | 14 +++++--- new_todo/todo.py | 72 ++++++++++++++++++++++++++++++++----- 3 files changed, 80 insertions(+), 13 deletions(-) diff --git a/new_todo/html/template.html b/new_todo/html/template.html index 35f69de..e60d0c5 100644 --- a/new_todo/html/template.html +++ b/new_todo/html/template.html @@ -2,6 +2,9 @@ {% block content %}

edit template

+{% if tmpl.forked_from %} +forked from: {{tmpl.forked_from.title.newest|e}} at {{tmpl.forked_at}}
+{% endif %}
current title:
{% for datetime, title in tmpl.title.history.items() %} @@ -15,7 +18,9 @@ current description: