From 37730c1bb1db20d65f9935b55482164c74a4a1e5 Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Mon, 11 Feb 2019 13:34:32 -0500 Subject: [PATCH] woops --- handlers/getReplayHandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/getReplayHandler.py b/handlers/getReplayHandler.py index 1c16c27..1446122 100644 --- a/handlers/getReplayHandler.py +++ b/handlers/getReplayHandler.py @@ -54,7 +54,8 @@ class handler(requestsManager.asyncRequestHandler): # Increment 'replays watched by others' if needed if replayData is not None: - userUtils.incrementReplaysWatched(replayData["userid"], replayData["play_mode"], replayData["mods"]) + if username != replayData["uname"]: + userUtils.incrementReplaysWatched(replayData["userid"], replayData["play_mode"], replayData["mods"]) log.info("Serving replay_{}.osr".format(replayID)) fileName = ".data/replays/replay_{}.osr".format(replayID)