revert importer change

This commit is contained in:
r888888888
2014-05-05 17:29:34 -07:00
committed by Toks
parent 6c4cd42565
commit 402624f6d9

View File

@@ -1,7 +1,7 @@
module Iqdb module Iqdb
class Importer class Importer
def import! def import!
Post.where("created_at >= ?", 3.months.ago).find_each do |post| Post.find_each do |post|
IO.popen("iqdb command #{Danbooru.config.iqdb_file}", "w+") do |io| IO.popen("iqdb command #{Danbooru.config.iqdb_file}", "w+") do |io|
if File.exists?(post.preview_file_path) if File.exists?(post.preview_file_path)
puts post.id puts post.id