Page MenuHomePhabricator

Thread age detecting issues on hywiki (archivebot.py)
Closed, ResolvedPublicBUG REPORT

Description

I have been using archivebot.py to archive discussion pages on Armenian Wikipedia for a few years. A few days ago I noticed that it archives threads that should not be archived (example, last reply in the "Ադմինիստրատորների պասիվություն" thread is 2 days old, but the settings on this page is 30 days).

I think the reason is that the time for the last signature is 20:15, 20 հունվարի 2024 (UTC) (հունվարի means January in Armenian but it is using lowercase հ, instead of uppercase Հ). When I look into old discussions, the uppercase version was used before and I have no idea why this changed. Anyway, I tried to modify the script and this version works fine (example). Basically, in the constructor of pywikibot.textlib.TimeStripper I change it to add both uppercase and lowercase versions for Armenian (similar to Vietnamese) month names to origNames2monthNum.

Event Timeline

Change 994332 had a related patch set uploaded (by Mpaa; author: Mpaa):

[pywikibot/core@master] [bugfix] Add hy to special languages in TimeStripper

https://gerrit.wikimedia.org/r/994332

Xqt assigned this task to Mpaa.

Change 994332 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Add hy to special languages in TimeStripper

https://gerrit.wikimedia.org/r/994332