Read calendards URL from .cals file
This commit is contained in:
parent
8c7d5f583e
commit
5acdf32ae7
3 changed files with 11 additions and 4 deletions
|
|
@ -7,8 +7,8 @@ import pytz
|
|||
|
||||
class IcalModule:
|
||||
|
||||
def __init__(self, cals=[]):
|
||||
self.cals = cals
|
||||
def __init__(self, config):
|
||||
self.cals = config.cals
|
||||
|
||||
def draw_module(self, config, width, height, line_height=19):
|
||||
now = datetime.now(tz=pytz.timezone('Europe/Paris'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue