From 1fd15b6a954b5b941830cf4a870e23084dd0852a Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 24 Dec 2018 12:38:45 +0100 Subject: [PATCH] Don't increase the edit count when some other action than edit/new page --- rcgcdw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index c8269db..503ec78 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -153,7 +153,8 @@ def webhook_formatter(action, STATIC, **params): else: logging.debug( "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"], amount=recent_changes.map_ips[params["user"]]) else: