summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-12-11 17:06:50 +0100
committerPatrick Simianer <p@simianer.de>2015-12-11 17:06:50 +0100
commitc273faedee7b0c73945dfd8fdab15d655b6c4f3a (patch)
tree03024cde8ff1c622a2a2f23d70696411b0af8847 /server.rb
parent7c179958222b95939ff1881a49126e08a38d489e (diff)
save original view as svg
Diffstat (limited to 'server.rb')
-rwxr-xr-xserver.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.rb b/server.rb
index 88f8c9a..48052ca 100755
--- a/server.rb
+++ b/server.rb
@@ -241,6 +241,7 @@ post '/next' do # (receive post-edit, update models), send next translation
$db['feedback'] << reply
$db['post_edits_raw'] << post_edit
$db['svg'] << data['svg']
+ $db['original_svg'] << data['original_svg']
$db['durations'] << data['duration'].to_f
$db['post_edits_display'] << send_recv(:detokenizer, post_edit)
# 1. tokenize
@@ -480,6 +481,7 @@ get '/reset_progress' do # reset current session
$db['derivations'].clear
$db['derivations_proc'].clear
$db['svg'].clear
+ $db['original_svg'].clear
$db['feedback'].clear
$db['progress'] = -1
update_database true