This commit is contained in:
Josh Smith 2019-02-11 13:34:32 -05:00
parent dba93f8bb3
commit 37730c1bb1

View File

@ -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)