From dd3452015a2981d486b1a7d3ce3340cb5cb536c0 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Wed, 14 Nov 2018 23:49:22 -0500 Subject: [PATCH] Fixed a bug causing all connection events to be logged to ES on login --- webhook-bridge.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webhook-bridge.py b/webhook-bridge.py index 803324e..4d6f334 100755 --- a/webhook-bridge.py +++ b/webhook-bridge.py @@ -300,10 +300,10 @@ def main(): for idx, uuid in enumerate(diff): el.log_connection(uuid=uuid, reason=el.ConnectionReason.DISCONNECTED, count=len(PREVIOUS_PLAYER_LIST) - (idx + 1)) - # Don't bother announcing the bot's own join message (who cares) but log it for analytics still - if config.es_enabled: - el.log_connection( - uuid=action.uuid, reason=el.ConnectionReason.CONNECTED, count=len(PLAYER_LIST)) + # Don't bother announcing the bot's own join message (who cares) but log it for analytics still + if config.es_enabled: + el.log_connection( + uuid=action.uuid, reason=el.ConnectionReason.CONNECTED, count=len(PLAYER_LIST)) if config.es_enabled: el.log_connection(uuid=action.uuid, reason=el.ConnectionReason.SEEN)