API-32: Hopefully fixing bug with not removed modules
Jenkins Production Deployment Details

This commit is contained in:
Patrick Müller 2021-10-07 20:21:36 +02:00
parent 2764ca1057
commit fc09c533cd
1 changed files with 16 additions and 2 deletions

View File

@ -93,7 +93,15 @@ export const removeBlockers = function (ical: iCalFile): iCalFile {
export const removeElective = function (ical: iCalFile, chosenElective: string): iCalFile {
let remainingEvents: string[] = [];
let electiveToRemove = electiveModules;
let electiveToRemove = [
{name: 'ERP-Systeme'},
{name: 'Ethik für Informatiker'},
{name: 'Evolutionäre Algorithmen'},
{name: 'Forensik'},
{name: 'Kryptographische Verfahren'},
{name: 'Robotik'},
{name: 'Web-Services'}
];
logger.info(JSON.stringify(electiveToRemove));
electiveToRemove.splice(parseInt(chosenElective), 1);
@ -121,7 +129,13 @@ export const removeElective = function (ical: iCalFile, chosenElective: string):
export const removeProfile = function (ical: iCalFile, chosenProfile: string): iCalFile {
let remainingEvents: string[] = [];
let profileToRemove = profileModules;
let profileToRemove = [
{names: ['.Grundlagen der KI (KI und BV)', 'Bildverarbeitung (KI und BV)']},
{names: ['Bildverarbeitung', 'Computergraphik']},
{names: ['Interaktive Systeme', 'Grundlagen der KI']},
{names: ['e Business', 'angewandtes Projektmanagement']},
{names: ['Kommunikations und Netztechnik II']}
];
logger.info(JSON.stringify(profileToRemove));
profileToRemove.splice(parseInt(chosenProfile), 1);