1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00

Add messages to now.

This commit is contained in:
Dan Barber 2013-01-31 14:26:46 +00:00
parent 5d21de346d
commit c41b7823ff

View File

@ -27,7 +27,7 @@ class Tubestatus < Sinatra::Base
{ :id => line["Line"].first["Name"].downcase.gsub(/ (and)?/, ""),
:name => line["Line"].first["Name"],
:status => line["Status"].first["Description"].downcase,
:messages => [] }
:messages => line["StatusDetails"].empty? ? [] : [line["StatusDetails"]] }
end
JSON data