From 9225f26d3cb43f13a07a5d288d2095fdca8c03b9 Mon Sep 17 00:00:00 2001 From: "ms@Nicro" Date: Mon, 8 Jan 2024 17:25:02 +0100 Subject: [PATCH] Implemented Completion Date after evaluation --- src/main/java/model/DAO/DAOExercise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/model/DAO/DAOExercise.java b/src/main/java/model/DAO/DAOExercise.java index d5e9299..0899039 100644 --- a/src/main/java/model/DAO/DAOExercise.java +++ b/src/main/java/model/DAO/DAOExercise.java @@ -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 {