Skip to content

Commit

Permalink
Updated minor semester bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanland committed Oct 2, 2018
1 parent 04d4e55 commit cd2806a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public String assignmentExists() {
updatedProjects.add(project);
String messageBody = project.getProjectName() + "\n\n" + project.getBackground() + "\n\n" + project.getDescription()
+ "\n\n";

// TODO Add stake holder email to this email
for (Student student : proj.getMembers()) {
// Set the given project for each student
Student saveStudent = userService.findByUserId(student.getUserId());
Expand Down
6 changes: 3 additions & 3 deletions server/src/main/java/capstone/model/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void setMembers(List<Student> members) {
@JsonIgnore
@Transient
String statusType; // not in db table
int semester;
String semester;
int maxSize;
int minSize;
String description;
Expand Down Expand Up @@ -161,11 +161,11 @@ public void setStatusType(String status) {
}
}

public int getSemester() {
public String getSemester() {
return semester;
}

public void setSemester(int semester) {
public void setSemester(String semester) {
this.semester = semester;
}

Expand Down
4 changes: 3 additions & 1 deletion server/src/main/java/capstone/service/ProjectService.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ public void initTables() {

Project newProject = new Project(ProjectAssignment.getStudentSatScore(1));
newProject.setProjectName(elements[0]);
//newProject.setProjectId(projects.size()); // TODO: MAKE THIS DYNAMIC WITH AUTOINCREMENT
newProject.setProjectId(projects.size()); // TODO: MAKE THIS DYNAMIC WITH AUTOINCREMENT
newProject.setMinSize(Integer.parseInt(elements[1]));
newProject.setMaxSize(Integer.parseInt(elements[2]));
newProject.setSemester("F18");
newProject.setStakeholderId(newProject.getProjectId());
projects.addElement(newProject);

System.out.println("Saving project: " + newProject.getProjectName());
Expand Down

0 comments on commit cd2806a

Please sign in to comment.