aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-06-11 17:35:50 -0400
committerBobby <[email protected]>2023-06-11 17:35:50 -0400
commitccbe2cfc6cc8fd90890930e72815ec7b898da37b (patch)
tree2a10a668a022a76520c43b3b7989941827c289c4
parentbab48ed39da9a6312f035873ae5d2528ebcf0ab4 (diff)
downloadthatcomputerscientist-ccbe2cfc6cc8fd90890930e72815ec7b898da37b.tar.xz
thatcomputerscientist-ccbe2cfc6cc8fd90890930e72815ec7b898da37b.zip
Add robust Fix to online user number
-rw-r--r--middleware/uuidmiddleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/uuidmiddleware.py b/middleware/uuidmiddleware.py
index 847ef4ab..5bef5506 100644
--- a/middleware/uuidmiddleware.py
+++ b/middleware/uuidmiddleware.py
@@ -54,7 +54,7 @@ def userTrackingContextProcessor(request):
an = len(anonymous_users)
if user_uuid is not None:
- an = an - 1
+ an = min(an - 1, 1)
return {
'anonymous_users': an,