From 9a9636ec8dab9d2e650e56e56fade1f185d2ad3e Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 24 Jun 2015 11:30:30 +0200 Subject: data -> session --- server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.rb') 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 -- cgit v1.2.3