diff options
author | Jochen Topf <jochen@topf.org> | 2015-03-09 08:13:10 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-03-09 08:13:10 +0100 |
commit | 3bbc13dc420a11fc92a61be52badec7971cda6e2 (patch) | |
tree | 0a59698cf41eaf212f163cc0c4b1b3cfb9c16206 /sources/db | |
parent | a2ce2ec5448a98678cdaeb99b673e11ffcc8845f (diff) | |
download | taginfo-3bbc13dc420a11fc92a61be52badec7971cda6e2.tar taginfo-3bbc13dc420a11fc92a61be52badec7971cda6e2.tar.gz |
Remove superfluous semikolons at end of lines.
You know you have been programming in C++ for too long when...
Diffstat (limited to 'sources/db')
-rwxr-xr-x | sources/db/update_characters.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sources/db/update_characters.rb b/sources/db/update_characters.rb index 826e392..dbfc5cd 100755 --- a/sources/db/update_characters.rb +++ b/sources/db/update_characters.rb @@ -31,11 +31,11 @@ dir = ARGV[0] || '.' db = SQLite3::Database.new(dir + '/taginfo-db.db') db.results_as_hash = true -db.execute("PRAGMA journal_mode = OFF"); -db.execute("PRAGMA synchronous = OFF"); -db.execute("PRAGMA count_changes = OFF"); -db.execute("PRAGMA temp_store = MEMORY;"); -db.execute("PRAGMA cache_size = 5000000;"); +db.execute("PRAGMA journal_mode = OFF") +db.execute("PRAGMA synchronous = OFF") +db.execute("PRAGMA count_changes = OFF") +db.execute("PRAGMA temp_store = MEMORY") +db.execute("PRAGMA cache_size = 5000000") #------------------------------------------------------------------------------ @@ -45,7 +45,7 @@ regexes = [ [ 'letters', %r{^[\p{L}\p{M}]([\p{L}\p{M}\p{N}_:]*[\p{L}\p{M}\p{N}])?$}u ], [ 'space', %r{[\s\p{Z}]}u ], [ 'problem', %r{[=+/&<>;\@'"?%#\\,\p{C}]}u ] -]; +] keys = {} db.execute("SELECT key FROM keys").map{ |row| row['key'] }.each do |key| @@ -60,7 +60,7 @@ end db.transaction do |db| keys.each do |key, type| - db.execute("UPDATE keys SET characters=? WHERE key=?", type, key); + db.execute("UPDATE keys SET characters=? WHERE key=?", type, key) end end |