Skip to content

Commit 2abbd59

Browse files
committed
Fix after merge.
1 parent e359480 commit 2abbd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/ie3/datamodel/io/source/sql/SqlLoadProfileSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Optional<PValue> getValue(TimeSeriesInputValue data) {
106106
getEntries(queryTime, ps -> ps.setInt(1, TimeSeriesUtils.calculateQuarterHourOfDay(time)));
107107
if (entries.isEmpty()) return Optional.empty();
108108
if (entries.size() > 1) log.warn("Retrieved more than one result value, using the first");
109-
return entries.stream().findFirst().map(entry -> entry.getValue().getValue(time, loadProfile));
109+
return entries.stream().findFirst().map(entry -> entry.getValue().getValue(time, profile));
110110
}
111111

112112
@Override

0 commit comments

Comments
 (0)