Commit 8f19a114 by John Doe

fixed bug when selecting multiple elements from different streams

parent 657e481e
Showing with 2 additions and 1 deletions
...@@ -59,7 +59,8 @@ class LoadElementData ...@@ -59,7 +59,8 @@ class LoadElementData
req_streams.each do |stream| req_streams.each do |stream|
adapter = DbAdapter.new(stream.db.url) adapter = DbAdapter.new(stream.db.url)
data_service = LoadStreamData.new(adapter) data_service = LoadStreamData.new(adapter)
data_service.run(stream, @start_time, @end_time,elements.to_a) stream_elements = elements.select{|e| e.db_stream_id==stream.id}.to_a
data_service.run(stream, @start_time, @end_time,stream_elements)
if data_service.success? if data_service.success?
combined_data.concat(data_service.data) combined_data.concat(data_service.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment