aboutsummaryrefslogtreecommitdiff
path: root/sources/wiki
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-03-09 08:13:10 +0100
committerJochen Topf <jochen@topf.org>2015-03-09 08:13:10 +0100
commit3bbc13dc420a11fc92a61be52badec7971cda6e2 (patch)
tree0a59698cf41eaf212f163cc0c4b1b3cfb9c16206 /sources/wiki
parenta2ce2ec5448a98678cdaeb99b673e11ffcc8845f (diff)
downloadtaginfo-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/wiki')
-rwxr-xr-xsources/wiki/get_wiki_data.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/wiki/get_wiki_data.rb b/sources/wiki/get_wiki_data.rb
index 4d8029c..e219441 100755
--- a/sources/wiki/get_wiki_data.rb
+++ b/sources/wiki/get_wiki_data.rb
@@ -367,10 +367,10 @@ class Cache
puts "Page #{ page.title } in cache (#{ page.timestamp })"
return
end
- @db.execute("DELETE FROM cache.cache_pages WHERE title=?", page.title);
+ @db.execute("DELETE FROM cache.cache_pages WHERE title=?", page.title)
res = @api.get(page.params)
page.content = res.body
- @db.execute("INSERT INTO cache.cache_pages (title, timestamp, body) VALUES (?, ?, ?)", page.title, page.timestamp, page.content);
+ @db.execute("INSERT INTO cache.cache_pages (title, timestamp, body) VALUES (?, ?, ?)", page.title, page.timestamp, page.content)
puts "Page #{ page.title } not in cache (#{ page.timestamp })"
end
@@ -383,7 +383,7 @@ class Cache
to_delete = @current_pagetitles.keys
puts "Deleting pages from cache: #{ to_delete.join(' ') }"
to_delete.each do |title|
- @db.execute("DELETE FROM cache.cache_pages WHERE title=?", title);
+ @db.execute("DELETE FROM cache.cache_pages WHERE title=?", title)
end
end