🐛 missed one class method usage

This commit is contained in:
Jörn-Michael Miehe 2026-02-28 02:55:32 +01:00
parent febcf63dba
commit f36192dc74

View file

@ -12,7 +12,6 @@ from PIL.ImageFont import FreeTypeFont
from .advent_image import _XY, AdventImage
from .calendar_config import CalendarConfig, get_calendar_config
from .config import Config, get_config
from .dav.webdav import WebDAV
from .helpers import (
RE_TTF,
EventDates,
@ -23,6 +22,7 @@ from .helpers import (
load_image,
set_len,
)
from .settings import WEBDAV
RE_NUM = re.compile(r"/(\d+)\.", flags=re.IGNORECASE)
@ -143,7 +143,7 @@ class TTFont:
@property
async def font(self) -> FreeTypeFont:
return ImageFont.truetype(
font=BytesIO(await WebDAV.read_bytes(self.file_name)),
font=BytesIO(await WEBDAV.read_bytes(self.file_name)),
size=100,
)