added support for repeat week & exam period

This commit is contained in:
Kjistóf 2017-01-21 18:54:25 +01:00
parent 532bcd527f
commit a8ada1621e

View File

@ -12,6 +12,8 @@ def main(wf):
num = str(get_week.get_week()) num = str(get_week.get_week())
title = u'Épp {}.'.format(num) title = u'Épp {}.'.format(num)
subtt = u'hét van!' subtt = u'hét van!'
if num == 14: title = u'Póthét ({}. hét)'.format(num); subtt = u'van!'
if num > 14: title = u'Vizsgaidőszak ({}. hét)'.format(num); subtt = u'van!'
except ConnectionError: except ConnectionError:
title = u'Nincs internet!' title = u'Nincs internet!'
except (IndexError, RuntimeError): except (IndexError, RuntimeError):