From: Christian Heller Date: Wed, 18 Oct 2023 20:16:36 +0000 (+0200) Subject: Minor layout improvement to calories counter. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/foo.html?a=commitdiff_plain;h=f659ede27c7fd6313e0bfaa8217a3359c00d5843;p=misc Minor layout improvement to calories counter. --- diff --git a/calories.py b/calories.py index 048aacc..5d2fc98 100644 --- a/calories.py +++ b/calories.py @@ -26,8 +26,8 @@ input[type="number"] { text-align: right; } - + @@ -290,12 +290,12 @@ class MyServer(BaseHTTPRequestHandler): r = db.calc_consumption(c) consumptions += ""\ ""\ - "%s"\ ""\ + "%s"\ ""\ "%.1f"\ "%.1f"\ - "" % (c.eatable_key, db.eatables[c.eatable_key].title, c.unit_count, r["cals"], r["sugar"]) + "" % (c.eatable_key, c.unit_count, db.eatables[c.eatable_key].title, r["cals"], r["sugar"]) day_rows = "" for date in sorted(db.days.keys()): day = db.days[date]