From 1099b66492fe2399dd76adaae968d44df7e28443 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 19 Jan 2013 16:42:05 -0500 Subject: [PATCH] Fuck Untappd and their representation of empty items in JSON. Just don't include the fucking field if you don't have data for it! --- plugins/beers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/beers.go b/plugins/beers.go index 39aacb7..cc4ac81 100644 --- a/plugins/beers.go +++ b/plugins/beers.go @@ -238,10 +238,10 @@ type checkin struct { Checkin_id int Created_at string Checkin_comment string - Rating_score int - Beer map[string]interface{} - Brewery map[string]interface{} - Venue interface{} + // Rating_score int // Apparently Untappd makes this a string when not present. :( + Beer map[string]interface{} + Brewery map[string]interface{} + Venue interface{} } type checkins struct {