Skip to content

Commit

Permalink
Student Sectioning: Request Priority Report
Browse files Browse the repository at this point in the history
- include the first column with student id (__Student)
- this will make the report clickable in UniTime (showing details about the student)
  • Loading branch information
tomas-muller committed Oct 18, 2021
1 parent 9ad6480 commit 2367140
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/cpsolver/studentsct/report/RequestPriorityTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public StudentSectioningModel getModel() {
public CSVFile create(Assignment<Request, Enrollment> assignment, DataProperties properties) {
CSVFile csv = new CSVFile();
csv.setHeader(new CSVFile.CSVField[] {
new CSVFile.CSVField("__Student"),
new CSVFile.CSVField("Student"),
new CSVFile.CSVField("Course"),
new CSVFile.CSVField("Alternative"),
Expand All @@ -90,7 +91,8 @@ public CSVFile create(Assignment<Request, Enrollment> assignment, DataProperties
for (Course course: cr.getCourses()) {
int alternative = (primary == 0 || alternativity > 0 ? 1 : 0);
int enrolled = (e != null && e.getCourse().equals(course) ? 1 : 0);
csv.addLine(new CSVFile.CSVField[] {
csv.addLine(new CSVFile.CSVField[] {
new CSVFile.CSVField(student.getId()),
new CSVFile.CSVField(student.getExternalId()),
new CSVFile.CSVField(cr.getCourses().get(alternativity).getName()),
new CSVFile.CSVField(alternative),
Expand Down

0 comments on commit 2367140

Please sign in to comment.