API-32: Removing debugging stuff
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2021-10-07 20:25:24 +02:00
parent fc09c533cd
commit f45b8a9967

View File

@ -1,5 +1,3 @@
import logger from '../../../middleware/logger';
const fetch = require('node-fetch');
export const getiCalFile = async (user: string, file: string, showBlockers: boolean, electiveModule: string, profileModule: string): Promise<string> => {
@ -102,12 +100,8 @@ export const removeElective = function (ical: iCalFile, chosenElective: string):
{name: 'Robotik'},
{name: 'Web-Services'}
];
logger.info(JSON.stringify(electiveToRemove));
electiveToRemove.splice(parseInt(chosenElective), 1);
logger.info('Chosen elective: ' + chosenElective);
logger.info(JSON.stringify(electiveToRemove));
ical.body.forEach((event) => {
let addEvent = true;
electiveToRemove.forEach((module) => {
@ -136,12 +130,8 @@ export const removeProfile = function (ical: iCalFile, chosenProfile: string): i
{names: ['e Business', 'angewandtes Projektmanagement']},
{names: ['Kommunikations und Netztechnik II']}
];
logger.info(JSON.stringify(profileToRemove));
profileToRemove.splice(parseInt(chosenProfile), 1);
logger.info('Chosen profile: ' + chosenProfile);
logger.info(JSON.stringify(profileToRemove));
ical.body.forEach((event) => {
let addEvent = true;
profileToRemove.forEach((module) => {
@ -166,21 +156,3 @@ export interface iCalFile {
head: string;
body: string[];
}
let electiveModules = [
{name: 'ERP-Systeme'},
{name: 'Ethik für Informatiker'},
{name: 'Evolutionäre Algorithmen'},
{name: 'Forensik'},
{name: 'Kryptographische Verfahren'},
{name: 'Robotik'},
{name: 'Web-Services'}
];
let profileModules = [
{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']}
];