pinballmap / pbm

Pinball Map
https://pinballmap.com
GNU General Public License v3.0
108 stars 25 forks source link

Event Category Missing #244

Closed fmscode closed 10 years ago

fmscode commented 10 years ago

When I try to pull all events for a given region, it does not give me valid category names or numbers.

For instance, when I pull all of the bay area events I receive a object such as this.

"event": {
    "id": 388,
    "name": "Pin-a-Go-Go",
    "longDesc": "250+ Games set on freeplay all weekend long!  Tournament with WPPR points.  Proceeds go to charity.  See http://pinagogo.org/ for details.",
    "link": "http://pinagogo.org/",
    "categoryNo": null,
    "startDate": "2014-05-16",
    "locationNo": null
}

On the website though, this event is listed in the Expo category and has a location linked to it. I'm using http://pinballmap.com/bayarea/events.json as the url.

For the new API it might be nice to receive a breakout of all the events into their categories. Which is what I think you are doing for the html response https://github.com/scottwainstock/pbm/blob/master/app/controllers/events_controller.rb#L13-17

fmscode commented 10 years ago

Fixed in 777a6faf0ad48bd5f90855e13c1a7769574ab7a7