Commit 88a9a947 authored by Howard Xiao's avatar Howard Xiao

Use user-friendly text for privileges

parent 115dd299
......@@ -139,10 +139,11 @@ def main():
break
edit_summary = '/* 已封禁或除权用户覆审 */ 添加 {}: 属于特殊用户组的被封禁用户。'.format(user[0])
revoked_rights_friendly = '、'.join(
['{{subst:int:group-%s}}' % x for x in user[1]])
replace_page(site, REVOKE_PAGE_TITLE, REVOKE_REPLACE[0],
REVOKE_REPLACE[1] % (
user[0],
', '.join(user[1]),), edit_summary)
REVOKE_REPLACE[1] % (user[0], revoked_rights_friendly),
edit_summary)
print('Done.')
f = open('revoke_blocked_rights_timestamp.tmp', 'w')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment