tracinginsights commited on
Commit
4971268
1 Parent(s): 0bd345a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -45,7 +45,7 @@ def events_available(year: int) -> any:
45
  # get events available for a given year
46
  data = available_data.LatestData(year)
47
  events = data.get_events()
48
- events = [{"label": event, "value": i} for i, event in enumerate(events)]
49
  events.reverse()
50
 
51
  return {"events": events}
 
45
  # get events available for a given year
46
  data = available_data.LatestData(year)
47
  events = data.get_events()
48
+ events = [{"label": event, "value": event} for i, event in enumerate(events)]
49
  events.reverse()
50
 
51
  return {"events": events}