mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
fix and test TOTAL_USERS count
Don't assume UserDict contains all users which assumption led to double-counting when a user in the db was loaded into the dict cache
This commit is contained in:
@@ -69,7 +69,6 @@ class UserDict(dict):
|
||||
"""Add a user to the UserDict"""
|
||||
if orm_user.id not in self:
|
||||
self[orm_user.id] = self.from_orm(orm_user)
|
||||
TOTAL_USERS.inc()
|
||||
return self[orm_user.id]
|
||||
|
||||
def __contains__(self, key):
|
||||
|
Reference in New Issue
Block a user