diff options
author | gebele <gebele@in-silico.ch> | 2017-07-13 07:41:33 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2017-07-13 07:41:33 +0000 |
commit | 7870cd69eaa1f0c62d980fb40c45abaacd8c71d2 (patch) | |
tree | d5b09847022fd1fcc6bc674125cfeffaa0c18a7e /lib/feature.rb | |
parent | 48fd81bd82037c1faae9860b9b1b4017b1aa27e0 (diff) |
updated qmrf report; consistent use of uri list for features
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index 140cc25..06a5b37 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -7,10 +7,9 @@ get "/feature/?" do return uri_list.join("\n") + "\n" when "application/json" features = JSON.parse features.to_json - features.each_index do |idx| - features[idx][:URI] = uri("/feature/#{features[idx]["_id"]["$oid"]}") - end - return features.to_json + list = [] + features.each{|f| list << uri("/feature/#{f["_id"]["$oid"]}")} + return list.to_json else bad_request_error "Mime type #{@accept} is not supported." end |