From b6028c39d7a28757e2a6ba09277306421ba6ea17 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 28 Aug 2013 10:43:26 +1000 Subject: [PATCH] user simulator was bust --- script/user_simulator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/user_simulator.rb b/script/user_simulator.rb index b03d77e21..5e7eab7ae 100644 --- a/script/user_simulator.rb +++ b/script/user_simulator.rb @@ -50,11 +50,11 @@ puts "Simulating activity for user id #{user.id}: #{user.name}" while true puts "Creating a random topic" - category = Category.where(secure: false).order('random()').first + category = Category.where(read_restricted: false).order('random()').first PostCreator.create(user, raw: sentence, title: sentence[0..50].strip, category: category.name) puts "creating random reply" PostCreator.create(user, raw: sentence, topic_id: last_topics.sample) - sleep 10 + sleep 2 end