Add a count parameter to ensure all entries are searched
This commit is contained in:
parent
ad00e0c07d
commit
2cb0b5d4a6
|
@ -3,7 +3,7 @@ from string import digits
|
||||||
from utils.logging.log import *
|
from utils.logging.log import *
|
||||||
|
|
||||||
def getWhoSingle(name, query):
|
def getWhoSingle(name, query):
|
||||||
result = main.r.sscan("live.who."+name, 0, query)
|
result = main.r.sscan("live.who."+name, 0, query, count=9999999)
|
||||||
if result[1] == []:
|
if result[1] == []:
|
||||||
return None
|
return None
|
||||||
return [i.decode() for i in result[1]]
|
return [i.decode() for i in result[1]]
|
||||||
|
|
Loading…
Reference in New Issue