From 8dcc61817f0bdaebc3815097926c45c6ba92df04 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 18 Jan 2023 17:51:32 +0000 Subject: [PATCH] Don't log pinball high score get --- apiserver/apiserver/api/throttles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/throttles.py b/apiserver/apiserver/api/throttles.py index e2aeb57..88c2b7f 100644 --- a/apiserver/apiserver/api/throttles.py +++ b/apiserver/apiserver/api/throttles.py @@ -19,11 +19,13 @@ class LoggingThrottle(throttling.BaseThrottle): if path.startswith('/lockout/'): return True elif path == '/stats/sign/': - pass + pass # log this one elif path.startswith('/stats/'): return True elif path == '/sessions/' and user == None: return True + elif path in ['/pinball/high_scores/']: + return True if request.data: if type(request.data) is not dict: