Skip to content

Commit 9fa975f

Browse files
committed
DE-844 go back a month to check for month dss record
1 parent 749f0b9 commit 9fa975f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eppt-core/src/main/java/gov/ca/water/calgui/busservice/impl/WaterYearTableReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private Map<Integer, WaterYearIndexModel> readDssFile()
120120
List<WaterYearType> waterYearTypes = dssReader.timeSeriesContainerToMap(primarySeries, false)
121121
.entrySet()
122122
.stream()
123-
.filter(s -> s.getKey().getMonth() == month)
123+
.filter(s -> s.getKey().minusMonths(1).getMonth() == month)
124124
.map(e -> new WaterYearType(e.getKey().minusMonths(1).getYear(),
125125
getWaterYearPeriod(waterYearIndexId, e.getValue().intValue())))
126126
.collect(toList());

0 commit comments

Comments
 (0)