aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/db/post.sql2
-rw-r--r--sources/db/pre.sql4
-rwxr-xr-xsources/db/update_characters.rb2
-rw-r--r--sources/master/languages.sql2
-rwxr-xr-xsources/wiki/extract_words.rb2
5 files changed, 6 insertions, 6 deletions
diff --git a/sources/db/post.sql b/sources/db/post.sql
index 08f33b0..bd23643 100644
--- a/sources/db/post.sql
+++ b/sources/db/post.sql
@@ -10,7 +10,7 @@ PRAGMA journal_mode = OFF;
PRAGMA synchronous = OFF;
PRAGMA count_changes = OFF;
PRAGMA temp_store = MEMORY;
-PRAGMA cache_size = 5000000;
+PRAGMA cache_size = 5000000;
CREATE UNIQUE INDEX keys_key_idx ON keys (key);
CREATE INDEX tags_key_idx ON tags (key);
diff --git a/sources/db/pre.sql b/sources/db/pre.sql
index 91bd7e7..1c752be 100644
--- a/sources/db/pre.sql
+++ b/sources/db/pre.sql
@@ -81,7 +81,7 @@ CREATE TABLE key_combinations (
count_all INTEGER,
count_nodes INTEGER,
count_ways INTEGER,
- count_relations INTEGER
+ count_relations INTEGER
);
DROP TABLE IF EXISTS tag_combinations;
@@ -94,7 +94,7 @@ CREATE TABLE tag_combinations (
count_all INTEGER,
count_nodes INTEGER,
count_ways INTEGER,
- count_relations INTEGER
+ count_relations INTEGER
);
DROP TABLE IF EXISTS relation_types;
diff --git a/sources/db/update_characters.rb b/sources/db/update_characters.rb
index a729818..1b2faaf 100755
--- a/sources/db/update_characters.rb
+++ b/sources/db/update_characters.rb
@@ -55,7 +55,7 @@ db.execute("SELECT key FROM keys").map{ |row| row['key'] }.each do |key|
keys[key] = type
break
end
- end
+ end
end
db.transaction do |db|
diff --git a/sources/master/languages.sql b/sources/master/languages.sql
index b58cce4..f32871a 100644
--- a/sources/master/languages.sql
+++ b/sources/master/languages.sql
@@ -1,6 +1,6 @@
--
-- Taginfo
---
+--
-- languages.sql
--
diff --git a/sources/wiki/extract_words.rb b/sources/wiki/extract_words.rb
index 70c483d..8f2fa16 100755
--- a/sources/wiki/extract_words.rb
+++ b/sources/wiki/extract_words.rb
@@ -71,7 +71,7 @@ class Words
@kvw.sort.uniq.each do |key, value, word|
if key != lastkey || value != lastvalue
yield lastkey, lastvalue, words.join(',')
- words = []
+ words = []
lastkey = key
lastvalue = value
else