diff --git a/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts b/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts index 73f9e46..118b2b4 100644 --- a/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts +++ b/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts @@ -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);