revert importer change

This commit is contained in:
r888888888
2014-05-05 17:30:03 -07:00
parent 50b789dbd3
commit d7c419a91e
+1 -1
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