X-Git-Url: https://plomlompom.com/repos/condition_titles?a=blobdiff_plain;ds=sidebyside;f=todo.py;h=69cb8f5b71fce23d4bffb676f96d8ddd7a133ba3;hb=520a7a19656bb44f43b405fcd65fc495fac62748;hp=08fb8b82f6e3921ce6d75c3e86428d31c6398902;hpb=2960beb644986049fd975eac8e348ca61ab122b8;p=misc diff --git a/todo.py b/todo.py index 08fb8b8..69cb8f5 100644 --- a/todo.py +++ b/todo.py @@ -1,62 +1,175 @@ -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 = """ +