mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Don't increase the edit count when some other action than edit/new page
This commit is contained in:
parent
e18c970201
commit
a8acdf3833
|
@ -153,7 +153,8 @@ def webhook_formatter(action, STATIC, **params):
|
||||||
else:
|
else:
|
||||||
logging.debug(
|
logging.debug(
|
||||||
"2Current params user {} and state of map_ips {}".format(params["user"], recent_changes.map_ips))
|
"2Current params user {} and state of map_ips {}".format(params["user"], recent_changes.map_ips))
|
||||||
recent_changes.map_ips[params["user"]] += 1
|
if action in ("edit", "new"):
|
||||||
|
recent_changes.map_ips[params["user"]] += 1
|
||||||
params["user"] = "{author} ({amount})".format(author=params["user"],
|
params["user"] = "{author} ({amount})".format(author=params["user"],
|
||||||
amount=recent_changes.map_ips[params["user"]])
|
amount=recent_changes.map_ips[params["user"]])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue