Add a count parameter to ensure all entries are searched

This commit is contained in:
Mark Veidemanis 2018-08-27 21:10:49 +01:00
parent ad00e0c07d
commit 2cb0b5d4a6
1 changed files with 1 additions and 1 deletions

View File

@ -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]]