X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;ds=sidebyside;f=todo.py;h=478a41e106e23c525eb7af7d172d4e518165cf63;hb=942c977e0052d09300625e7a5c1b5fc2eede9098;hp=d4ca1e77f208dc74a8642f2ccb3d9bfd8691ffdf;hpb=cf116472e137d4fcbcf6ce909de05ef75fb984f8;p=misc diff --git a/todo.py b/todo.py index d4ca1e7..478a41e 100644 --- a/todo.py +++ b/todo.py @@ -1,186 +1,24 @@ -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, 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 db_path = '/home/plom/org/todo_new.json' -# db_path = '/home/plom/public_repos/misc/todo_new.json' server_port = 8082 - -html_head = """ - -
-tasks: list add | day: -choose tasks -do tasks -| calendar -