refactor: remove swl from homework for now
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var COURSE_CHOICES = [
|
var COURSE_CHOICES = [
|
||||||
{ edition: "SWL", label: "SWL-Kurs", detail: "Kurzwellenhören", color: "#FFFFFF" },
|
|
||||||
{ edition: "N", label: "N-Kurs", detail: "N", color: "#47ABE8" },
|
{ edition: "N", label: "N-Kurs", detail: "N", color: "#47ABE8" },
|
||||||
{ edition: "NE", label: "E-Kurs", detail: "N + E", color: "#FE756C" },
|
{ edition: "NE", label: "E-Kurs", detail: "N + E", color: "#FE756C" },
|
||||||
{ edition: "NEA", label: "A-Kurs", detail: "N + E + A", color: "#3BB583" },
|
{ edition: "NEA", label: "A-Kurs", detail: "N + E + A", color: "#3BB583" },
|
||||||
|
|||||||
+2
-2
@@ -215,7 +215,7 @@ class Build:
|
|||||||
def __build_homework_tool(self):
|
def __build_homework_tool(self):
|
||||||
toc_target = self.config.p_build_assets / "toc"
|
toc_target = self.config.p_build_assets / "toc"
|
||||||
toc_target.mkdir(parents=True, exist_ok=True)
|
toc_target.mkdir(parents=True, exist_ok=True)
|
||||||
for edition in ("SWL", "N", "NE", "NEA", "E", "EA", "A"):
|
for edition in ("N", "NE", "NEA", "E", "EA", "A"):
|
||||||
source = self.config.p_data_toc / f"{edition}.json"
|
source = self.config.p_data_toc / f"{edition}.json"
|
||||||
if not source.exists():
|
if not source.exists():
|
||||||
source = self.config.p_data_toc / f"{edition.lower()}.json"
|
source = self.config.p_data_toc / f"{edition.lower()}.json"
|
||||||
@@ -228,7 +228,7 @@ class Build:
|
|||||||
page_scripts=[
|
page_scripts=[
|
||||||
"assets/vue.global.prod.js",
|
"assets/vue.global.prod.js",
|
||||||
"assets/question-catalog.js?ts=20260806",
|
"assets/question-catalog.js?ts=20260806",
|
||||||
"assets/homework.js?ts=202608061",
|
"assets/homework.js?ts=202608271",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
with (self.config.p_build / "hausaufgabe.html").open("w", encoding="utf-8") as file:
|
with (self.config.p_build / "hausaufgabe.html").open("w", encoding="utf-8") as file:
|
||||||
|
|||||||
Reference in New Issue
Block a user