diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-09-11 11:11:01 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-09-11 11:12:45 +0200 |
| commit | 3fe944e6d4f1307efc3efd9efe91d6e2d14be995 (patch) | |
| tree | 2f5dbd7ed85998cf9cebc522ff982d076315b85c /scripts/gen_map/gen_map.py | |
| parent | 603f23b311c7558d1f624d1784a265ecafba98ab (diff) | |
| download | unterricht-3fe944e6d4f1307efc3efd9efe91d6e2d14be995.tar.gz unterricht-3fe944e6d4f1307efc3efd9efe91d6e2d14be995.zip | |
support nt_gym Informatik maps
Diffstat (limited to 'scripts/gen_map/gen_map.py')
| -rwxr-xr-x | scripts/gen_map/gen_map.py | 7 |
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 |
