From ee7026d59d58fe345c7928d5f69046a3da859669 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 20 May 2019 16:49:36 +0200 Subject: [PATCH] Cleaned up contact details exporting text --- .../entity/student_teams/ExportStudentTeams.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/nl/andrewlalis/teaching_assistant_assistant/controllers/courses/entity/student_teams/ExportStudentTeams.java b/src/main/java/nl/andrewlalis/teaching_assistant_assistant/controllers/courses/entity/student_teams/ExportStudentTeams.java index d198cb2..d4c0f84 100644 --- a/src/main/java/nl/andrewlalis/teaching_assistant_assistant/controllers/courses/entity/student_teams/ExportStudentTeams.java +++ b/src/main/java/nl/andrewlalis/teaching_assistant_assistant/controllers/courses/entity/student_teams/ExportStudentTeams.java @@ -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"); }