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, 3 insertions, 1 deletions
diff --git a/plugins/day_change.py b/plugins/day_change.py
index 2bd56358..051b447b 100644
--- a/plugins/day_change.py
+++ b/plugins/day_change.py
@@ -10,6 +10,7 @@ import datetime
from poezio import tabs
from poezio import timed_events
+
class Plugin(BasePlugin):
def init(self):
self.schedule_event()
@@ -18,7 +19,8 @@ class Plugin(BasePlugin):
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.datetime.combine(datetime.date.today(),
+ datetime.time())
day_change += datetime.timedelta(1)
self.next_event = timed_events.TimedEvent(day_change, self.day_change)
self.api.add_timed_event(self.next_event)