SemanticMediaWiki / SemanticScribunto

Provides service functions to support the Scribunto extension
Other
24 stars 14 forks source link

mw.smw.ask returns always false on printouts for category membership #40

Closed oetterer closed 6 years ago

oetterer commented 6 years ago

Setup and configuration

Issue

for a page PAGE in category member the query

local q = '[[PAGE]]|?Category|?Category:Member|?Category:INVALID'
mw.logObject(mw.smw.ask(q))

returns

table#1 {
 table#2 {
  "[[:PAGE]]",
  ["Category"] = "[[:Category:Member|Member]]",
  ["Member"] = false,
  ["INVALID"] = false,
 },
}
oetterer commented 6 years ago

i have an integration test to show the problem and a fix ready. just waiting for pr #41 to be merged.