Commit 6f45a3e4 by source_reader

changed module id structure for data apps

parent 51fd08a0
Showing with 1 additions and 1 deletions
...@@ -31,7 +31,7 @@ module Joule ...@@ -31,7 +31,7 @@ module Joule
attrs = schema.slice(*JouleModule.defined_attributes) attrs = schema.slice(*JouleModule.defined_attributes)
attrs[:pid] = schema[:statistics][:pid] attrs[:pid] = schema[:statistics][:pid]
attrs[:web_interface] = schema[:has_interface] attrs[:web_interface] = schema[:has_interface]
attrs[:joule_id] = schema[:id] attrs[:joule_id] = "m#{schema[:id]}"
m = JouleModule.create(attrs) m = JouleModule.create(attrs)
# link inputs to database streams # link inputs to database streams
schema[:inputs].each do |name, path| schema[:inputs].each do |name, path|
......
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