Commit b30ff5ab1393517e3f454dace62bad007694634b
1 parent
0463c271
Exists in
master
and in
1 other branch
change question.id to ideamarketplace.id in CSV
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/question.rb
... | ... | @@ -512,14 +512,14 @@ class Question < ActiveRecord::Base |
512 | 512 | when 'votes' |
513 | 513 | outfile = "ideamarketplace_#{self.id}_votes.csv" |
514 | 514 | |
515 | - headers = ['Vote ID', 'Session ID', 'Question ID','Winner ID', 'Winner Text', 'Loser ID', 'Loser Text', 'Prompt ID', 'Left Choice ID', 'Right Choice ID', 'Created at', 'Updated at', 'Response Time (s)', 'Missing Response Time Explanation', 'Session Identifier', 'Valid'] | |
515 | + headers = ['Vote ID', 'Session ID', 'Ideamarketplace ID','Winner ID', 'Winner Text', 'Loser ID', 'Loser Text', 'Prompt ID', 'Left Choice ID', 'Right Choice ID', 'Created at', 'Updated at', 'Response Time (s)', 'Missing Response Time Explanation', 'Session Identifier', 'Valid'] | |
516 | 516 | |
517 | 517 | when 'ideas' |
518 | 518 | outfile = "ideamarketplace_#{self.id}_ideas.csv" |
519 | 519 | headers = ['Ideamarketplace ID','Idea ID', 'Idea Text', 'Wins', 'Losses', 'Times involved in Cant Decide', 'Score', 'User Submitted', 'Session ID', 'Created at', 'Last Activity', 'Active', 'Appearances on Left', 'Appearances on Right'] |
520 | 520 | when 'non_votes' |
521 | 521 | outfile = "ideamarketplace_#{self.id}_non_votes.csv" |
522 | - headers = ['Record Type', 'Record ID', 'Session ID', 'Question ID','Left Choice ID', 'Left Choice Text', 'Right Choice ID', 'Right Choice Text', 'Prompt ID', 'Reason', 'Created at', 'Updated at', 'Response Time (s)', 'Missing Response Time Explanation', 'Session Identifier', 'Valid'] | |
522 | + headers = ['Record Type', 'Record ID', 'Session ID', 'Ideamarketplace ID','Left Choice ID', 'Left Choice Text', 'Right Choice ID', 'Right Choice Text', 'Prompt ID', 'Reason', 'Created at', 'Updated at', 'Response Time (s)', 'Missing Response Time Explanation', 'Session Identifier', 'Valid'] | |
523 | 523 | else |
524 | 524 | raise "Unsupported export type: #{type}" |
525 | 525 | end | ... | ... |