diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-05-04 22:19:42 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-05-04 22:41:19 -0400 |
commit | 46eebe8bbf6c0102c2f921f65778a99121c91ff2 (patch) | |
tree | ffd8084f66aa9a7c57eaf24d336ba0501ab9c41f /lib/sisu/v3/db_remove.rb | |
parent | v3: concordance, output path, screen info correction (diff) |
v3: options, language setting, based on directory structure or filename
* affects multiple libraries
Diffstat (limited to 'lib/sisu/v3/db_remove.rb')
-rw-r--r-- | lib/sisu/v3/db_remove.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v3/db_remove.rb b/lib/sisu/v3/db_remove.rb index 025514b1..7644ad52 100644 --- a/lib/sisu/v3/db_remove.rb +++ b/lib/sisu/v3/db_remove.rb @@ -72,9 +72,9 @@ module SiSU_DB_remove : false end del_id=if driver_sqlite3 - @conn.get_first_value(%{ SELECT tid FROM metadata_and_text WHERE src_filename = '#{@opt.fns}'; }).to_i + @conn.get_first_value(%{ SELECT tid FROM metadata_and_text WHERE src_filename = '#{@opt.fns}' AND metadata_and_text.language_document_char = '#{@opt.lng}'; }).to_i else - x=@conn.select_one(%{ SELECT metadata_and_text.tid FROM metadata_and_text WHERE metadata_and_text.src_filename = '#{@opt.fns}'; }) + x=@conn.select_one(%{ SELECT metadata_and_text.tid FROM metadata_and_text WHERE metadata_and_text.src_filename = '#{@opt.fns}' AND metadata_and_text.language_document_char = '#{@opt.lng}'; }) x ? (x.join.to_i) : nil end if del_id |