aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_map/gen_map.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-09-11 11:11:01 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-09-11 11:12:45 +0200
commit3fe944e6d4f1307efc3efd9efe91d6e2d14be995 (patch)
tree2f5dbd7ed85998cf9cebc522ff982d076315b85c /scripts/gen_map/gen_map.py
parent603f23b311c7558d1f624d1784a265ecafba98ab (diff)
downloadunterricht-3fe944e6d4f1307efc3efd9efe91d6e2d14be995.tar.gz
unterricht-3fe944e6d4f1307efc3efd9efe91d6e2d14be995.zip
support nt_gym Informatik maps
Diffstat (limited to 'scripts/gen_map/gen_map.py')
-rwxr-xr-xscripts/gen_map/gen_map.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/gen_map/gen_map.py b/scripts/gen_map/gen_map.py
index 979045b6..8b3ebc0f 100755
--- a/scripts/gen_map/gen_map.py
+++ b/scripts/gen_map/gen_map.py
@@ -52,8 +52,8 @@ WEEKLY_HOURS = {
11: 2
},
'nt_gym': {
- 6: 2,
- 7: 2
+ 6: 1,
+ 7: 1
}
}
@@ -189,6 +189,9 @@ def get_lehrplan(subject: str, form: str, form_type: str) -> Lehrplan:
lehrplan[int(num.split('.')[0]) - 1].subsections.append(
LehrplanSection(num, summary, duration))
+ if subject == 'nt_gym':
+ return [s for s in lehrplan if 'Informatik' in s.summary]
+
return lehrplan