PEP8
This commit is contained in:
parent
0c4326eb31
commit
8a765f43e2
1 changed files with 5 additions and 2 deletions
|
@ -20,9 +20,11 @@ import bumblebee.input
|
||||||
import bumblebee.output
|
import bumblebee.output
|
||||||
import bumblebee.engine
|
import bumblebee.engine
|
||||||
|
|
||||||
|
|
||||||
class Module(bumblebee.engine.Module):
|
class Module(bumblebee.engine.Module):
|
||||||
def __init__(self, engine, config):
|
def __init__(self, engine, config):
|
||||||
super(Module, self).__init__(engine, config,
|
super(Module, self).__init__(
|
||||||
|
engine, config,
|
||||||
bumblebee.output.Widget(full_text=self.suntimes)
|
bumblebee.output.Widget(full_text=self.suntimes)
|
||||||
)
|
)
|
||||||
self.interval(3600)
|
self.interval(3600)
|
||||||
|
@ -41,7 +43,8 @@ class Module(bumblebee.engine.Module):
|
||||||
|
|
||||||
def suntimes(self, _):
|
def suntimes(self, _):
|
||||||
if self._sunset and self._sunrise:
|
if self._sunset and self._sunrise:
|
||||||
return u"\u21A5{} \u21A7{}".format(self._sunrise.strftime('%H:%M'), self._sunset.strftime('%H:%M'))
|
return u"\u21A5{} \u21A7{}".format(self._sunrise.strftime('%H:%M'),
|
||||||
|
self._sunset.strftime('%H:%M'))
|
||||||
return "?"
|
return "?"
|
||||||
|
|
||||||
def _calculate_times(self):
|
def _calculate_times(self):
|
||||||
|
|
Loading…
Reference in a new issue