summaryrefslogtreecommitdiff
path: root/plugins/day_change.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/day_change.py')
-rw-r--r--plugins/day_change.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/day_change.py b/plugins/day_change.py
index 14924684..179bfd98 100644
--- a/plugins/day_change.py
+++ b/plugins/day_change.py
@@ -9,13 +9,13 @@ class Plugin(BasePlugin):
self.schedule_event()
def cleanup(self):
- self.core.remove_timed_event(self.next_event)
+ self.api.remove_timed_event(self.next_event)
def schedule_event(self):
day_change = datetime.datetime.combine(datetime.date.today(), datetime.time())
day_change += datetime.timedelta(1)
self.next_event = timed_events.TimedEvent(day_change, self.day_change)
- self.core.add_timed_event(self.next_event)
+ self.api.add_timed_event(self.next_event)
def day_change(self):
msg = datetime.date.today().strftime(_("Day changed to %x"))