X-Git-Url: https://plomlompom.com/repos/do_day?a=blobdiff_plain;f=income_progress_bars.py;h=5a4f5ad013eae7e8bbc68b301e1d429c78e23b72;hb=3f85c397248cb8fbd594ce68f66f356f26771e61;hp=8a85a4c5a7402ff791a47a033678f1f6c352d1f7;hpb=6115737776cbf6ebd486de1849ea16272cdaff1a;p=misc diff --git a/income_progress_bars.py b/income_progress_bars.py index 8a85a4c..5a4f5ad 100644 --- a/income_progress_bars.py +++ b/income_progress_bars.py @@ -25,6 +25,9 @@ td, th { background-color: black; border: none; } +.surplusbar { + width: 200px; +} .time_progress { position: absolute; height: 20px; @@ -212,7 +215,9 @@ class MyServer(BaseHTTPRequestHandler): success_income_cut = min(success_income, 1.0) success_income_bonus = max(success_income - 1.0, 0) success = success_income + 0 - diff_goal = earned - goal + diff_goal = "%.2fâ¬" % (earned - goal) + if title != "workday": + diff_goal += "(%.2fâ¬)" % (earned - (goal * time_progress)) if time_progress >= 0: success = 1 if time_progress > 0: @@ -221,7 +226,7 @@ class MyServer(BaseHTTPRequestHandler): return "