mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +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)
|
||||
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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user