Don't increase request tracker number before actually sending it

This commit is contained in:
shortcutme 2018-08-26 22:57:09 +02:00
parent 92db3878cf
commit b43a05b662
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -163,7 +163,6 @@ class SiteAnnouncer(object):
last_status = self.stats[tracker]["status"] last_status = self.stats[tracker]["status"]
self.stats[tracker]["status"] = "announcing" self.stats[tracker]["status"] = "announcing"
self.stats[tracker]["time_request"] = time.time() self.stats[tracker]["time_request"] = time.time()
self.stats[tracker]["num_request"] += 1
if config.verbose: if config.verbose:
self.site.log.debug("Tracker announcing to %s (mode: %s)" % (tracker, mode)) self.site.log.debug("Tracker announcing to %s (mode: %s)" % (tracker, mode))
if mode == "update": if mode == "update":