summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-24 11:30:30 +0200
committerPatrick Simianer <p@simianer.de>2015-06-24 11:30:30 +0200
commit9a9636ec8dab9d2e650e56e56fade1f185d2ad3e (patch)
tree6138adb6a6f09cd7107394733c7eb368e38d22b5 /server.rb
parent94d21adbd3e6dcff27de3207c050569e500ac2c0 (diff)
data -> session
Diffstat (limited to 'server.rb')
-rwxr-xr-xserver.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.rb b/server.rb
index 2122979..beb7202 100755
--- a/server.rb
+++ b/server.rb
@@ -210,10 +210,10 @@ get '/next' do # (receive post-edit, update models), send next translation
end
get '/debug' do # debug view
- fn = "#{WORK_DIR}/dtrain.debug.json"
+ fn = "#{WORK_DIR}/dtrain.debug.json" # TODO: other tools
data = JSON.parse ReadFile.read(fn).force_encoding("UTF-8")
- haml :debug, :locals => { :data => data }
+ haml :debug, :locals => { :data => data, :session_key => SESSION_KEY }
end
get '/confirm' do # client confirms received translation