Duplicate file methods wrongly use query_ary
Closed this issue · 0 comments
elifoster commented
"query": {
"pages": {
"17975": {
"pageid": 17975,
"ns": 6,
"title": "File:2014-08-06 22.15.48.png"
},
"18029": {
"pageid": 18029,
"ns": 6,
"title": "File:2014-08-07 09.56.30.png"
},
"18030": {
"pageid": 18030,
"ns": 6,
"title": "File:2014-08-07 09.15.23.png"
},
"18031": {
"pageid": 18031,
"ns": 6,
"title": "File:2014-08-07 09.26.20.png"
},
"18032": {
"pageid": 18032,
"ns": 6,
"title": "File:2014-08-07 09.16.07.png"
},
"113877": {
"pageid": 113877,
"ns": 6,
"title": "File:2016-03-12 00.39.16.png"
},
"113879": {
"pageid": 113879,
"ns": 6,
"title": "File:2016-03-12 00.47.17.png"
},
"113880": {
"pageid": 113880,
"ns": 6,
"title": "File:2016-03-12 00.55.27.png"
},
"113883": {
"pageid": 113883,
"ns": 6,
"title": "File:2016-03-12 01.06.24.png"
},
"113886": {
"pageid": 113886,
"ns": 6,
"title": "File:2016-03-12 01.10.42.png"
}
}
}
}
is an example response, but query_ary assumes the query result is simply an array of objects, not a hash of objects.
This problem is present for all duplicate file property query methods.