From ca785d8e51b2be0b9032fa51a75b19bfc835a6ca Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 13 Nov 2018 19:32:18 +0100 Subject: [PATCH] Added #35 --- rcgcdw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index 342b9a2..8990f41 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -136,8 +136,8 @@ def webhook_formatter(action, STATIC, **params): logging.debug("current user: {} with cache of IPs: {}".format(params["user"], recent_changes.map_ips.keys())) if params["user"] not in list(recent_changes.map_ips.keys()): contibs = safe_read(recent_changes.safe_request( - "https://{wiki}.gamepedia.com/api.php?action=query&format=json&list=usercontribs&uclimit=max&ucuser={user}&ucprop=".format( - wiki=settings["wiki"], user=params["user"])), "query", "usercontribs") + "https://{wiki}.gamepedia.com/api.php?action=query&format=json&list=usercontribs&uclimit=max&ucuser={user}&ucstart={timestamp}&ucprop=".format( + wiki=settings["wiki"], user=params["user"], timestamp=STATIC["timestamp"])), "query", "usercontribs") if contibs is None: logging.warning( "WARNING: Something went wrong when checking amount of contributions for given IP address")