Commit b2c46627d53c1fe002e8c34709cd9a1580d11ecf

Authored by Luke Baker
1 parent 1d4cbec7

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 219 LEFT JOIN appearances
220 220 ON (votes.question_id = appearances.question_id AND votes.id = appearances.answerable_id AND appearances.answerable_type = 'Vote')
221 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 223 AND votes.question_id = #{question.id}"
224 224 bad_records = Vote.connection.select_all votes_sql
225 225 bad_records.each do |record|
... ... @@ -230,7 +230,7 @@ namespace :test_api do
230 230 LEFT JOIN appearances
231 231 ON (skips.question_id = appearances.question_id AND skips.id = appearances.answerable_id AND appearances.answerable_type = 'Skip')
232 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 234 AND skips.question_id = #{question.id}"
235 235 bad_records = Skip.connection.select_all skips_sql
236 236 bad_records.each do |record|
... ...