Don't increase the edit count when some other action than edit/new page

This commit is contained in:
Frisk 2018-12-24 12:38:45 +01:00
parent e18c970201
commit a8acdf3833
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -153,6 +153,7 @@ def webhook_formatter(action, STATIC, **params):
else:
logging.debug(
"2Current params user {} and state of map_ips {}".format(params["user"], recent_changes.map_ips))
if action in ("edit", "new"):
recent_changes.map_ips[params["user"]] += 1
params["user"] = "{author} ({amount})".format(author=params["user"],
amount=recent_changes.map_ips[params["user"]])