Skip to content

Commit

Permalink
remove code for getting nearest event in livetiming since it results …
Browse files Browse the repository at this point in the history
…in bugs with strange number orders
  • Loading branch information
konrad2002 committed Apr 12, 2024
1 parent f664a03 commit 8ddbfba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions service/event_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ func GetEventByMeetingAndNumberForLivetiming(id string, number int) (dto.EventLi
found = true
break
}
if events[i].Number > number {
eventLivetiming.NextEvent = events[i]
if i > 0 {
eventLivetiming.PrevEvent = events[i-1]
}
found = true
break
}
//if events[i].Number > number {
// eventLivetiming.NextEvent = events[i]
// if i > 0 {
// eventLivetiming.PrevEvent = events[i-1]
// }
// found = true
// break
//}
}

if !found {
Expand Down

0 comments on commit 8ddbfba

Please sign in to comment.