Read calendards URL from .cals file

This commit is contained in:
nemunaire 2022-08-14 19:55:12 +02:00
commit 5acdf32ae7
3 changed files with 11 additions and 4 deletions

View file

@ -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'))