Skip to content
Snippets Groups Projects
Commit e0cb66f7 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

KG1: Lesson without PDF

parent 87ce8961
No related branches found
No related tags found
No related merge requests found
......@@ -39,11 +39,12 @@ with web.Module("teaching_24_kg1") as module:
b.h2("Probrané témata a zadané příklady")
def lesson(id, date, content):
def lesson(id, date, content, pdf=True):
b = html.Builder()
with b.tr:
b.line.td(date)
b.line.td(content)
if pdf:
p = web.Mpage(d, f"vyuka/24z/kg1/{id}", source=f'{id}.md',
page_builder=base_page,
source_code_module=(lambda: ...).__module__,
......@@ -64,6 +65,14 @@ with web.Module("teaching_24_kg1") as module:
b(lesson(2, "8. 10.", b._bucket("Odhady faktoriálů a kombinačních čísel, vytvořující funkce ponulté.", b._br(), "Předvedeny příklady 1abc a 2abefgh.")))
b(lesson(3, "15. 10.", b._bucket("Vytvořující funkce poprvé.")))
b(lesson(4, "22. 10.", b._bucket("Vytvořující funkce podruhé.")))
b(lesson(5, "29. 10.", b._bucket("Vytvořující funkce podruhé.")))
b(lesson(6, "5. 11.",
b._i.line("Místo cvičení je ",
b._a(href='https://www.mff.cuni.cz/cs/vnitrni-zalezitosti/dekansky-den/2024')("cvičení"),
" (a nebo ",
b._a(href="https://maso.mff.cuni.cz/")("MaSo"),
", vyberte si)."),
pdf=False))
return base_page(b.root)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment