Commit 6e6b016984a9d0d763bcf90c3f057dd98fbfe4c9

Authored by Leandro Santos
1 parent 05915dac
Exists in production

get topic by slug

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
script/load_juventude_proposal
... ... @@ -17,7 +17,7 @@ CSV.foreach(filepath, {:col_sep => ';', :force_quotes => true}) do |row|
17 17 proposal_body = proposal_body.chomp
18 18 #puts topic_name.inspect
19 19 #puts proposal_body.inspect
20   - topic = ProposalsDiscussionPlugin::Topic.find_by_name(topic_name) if topic.nil? || topic.name != topic_name
  20 + topic = ProposalsDiscussionPlugin::Topic.find_by_slug(topic_name) if topic.nil? || topic.name != topic_name
21 21  
22 22 #puts topic.inspect
23 23  
... ...