X-Git-Url: https://plomlompom.com/repos/condition_descriptions?a=blobdiff_plain;f=calories.py;h=9951ce5c98896ef91319282143b2925b657ec280;hb=71a0c94ce508dcd21165e06a955043d021efb89f;hp=048aaccea4fe5bd91d4789fb880c338d33a89478;hpb=40f30842115407c2c319aab3890465abd217843e;p=misc diff --git a/calories.py b/calories.py index 048aacc..9951ce5 100644 --- a/calories.py +++ b/calories.py @@ -1,43 +1,76 @@ -from http.server import BaseHTTPRequestHandler, HTTPServer import os import json import datetime +import jinja2 +from plomlib import PlomDB, PlomException, run_server, PlomHandler -hostName = "localhost" -serverPort = 8081 +db_path = '/home/plom/org/calories_db.json' -def build_page(eatable_rows, consumption_rows, eatables_selection, day_rows): - return """ - +server_port = 8081 + +tmpl = """ """ + f""" +
-