summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mensa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mensa.py b/modules/mensa.py
index 32c9ee9..daee81d 100644
--- a/modules/mensa.py
+++ b/modules/mensa.py
@@ -2,7 +2,7 @@
from base import ModuleBase
import re
-from datetime import date, timedelta
+from datetime import datetime, date, timedelta, time
import urllib
class Module(ModuleBase):
@@ -19,7 +19,7 @@ class Module(ModuleBase):
tomorrow = re.match(r'!mensa\W+tomorrow(\W|\Z)', text)
daystr = 'Heute'
day = date.today()
- if tomorrow:
+ if tomorrow or datetime.now().time() > time(15):
day += timedelta(1)
daystr = 'Morgen'
datestr = day.strftime(r'%d\.%m\.<\/div>')