mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Switch Commons categories to the end of the query to prevent cases with >1 cat from messing up wikipedia and commons articles
This commit is contained in:
parent
b600f51564
commit
a2db562476
2 changed files with 4 additions and 10 deletions
|
|
@ -6,9 +6,9 @@ SELECT
|
|||
(SAMPLE(COALESCE(?class_label_preferred_language, ?class_label_any_language, "?")) as ?class_label)
|
||||
(SAMPLE(COALESCE(?icon0, ?icon1)) as ?icon)
|
||||
(SAMPLE(COALESCE(?emoji0, ?emoji1)) as ?emoji)
|
||||
(SAMPLE(?Commons_category) as ?Commons_category)
|
||||
?wikipediaArticle
|
||||
?commonsArticle
|
||||
(SAMPLE(?Commons_category) as ?Commons_category)
|
||||
WHERE {
|
||||
# Around given location...
|
||||
SERVICE wikibase:around {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue