X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;f=todo.py;h=6cade91bf560fb45b42225631aa5cd9e5a089fee;hb=bd32647c67dd9a4979a39efaf31bfe63c82c72d0;hp=8c7029cab8eda5683b668857a220d7faa283b4fe;hpb=3faab835bd9d842cc0a529ba33007b3f85839e12;p=misc diff --git a/todo.py b/todo.py index 8c7029c..6cade91 100644 --- a/todo.py +++ b/todo.py @@ -1,62 +1,201 @@ -from plomlib import PlomDB, run_server, PlomHandler, PlomException +from plomlib import PlomDB, run_server, PlomHandler, PlomException import json from uuid import uuid4 -from datetime import datetime +from datetime import datetime, timedelta from urllib.parse import parse_qs +from jinja2 import Template +from urllib.parse import urlparse db_path = '/home/plom/org/todo_new.json' # db_path = '/home/plom/public_repos/misc/todo_new.json' server_port = 8082 +DATE_FORMAT = '%Y-%m-%d' -tmpl = """ +html_head = """
-' +form_header_tmpl = """ +