Commit 4e33b5d61315a2ecea4f5bff19cadec9425e5024
1 parent
2b3b0a69
Exists in
production
updating script
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
script/load_juventude_proposal
@@ -15,11 +15,12 @@ CSV.foreach(filepath, {:col_sep => ';', :force_quotes => true}) do |row| | @@ -15,11 +15,12 @@ CSV.foreach(filepath, {:col_sep => ';', :force_quotes => true}) do |row| | ||
15 | next if proposal_body.nil? | 15 | next if proposal_body.nil? |
16 | topic_name = topic_name.chomp | 16 | topic_name = topic_name.chomp |
17 | proposal_body = proposal_body.chomp | 17 | proposal_body = proposal_body.chomp |
18 | -#puts topic_name.inspect | ||
19 | -#puts proposal_body.inspect | 18 | +puts count.inspect |
19 | +puts topic_name.inspect | ||
20 | +puts proposal_body.inspect | ||
20 | topic = ProposalsDiscussionPlugin::Topic.find_by_slug(topic_name) if topic.nil? || topic.name != topic_name | 21 | topic = ProposalsDiscussionPlugin::Topic.find_by_slug(topic_name) if topic.nil? || topic.name != topic_name |
21 | 22 | ||
22 | -#puts topic.inspect | 23 | +puts topic.inspect |
23 | 24 | ||
24 | proposal = ProposalsDiscussionPlugin::Proposal.new | 25 | proposal = ProposalsDiscussionPlugin::Proposal.new |
25 | proposal.author = author | 26 | proposal.author = author |