Fix artist finder for hentai foundry

#2489
This commit is contained in:
Toks
2015-08-11 20:28:58 -04:00
parent 554a616963
commit 8e17b4936a
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'config', 'environment'))
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
CurrentUser.user = User.admins.first
CurrentUser.ip_addr = "127.0.0.1"
ArtistUrl.where("normalized_url like 'http://pictures.hentai-foundry.com//%'").update_all("normalized_url = replace(normalized_url, 'http://pictures.hentai-foundry.com//', 'http://pictures.hentai-foundry.com/')")