Commons:Bots/Requests/MDanielsBot 6

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

MDanielsBot (talk · contribs) 6

Operator: Mdaniels5757 (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Fix double (or more) category redirects using the same script as is used on enwiki ([1]). Example edits: Special:Diff/779245240, Special:Diff/779245280

Automatic or manually assisted: Automatic unsupervised

Edit type (e.g. Continuous, daily, one time run): As needed

Maximum edit rate (e.g. edits per minute): Pywikibot default

Bot flag requested: (Y/N): Already flagged

Programming language(s): Python

—‍Mdaniels5757 (talk • contribs) 16:50, 1 July 2023 (UTC)[reply]

Discussion

Reason for doing this: I noticed when clearing Category:Broken category redirects that a lot of things in there were double redirects. Although I fixed those manually, it would be better for a bot to. —‍Mdaniels5757 (talk • contribs) 16:52, 1 July 2023 (UTC)[reply]

I think it's fine to use script proven in other project. --EugeneZelenko (talk) 14:44, 2 July 2023 (UTC)[reply]
Template:Category redirect/doc says the namespace should not be included. RZuo (talk) 18:03, 2 July 2023 (UTC)[reply]
@RZuo I'm not sure why it says that, but I fixed the code to do so. Example edit here. —‍Mdaniels5757 (talk • contribs) 03:17, 3 July 2023 (UTC)[reply]

Approved. --Krd 04:02, 6 July 2023 (UTC)[reply]