[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 "" return ""
def bwp(): def bwp():
tmp = "" tmp = ""
cur = 21
try: try:
with open(hl_utils.hlpath(BC_PAGE_LOG),'r') as f: with open(hl_utils.hlpath(BC_PAGE_LOG),'r') as f:
tmp = "{} pages".format(f.read().strip()) tmp = "{} pages".format(f.read().strip())
except: except:
tmp = "21 pages" tmp = "{} pages".format(cur)
return hl_utils.color_panel(tmp,RED) tmp = hl_utils.color_panel(tmp,hl_utils.get_color(cur,0,50))
return tmp
def countdown(): 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: if delta.days > 1:
tmp = "{} von 150 Tagen bis Abgabe verbleibend".format(delta.days) tmp = "{} von 150 Tagen bis Abgabe verbleibend".format(delta.days)
else: else:

View File

@@ -12,7 +12,7 @@ show_program_path=1
highlight_base_name=0 highlight_base_name=0
highlight_megabytes=1 highlight_megabytes=1
highlight_threads=1 highlight_threads=1
tree_view=1 tree_view=0
header_margin=1 header_margin=1
detailed_cpu_time=0 detailed_cpu_time=0
cpu_count_from_zero=0 cpu_count_from_zero=0