mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fix a crash
This commit is contained in:
parent
946d25de48
commit
1a3f4f6b39
|
@ -57,9 +57,7 @@ def format_user(change, recent_changes, action):
|
||||||
"Current params user {} and state of map_ips {}".format(change["user"], recent_changes.map_ips))
|
"Current params user {} and state of map_ips {}".format(change["user"], recent_changes.map_ips))
|
||||||
if action in ("edit", "new"):
|
if action in ("edit", "new"):
|
||||||
recent_changes.map_ips[change["user"]] += 1
|
recent_changes.map_ips[change["user"]] += 1
|
||||||
if settings.get("hide_ips", False):
|
change["user"] = "{author} ({amount})".format(author=change["user"] if settings.get("hide_ips", False) is False else _("Unregistered user"),
|
||||||
change["user"] = _("Unregistered user")
|
|
||||||
change["user"] = "{author} ({amount})".format(author=change["user"],
|
|
||||||
amount=recent_changes.map_ips[change["user"]])
|
amount=recent_changes.map_ips[change["user"]])
|
||||||
else:
|
else:
|
||||||
author_url = create_article_path("User:{}".format(change["user"].replace(" ", "_")))
|
author_url = create_article_path("User:{}".format(change["user"].replace(" ", "_")))
|
||||||
|
|
Loading…
Reference in a new issue