mirror of
https://github.com/FAUSheppy/config
synced 2026-01-22 07:57:39 +01:00
[git fast commit] 02. Jun 2018 - 14:06:32
This commit is contained in:
@@ -70,7 +70,7 @@ def countdown():
|
|||||||
tmp = "{} von 180 Tagen bis Abgabe verbleibend".format(delta.days)
|
tmp = "{} von 180 Tagen bis Abgabe verbleibend".format(delta.days)
|
||||||
else:
|
else:
|
||||||
tmp = "{}h bis BC Abgabe".format(delta.hours)
|
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
|
return tmp
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ def color_panel(s,hex_code,seper=True):
|
|||||||
def get_color(nr,start,end):
|
def get_color(nr,start,end):
|
||||||
if end == start or nr >= end:
|
if end == start or nr >= end:
|
||||||
return hex(GREEN)
|
return hex(GREEN)
|
||||||
elif nr <= 0:
|
elif nr <= 0 or nr < start:
|
||||||
return hex(RED)
|
return hex(RED)
|
||||||
else:
|
else:
|
||||||
r,g,b = 0,0,0
|
r,g,b = 0,0,0
|
||||||
|
|||||||
Reference in New Issue
Block a user