Skip to content
Snippets Groups Projects
Commit 19712f6f authored by michael.minelli's avatar michael.minelli
Browse files

Correction => Add description on list

parent 6b9be3ca
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,10 @@ class ExerciseCorrectionCommand extends CommanderCommand { ...@@ -39,8 +39,10 @@ class ExerciseCorrectionCommand extends CommanderCommand {
private getCorrections(assignment: Assignment): Array<CorrectionResume> { private getCorrections(assignment: Assignment): Array<CorrectionResume> {
return assignment.corrections.map(correction => { return assignment.corrections.map(correction => {
const authors = correction.name.replace(correction.assignmentName, '').split('-')[2].trim();
return { return {
name : correction.name.replace(correction.assignmentName, '').split('-')[2].trim(), name : (correction.correctionDescription && correction.correctionDescription != '' ? `${ correction.correctionDescription } (${ authors })` : authors),
value: correction.correctionCommit?.web_url?.replace('/commit/', '/tree/') ?? '' value: correction.correctionCommit?.web_url?.replace('/commit/', '/tree/') ?? ''
}; };
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment