diff options
author | mr <mr@mrautenberg.de> | 2011-05-23 13:38:25 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-23 13:38:25 +0200 |
commit | 1b38f31db88255d90947ad5b4d2b088988ce8bbd (patch) | |
tree | b9e710986fd7e9cf00636c5a46a4fdfd4a99c037 /helper.rb | |
parent | 6f161255e47a2198624ae1bc7149b45a07a32bc9 (diff) | |
parent | cfa443a8e93bd6f0e574c7c96f4cb0895a17c6f4 (diff) |
Merge branch 'release/2.0.0'v2.0.0
Diffstat (limited to 'helper.rb')
-rw-r--r-- | helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,7 +3,7 @@ helpers do def login(username, password) logout session[:subjectid] = OpenTox::Authorization.authenticate(username, password) - LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s + #LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s if session[:subjectid] != nil session[:username] = username return true @@ -53,8 +53,7 @@ helpers do def sort(descriptors) features = {:activating => [], :deactivating => []} - - descriptors.each { |d| LOGGER.debug d.inspect; features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } + descriptors.each { |d| features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } features end |