diff --git a/matemat/scrape.rb b/matemat/scrape.rb index dd86bdb..319be17 100644 --- a/matemat/scrape.rb +++ b/matemat/scrape.rb @@ -13,7 +13,7 @@ points = [] data = JSON.parse open("https://#{HOST}/statistics.json", :http_basic_authentication => [USER, PASSWORD]).read() points.push({ series: 'statistics', - values: data, + values: data.map { |(n, i)| [n, i.to_i] }, }) data = JSON.parse open("http://#{HOST}/summary.json", :http_basic_authentication => [USER, PASSWORD]).read()