Skip to content

Commit

Permalink
WIP: The nieve fix for an issue pulling categories
Browse files Browse the repository at this point in the history
Not the best fix since we'll be loosing data

(see molybdenum-99#93)
  • Loading branch information
delonnewman committed Apr 25, 2023
1 parent 8f1dad8 commit 7ae4405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/infoboxer/media_wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def list(query, limit, &processor)
return Tree::Nodes[] if response['pages'].nil?

pages = response['pages']
.values.select { |p| p['missing'].nil? }
.values.select { |p| p['missing'].nil? && !p['revisions'].nil? }
.map { |raw| Page.new(self, Parser.paragraphs(raw['revisions'].first['*'], traits), raw) }

Tree::Nodes[*pages]
Expand Down

0 comments on commit 7ae4405

Please sign in to comment.