[git fast commit] 02. Jun 2018 - 14:06:32

This commit is contained in:
Sheppy
2018-06-02 14:06:32 +02:00
parent ea09590725
commit fad8af93fa
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ def countdown():
tmp = "{} von 180 Tagen bis Abgabe verbleibend".format(delta.days)
else:
tmp = "{}h bis BC Abgabe".format(delta.hours)
tmp = hl_utils.color_panel(tmp,YELLOW)
tmp = hl_utils.color_panel(tmp,hl_utils.get_color(delta.days,0,180))
return tmp

View File

@@ -48,7 +48,7 @@ def color_panel(s,hex_code,seper=True):
def get_color(nr,start,end):
if end == start or nr >= end:
return hex(GREEN)
elif nr <= 0:
elif nr <= 0 or nr < start:
return hex(RED)
else:
r,g,b = 0,0,0