Skip to content

Commit

Permalink
Fix for blueprinter
Browse files Browse the repository at this point in the history
  • Loading branch information
cguess committed Nov 17, 2023
1 parent 108eeb9 commit ee70eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/blueprints/claim_review_blueprint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ClaimReviewBlueprint < Blueprinter::Base
}
else
if claim_review.item_reviewed.dig("appearance")&.is_a?(String)
massaged_appearance = { "url": appearance, "@type": "CreativeWork" }
massaged_appearance = { "url": claim_review.item_reviewed.dig("appearance"), "@type": "CreativeWork" }
else
massaged_appearance = claim_review.item_reviewed.dig("appearance")&.map do |appearance|
# As usual Google is weirder than us and we represent the data internally differently
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/render_exports.rake
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ namespace :render_exports do
puts "************************************"
end
ensure
File.delete(zipfile_name) if File.exist? zipfile_name
File.delete(zipfile_name) if !zipfile_name.nil? && File.exist?(zipfile_name)
end
end

0 comments on commit ee70eb5

Please sign in to comment.