summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
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