Skip to content

Commit

Permalink
Implemented Completion Date after evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
ms@Nicro authored and ms@Nicro committed Jan 8, 2024
1 parent c2f7004 commit 9225f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/model/DAO/DAOExercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public boolean setExerciseExecution(int userID, int exerciseID, Date insertDate,
}

public boolean setExerciseEvaluation(int userID, int exerciseID, Date insertDate, int evaluation) {
String query = "UPDATE exercise SET Evaluation = ? WHERE ID_user = ? AND ID_exercise = ? AND InsertionDate = ?;";
String query = "UPDATE exercise SET Evaluation = ? , CompletionDate = CURRENT_DATE WHERE ID_user = ? AND ID_exercise = ? AND InsertionDate = ?;";
PreparedStatement preparedStatement = null;

try {
Expand Down

0 comments on commit 9225f26

Please sign in to comment.