X-Git-Url: https://plomlompom.com/repos/condition_descriptions?a=blobdiff_plain;ds=inline;f=todo.py;h=42639a11c9f28fdfbe34991af191e3bd8dc122ee;hb=472874343c229fc77136e1cc3bae5a1d8bc543f9;hp=8da5f9e3cabb6cd70e4448502245fb6ef797c5c8;hpb=0f70b22c0f0e2983edc0a60309f49636db75da6b;p=misc diff --git a/todo.py b/todo.py index 8da5f9e..42639a1 100644 --- a/todo.py +++ b/todo.py @@ -1,77 +1,172 @@ 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' html_head = """
-all | edit day: -choose -do +tasks: list add | day: +choose tasks +do tasks +| calendar