Skip to content

Commit

Permalink
Merge pull request #93 from dianarrmiranda/hotfix/26-desenvolvimento-…
Browse files Browse the repository at this point in the history
…consumo-agua

Fixed waterConsumption not appearing issue
  • Loading branch information
jnluis authored Dec 19, 2023
2 parents de87d65 + f842fb2 commit fa5f476
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ public void receiveMessage(String message) {
// make it a LocalDate
LocalDate startDateLocalDate = startDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();

System.out.println("startDateLocalDate: " + startDateLocalDate);
System.out.println("d: " + d);
// display how many days have passed since the creation of the vine
System.out.println("Days since the creation of the vine: " + ChronoUnit.DAYS.between(startDateLocalDate, d));

// if the phase is 'bud' and it has been 2 weeks since the creation of the vine, evolve to 'flower'
if (vine.getPhase().equals("bud")) {
// the current date is d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void removeOldWaterConsumptionTracks() {

// get the waterConsumption tracks older than 7 days ago using column day
List<Track> oldWaterConsumptionTracks = trackRepo.getOldWaterConsumptionTracks(lastTrackDate.minusDays(7));
trackRepo.deleteAll(oldWaterConsumptionTracks);
// trackRepo.deleteAll(oldWaterConsumptionTracks);
}

public List<Track> getLastTrackByVineId(Integer vineId) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fa5f476

Please sign in to comment.