From f461002bef30b7bc1751917ab388be8d4eab37d8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 29 Apr 2014 08:30:55 -0400 Subject: fix scoring (mostly... I managed to get a 500 while refreshing) --- lib/sampling/riot_api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sampling/riot_api.rb') diff --git a/lib/sampling/riot_api.rb b/lib/sampling/riot_api.rb index bbe9cea..4e72f91 100644 --- a/lib/sampling/riot_api.rb +++ b/lib/sampling/riot_api.rb @@ -49,7 +49,7 @@ module Sampling def perform response = open(@url) status = response.status - data = JSON::parse(response.read) + data = JSON::restore(response.read) # Error codes that RIOT uses: # "400"=>"Bad request" -- cgit v1.2.3