https://bugzilla.wikimedia.org/show_bug.cgi?id=34646

--- Comment #9 from Danilo <[email protected]> ---
I think there is not a direct way to verify the patroll status. The
recentchanges table is not indexed by rc_this_oldid column, so the query
"SELECT * FROM recentchanges WHERE rc_this_oldid = <some id>" is lazy, and this
is probably the reason why API code don't have this option. But it can be
verified based in the revision timestamp.

For example we want the patroll status for the revision 39732296, the timestamp
is 20140804073720, so we make the query
https://pt.wikipedia.org/w/api.php?action=query&list=recentchanges&format=xml&rcstart=20140804073720&rcprop=timestamp|ids|patrolled&rctype=new|edit&rclimit=3
and get the patrolled/unpatrolled making the code look only the row where
'revid == 39732296'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to