summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-05 12:23:37 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-05 12:23:37 -0300
commit779f012812a36b85d1086f48381a00b429b686d0 (patch)
tree2d5376c486fdf50a1ed8d272256e602adc175e31 /scripts
parent2714214eedff04de44c37ebae0cfa8ed7b9c4e44 (diff)
Mark current day
Diffstat (limited to 'scripts')
-rw-r--r--scripts/calendar_plugin2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/calendar_plugin2.py b/scripts/calendar_plugin2.py
index ea44483..a7f752c 100644
--- a/scripts/calendar_plugin2.py
+++ b/scripts/calendar_plugin2.py
@@ -52,6 +52,7 @@ class TabularCalendarPlugin:
cur_day = calendar_start
active_month = None
active_week = None
+ today = date.today()
while cur_day <= calendar_end:
cur_month = cur_day.month
cur_week = cur_day.isocalendar()[1]
@@ -74,6 +75,7 @@ class TabularCalendarPlugin:
'year': cur_day.year,
'month': cur_day.month,
'day': cur_day.day,
+ 'today': cur_day == today,
'weekday': cur_day.weekday(),
'events': []
})