mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 08:08:32 +01:00
small fixes
This commit is contained in:
@@ -67,11 +67,11 @@ def get_color(nr,start,end):
|
||||
def guthaben():
|
||||
guthaben = ''
|
||||
if hl_utils.is_cip():
|
||||
tmp = -1
|
||||
raw = ""
|
||||
with open(hl_utils.hlpath("pracct.log")) as f:
|
||||
tmp = float(f.read());
|
||||
guthaben = "Druckerguthaben: " + str(tmp) + " Euro"
|
||||
col = get_color(tmp,0,COLOR_BORDER)
|
||||
raw = f.read();
|
||||
guthaben = "Druckerguthaben: " + raw + " Euro"
|
||||
col = get_color(float(raw),0,COLOR_BORDER)
|
||||
guthaben = color_panel(guthaben,col)
|
||||
return guthaben;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user