Skip to content

Commit

Permalink
Merged with Develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ms@Nicro authored and ms@Nicro committed Jan 17, 2024
1 parent ebdad32 commit 4448f14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/main/java/model/DAO/DAOExercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public List<SlimmerExercise> getExerciseToApprove(int therapistId){
List<SlimmerExercise> exercises = new ArrayList<>();
try {
connection = connection.isClosed() ? DAOConnection.getConnection() : connection;
String query = "SELECT e.ID_exercise, e.ID_user, eg.ExerciseName, e.InsertionDate, eg.ExerciseDescription, e.Feedback, eg.Difficulty, eg.Target, eg.Type " +
String query = "SELECT e.ID_exercise, e.ID_user, eg.ExerciseName, e.InsertionDate, eg.ExerciseDescription, e.Feedback, eg.Difficulty, eg.Target, eg.Type, e.Evaluation " +
"FROM exercise e JOIN exercise_glossary eg ON e.ID_exercise = eg.ID_exercise JOIN user u ON e.ID_user = u.ID " +
"WHERE e.CompletionDate IS NULL AND u.ID_Therapist = ? AND e.Recommended = 0";

Expand All @@ -386,7 +386,8 @@ public List<SlimmerExercise> getExerciseToApprove(int therapistId){
rs.getDate("InsertionDate"),
rs.getInt("Difficulty"),
rs.getString("Target"),
rs.getString("Type")
rs.getString("Type"),
rs.getInt("Evaluation")
);
exercises.add(exercise);
}
Expand Down
10 changes: 3 additions & 7 deletions src/main/java/model/entity/SlimmerExercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,9 @@ public int getUserId() {
public void setUserId(int userId) {
this.userId = userId;
}
}

public int getEvaluation() {
return evaluation;
}
public int getEvaluation() { return evaluation; }

public void setEvaluation(int evaluation) { this.evaluation = evaluation; }

public void setEvaluation(int vote) {
this.evaluation = evaluation;
}
}

0 comments on commit 4448f14

Please sign in to comment.