From d212cd913e7c808f57dd862300f7b19e11cab3a4 Mon Sep 17 00:00:00 2001 From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de> Date: Mon, 15 Jul 2024 12:26:11 +0200 Subject: [PATCH] turtle vererbung --- study-effort/src/mystudy/lecture.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/study-effort/src/mystudy/lecture.py b/study-effort/src/mystudy/lecture.py index 64de7ca..5856cfc 100644 --- a/study-effort/src/mystudy/lecture.py +++ b/study-effort/src/mystudy/lecture.py @@ -1,6 +1,7 @@ from typing import Final from mystudy.DataFormatError import DataFormatError +from mystudy.LecruresConverter import LecturesConvert lecture_time: Final[int] = 15 ects_effort: Final[int] = 30 @@ -56,7 +57,7 @@ pass -class Lecture2HTMLConverter: +class Lecture2HTMLConverter(LecturesConvert): def __init__(self): self.__head = """<!DOCTYPE html> <html lang="en"> @@ -70,7 +71,7 @@ </html> """ - def to_html(self, lectures: list[Lecture]) -> str: + def convert(self, lectures: list[Lecture]) -> str: html = "" for l in lectures: html += f"""<tr> -- Gitblit v1.10.0-SNAPSHOT