X-Git-Url: https://plomlompom.com/repos/do_day?a=blobdiff_plain;f=income_progress_bars.py;h=5d9a887323feb2cc7da85f1e81dae7bc696d83f2;hb=3faab835bd9d842cc0a529ba33007b3f85839e12;hp=94a34569c70909a290c82ad21eb6bba8cf8a6196;hpb=5f3b9e7eb997cacea086decc3dcd04d6619b9121;p=misc diff --git a/income_progress_bars.py b/income_progress_bars.py index 94a3456..5d9a887 100644 --- a/income_progress_bars.py +++ b/income_progress_bars.py @@ -1,13 +1,12 @@ -# from http.server import BaseHTTPRequestHandler, HTTPServer import os import json import jinja2 -from plomlib import PlomDB, PlomException, run_server, run_server, PlomServer +from plomlib import PlomDB, PlomException, run_server, PlomHandler -server_port = 8081 +server_port = 8083 +db_path = '/home/plom/org/income.json' -tmpl = jinja2.Template(""" - +tmpl = """
earned | progress | surplus | |
---|---|---|---|
{{p.title}} | +|||
earned | progress | surplus | |
{{p.title}} | {{p.earned|round(2)}} | -{% if p.time_progress >= 0 %}{% endif %} | -{{p.diff_goal}} |