aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-06-11 18:01:59 -0400
committerBobby <[email protected]>2023-06-11 18:01:59 -0400
commit7895a711a691de367fc251d5eccc94ccc45164fb (patch)
treeaa2105b7986e21281e2ce08eb6319c97978c4ed6 /middleware
parente8d456d75ad5f3b74fba1d087f73a41ba4f87773 (diff)
downloadthatcomputerscientist-7895a711a691de367fc251d5eccc94ccc45164fb.tar.xz
thatcomputerscientist-7895a711a691de367fc251d5eccc94ccc45164fb.zip
Fix online user number
Diffstat (limited to 'middleware')
-rw-r--r--middleware/uuidmiddleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/uuidmiddleware.py b/middleware/uuidmiddleware.py
index 5bef5506..87152808 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 = min(an - 1, 1)
+ an = max(an - 1, 1)
return {
'anonymous_users': an,