[git fast commit] 01. Jul 2018 - 03:11:02

This commit is contained in:
Sheppy
2018-07-01 03:11:02 +02:00
parent e82c109361
commit 789dd11923
2 changed files with 6 additions and 4 deletions

View File

@@ -74,16 +74,18 @@ def bcw():
return ""
def bwp():
tmp = ""
cur = 21
try:
with open(hl_utils.hlpath(BC_PAGE_LOG),'r') as f:
tmp = "{} pages".format(f.read().strip())
except:
tmp = "21 pages"
return hl_utils.color_panel(tmp,RED)
tmp = "{} pages".format(cur)
tmp = hl_utils.color_panel(tmp,hl_utils.get_color(cur,0,50))
return tmp
def countdown():
delta = datetime(year=2018,month=7,day=22,hour=20) - datetime.now()
delta = datetime(year=2018,month=7,day=23,hour=8) - datetime.now()
if delta.days > 1:
tmp = "{} von 150 Tagen bis Abgabe verbleibend".format(delta.days)
else: