Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from UniversityRadioYork/alyxbb-typo
Browse files Browse the repository at this point in the history
Fixes typo in On_Demand Go Model
  • Loading branch information
Keeeeeeeen authored Nov 4, 2023
2 parents d83cd72 + ce51842 commit b3a35e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/on_demand.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ func (m *OnDemandModel) GetLastMixcloudTimeslots() (timeslots []myradio.Timeslot
if err != nil {
return
}
currrentAndNext, err := m.session.GetCurrentAndNext()
currentAndNext, err := m.session.GetCurrentAndNext()
if err != nil {
return
}
// If show currently on air, remove it from previous timeslots
if currrentAndNext.Current.Id != 0 {
if currentAndNext.Current.Id != 0 {
timeslots = timeslots[1:11]
}
return
Expand Down

0 comments on commit b3a35e2

Please sign in to comment.