Skip to content

Commit b214cfa

Browse files
authored
Merge pull request #4 from DxsSucuk/master
Found another wrong get Call
2 parents 5eb0126 + 59deb52 commit b214cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/bytedream/untis4j/responseObjects/Timetable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public Timetable searchByStartTime(LocalTime startTime) {
302302
public Timetable searchByEndTime(LocalTime endTime) {
303303
Timetable timetable = new Timetable();
304304

305-
this.stream().filter(lesson -> lesson.getStartTime().format(DateTimeFormatter.ofPattern("HHmmss")).contains(endTime.format(DateTimeFormatter.ofPattern("HHmmss")))).forEach(timetable::add);
305+
this.stream().filter(lesson -> lesson.getEndTime().format(DateTimeFormatter.ofPattern("HHmmss")).contains(endTime.format(DateTimeFormatter.ofPattern("HHmmss")))).forEach(timetable::add);
306306

307307
return timetable;
308308
}

0 commit comments

Comments
 (0)