-
Konrad Mohrfeldt authored
The radio program is a continuous stream of program slots. Clients can expect that the program generated for their queries fit the start and end parameters given by the client. However, they *cannot* expect the actual radio program (in the form of Timeslot objects) to fit these artifical boundaries. As the program endpoint should always output the actual program broadcasted by the radio we must include timeslots that * have started before the specified start query but end after it * or end after the specified end query but start before it. The changes in this commit ensure that the program matches the given range exactly and that planned timeslots in that range are always included.
Konrad Mohrfeldt authoredThe radio program is a continuous stream of program slots. Clients can expect that the program generated for their queries fit the start and end parameters given by the client. However, they *cannot* expect the actual radio program (in the form of Timeslot objects) to fit these artifical boundaries. As the program endpoint should always output the actual program broadcasted by the radio we must include timeslots that * have started before the specified start query but end after it * or end after the specified end query but start before it. The changes in this commit ensure that the program matches the given range exactly and that planned timeslots in that range are always included.