Changed so sessid.get() always returns a list for every MULTISESSION_MODE.
This commit is contained in:
parent
ddaadb9825
commit
d4a78a11a6
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ class SessidHandler(object):
|
||||||
self._cache = list(set(int(val) for val in (_GA(self.obj, "db_sessid") or "").split(",") if val))
|
self._cache = list(set(int(val) for val in (_GA(self.obj, "db_sessid") or "").split(",") if val))
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
"Returns a single integer or a list"
|
"Returns a list of one or more session ids"
|
||||||
return self._cache if _SESSID_MAX > 1 else self._cache[0] if self._cache else None
|
return self._cache
|
||||||
|
|
||||||
def add(self, sessid):
|
def add(self, sessid):
|
||||||
"Add sessid to handler"
|
"Add sessid to handler"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue