X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;f=todo.py;h=e0bedaf37888e179f717654683419dee8020c8a0;hb=13a15b95ade73f4455db648b70e1de784c515039;hp=a9e180712cafd8fd83e1b69a8cc8ec665489aa40;hpb=187d7e878767dcd4072a562e834cb7abd4349a06;p=misc diff --git a/todo.py b/todo.py index a9e1807..e0bedaf 100644 --- a/todo.py +++ b/todo.py @@ -1,78 +1,26 @@ -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 jinja2 import Environment as JinjaEnv, FileSystemLoader as JinjaFSLoader from urllib.parse import urlparse +from os.path import split as path_split db_path = '/home/plom/org/todo_new.json' -# db_path = '/home/plom/public_repos/misc/todo_new.json' server_port = 8082 - -html_head = """ - -
-all | edit day: -choose -do -coming -