Merge branch 'master' of gitlab.cs.fau.de:ik15ydit/config

This commit is contained in:
Sheppy
2018-04-30 03:48:55 +02:00
7 changed files with 28 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import hl_utils
from hl_constants import *
import string
import re
from datetime import datetime
def guthaben():
guthaben = ''
@@ -63,5 +64,15 @@ def logins():
except:
return ""
def countdown():
delta = datetime(year=2018,month=7,day=22,hour=20) - datetime.now()
if delta.days > 1:
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)
return tmp
if __name__ == "__main__":
print(logins(),ip(),vpn(),guthaben(),battery(),date(),sep='',end='')
print(countdown(),logins(),ip(),vpn(),guthaben(),battery(),date(),sep='',end='')