Fix base and vBulletin importer

This commit is contained in:
Gerhard Schlager
2015-10-21 19:07:31 +02:00
parent 1821ba8d93
commit 6238a43f93
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ class ImportScripts::VBulletin < ImportScripts::Base
SQL
break if topics.size < 1
next if all_records_exist? :posts, topics.map {|t| "thread-#{topic["threadid"]}" }
next if all_records_exist? :posts, topics.map {|t| "thread-#{t["threadid"]}" }
create_posts(topics, total: topic_count, offset: offset) do |topic|
raw = preprocess_post_raw(topic["raw"]) rescue nil
@ -555,7 +555,7 @@ class ImportScripts::VBulletin < ImportScripts::Base
end
def mysql_query(sql)
@client.query(sql, cache_rows: false)
@client.query(sql, cache_rows: true)
end
end