Skip to content

Commit

Permalink
Add comment on release date
Browse files Browse the repository at this point in the history
Still slightly cursed but rubocop is god and the power of it compels me
ok
  • Loading branch information
AnthonySuper committed Apr 30, 2020
1 parent 64ff32a commit a4c1573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/import/wikidata_import_games.rake
Expand Up @@ -86,6 +86,7 @@ namespace 'import:wikidata' do
game_hash[name].uniq!
end

# Grab the earliest release date that we can actually parse
release_date = wikidata_json.dig('P577')&.map do |date|
date.dig('mainsnak', 'datavalue', 'value', 'time')
end&.reject(&:nil?)&.map do |time|
Expand Down

0 comments on commit a4c1573

Please sign in to comment.