Fix Get User Call
This commit is contained in:
parent
9fdd3ddc08
commit
52db8210d8
@ -187,7 +187,10 @@ class DBInterface():
|
||||
return self.dbi.list_users()
|
||||
|
||||
def get_user(self, id):
|
||||
return self.dbi.get_user(id)
|
||||
if self.cache.get(id) is None:
|
||||
self.cache.set(id,self.dbi.get_user(id))
|
||||
return self.cache.get(id)
|
||||
|
||||
|
||||
def user_exists(self, username):
|
||||
if self.cache.get(username) is not None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user