Menu

#337 Post-Python 3: Moderator queue coloring fails on multiple bot accounts

v1.0 (example)
open
nobody
None
5
2026-07-07
2026-07-07
Ahasuerus
No

Post-Python 3: Moderator queue coloring fails on multiple bot accounts. As per https://isfdb.org/wiki/index.php/User:Alvonruff/Python3_Manual_Mod_List :

In get_bot_users() (mod/common.py line 724–726), the loop iterates for bot_user in bot_users: but assigns user_id = bot_users[0] — indexing the result list rather than the current row (bot_user[0]). For a single bot user the result is correct by accident. For multiple bot users, every iteration sets user_id to the first element of the first result row, so only the first bot user is ever added to self.bot_users. All subsequent bot users are misidentified and may incorrectly receive the submissionnewbie CSS class if their wiki-edit count is below the threshold.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo