Cleaned up contact details exporting text

This commit is contained in:
Andrew Lalis 2019-05-20 16:49:36 +02:00 committed by andrewlalis
parent 3333fec82e
commit ee7026d59d
1 changed files with 9 additions and 2 deletions

View File

@ -80,10 +80,17 @@ public class ExportStudentTeams extends UserPageController {
private byte[] getContactInfo(Course course) {
StringBuilder sb = new StringBuilder("Student Team Contact Details\n");
sb.append("--------------------------------------------\n");
sb.append("Student Number, Name, Email, Github Username\n");
sb.append("--------------------------------------------\n");
for (StudentTeam team : course.getStudentTeams()) {
sb.append("2019_Team_").append(team.getId()).append(": ");
sb.append("Team ").append(team.getId()).append(":\n");
for (Student student : team.getStudents()) {
sb.append(student.getFullName()).append(" (").append(student.getEmailAddress()).append("), ");
sb.append("\t - s").append(student.getStudentNumber())
.append(", ").append(student.getFullName())
.append(", ").append(student.getEmailAddress())
.append(", ").append(student.getGithubUsername())
.append('\n');
}
sb.append("\n");
}