aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-31 19:07:00 -0400
committerBobby <[email protected]>2023-05-31 19:07:00 -0400
commita54ebc98875c7bcf8ccce37b32e3b89921bf67bc (patch)
tree80935fb714e3373edb82769330e3049450464f46
parentf4ccc664189c8a6ac5e63e42900b325ac25352f1 (diff)
downloadthatcomputerscientist-a54ebc98875c7bcf8ccce37b32e3b89921bf67bc.tar.xz
thatcomputerscientist-a54ebc98875c7bcf8ccce37b32e3b89921bf67bc.zip
Remove hack counter
-rw-r--r--middleware/uuidmiddleware.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/middleware/uuidmiddleware.py b/middleware/uuidmiddleware.py
index 59e6d4d4..61e4b065 100644
--- a/middleware/uuidmiddleware.py
+++ b/middleware/uuidmiddleware.py
@@ -53,10 +53,6 @@ def userTrackingContextProcessor(request):
logged_in_users.append(user_data)
if user_data['is_staff'] == True:
admin_users.append(user_data)
-
- # it looks like in production, the anonymous users is 1 more than expected
- if not settings.DEBUG:
- anonymous_users = anonymous_users[:-1]
return {
'anonymous_users': len(anonymous_users) or 0,