Commit ff34c958e6e7ea0817a77f9aed9794fe5fdbe12d
1 parent
142827a4
Exists in
master
and in
1 other branch
Removing local identifier from ideas csv file, does not matter to users
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
app/controllers/questions_controller.rb
| ... | ... | @@ -169,6 +169,8 @@ class QuestionsController < InheritedResources::Base |
| 169 | 169 | |
| 170 | 170 | @question = current_user.questions.find(params[:id]) |
| 171 | 171 | |
| 172 | + puts "redis key is::::: #{redis_key}" | |
| 173 | + | |
| 172 | 174 | @question.send_later :export_and_delete, type, |
| 173 | 175 | :response_type => response_type, :redis_key => redis_key, :delete_at => 3.days.from_now |
| 174 | 176 | ... | ... |
app/models/question.rb
| ... | ... | @@ -356,7 +356,7 @@ class Question < ActiveRecord::Base |
| 356 | 356 | when 'ideas' |
| 357 | 357 | outfile = "ideamarketplace_#{self.id}_ideas.csv" |
| 358 | 358 | headers = ['Ideamarketplace ID','Idea ID', 'Idea Text', 'Wins', 'Losses', 'Times involved in Cant Decide', 'Score', |
| 359 | - 'User Submitted', 'Session ID', 'Created at', 'Last Activity', 'Active', 'Local Identifier', | |
| 359 | + 'User Submitted', 'Session ID', 'Created at', 'Last Activity', 'Active', | |
| 360 | 360 | 'Appearances on Left', 'Appearances on Right'] |
| 361 | 361 | when 'skips' |
| 362 | 362 | outfile = "ideamarketplace_#{self.id}_skips.csv" |
| ... | ... | @@ -401,7 +401,7 @@ class Question < ActiveRecord::Base |
| 401 | 401 | num_skips = self.skips.count(:conditions => {:prompt_id => left_prompts_ids + right_prompts_ids}) |
| 402 | 402 | |
| 403 | 403 | csv << [c.question_id, c.id, "'#{c.data.strip}'", c.wins, c.losses, num_skips, c.score, |
| 404 | - user_submitted , c.item.creator_id, c.created_at, c.updated_at, c.active, c.local_identifier, | |
| 404 | + user_submitted , c.item.creator_id, c.created_at, c.updated_at, c.active, | |
| 405 | 405 | left_appearances, right_appearances] |
| 406 | 406 | end |
| 407 | 407 | when 'skips' | ... | ... |