Commit b2c46627d53c1fe002e8c34709cd9a1580d11ecf
1 parent
1d4cbec7
Exists in
master
and in
1 other branch
be more verbose about which answers don't need appearances
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/tasks/test_api.rake
@@ -219,7 +219,7 @@ namespace :test_api do | @@ -219,7 +219,7 @@ namespace :test_api do | ||
219 | LEFT JOIN appearances | 219 | LEFT JOIN appearances |
220 | ON (votes.question_id = appearances.question_id AND votes.id = appearances.answerable_id AND appearances.answerable_type = 'Vote') | 220 | ON (votes.question_id = appearances.question_id AND votes.id = appearances.answerable_id AND appearances.answerable_type = 'Vote') |
221 | WHERE appearances.id IS NULL | 221 | WHERE appearances.id IS NULL |
222 | - AND (votes.validity_information IS NULL OR votes.validity_information NOT LIKE 'Appearance %') | 222 | + AND (votes.validity_information IS NULL OR votes.validity_information NOT LIKE 'Appearance % already answered') |
223 | AND votes.question_id = #{question.id}" | 223 | AND votes.question_id = #{question.id}" |
224 | bad_records = Vote.connection.select_all votes_sql | 224 | bad_records = Vote.connection.select_all votes_sql |
225 | bad_records.each do |record| | 225 | bad_records.each do |record| |
@@ -230,7 +230,7 @@ namespace :test_api do | @@ -230,7 +230,7 @@ namespace :test_api do | ||
230 | LEFT JOIN appearances | 230 | LEFT JOIN appearances |
231 | ON (skips.question_id = appearances.question_id AND skips.id = appearances.answerable_id AND appearances.answerable_type = 'Skip') | 231 | ON (skips.question_id = appearances.question_id AND skips.id = appearances.answerable_id AND appearances.answerable_type = 'Skip') |
232 | WHERE appearances.id IS NULL | 232 | WHERE appearances.id IS NULL |
233 | - AND (skips.validity_information IS NULL OR skips.validity_information NOT LIKE 'Appearance %') | 233 | + AND (skips.validity_information IS NULL OR skips.validity_information NOT LIKE 'Appearance % already answered') |
234 | AND skips.question_id = #{question.id}" | 234 | AND skips.question_id = #{question.id}" |
235 | bad_records = Skip.connection.select_all skips_sql | 235 | bad_records = Skip.connection.select_all skips_sql |
236 | bad_records.each do |record| | 236 | bad_records.each do |record| |