Fix bug in sessionhandler for csessions
This commit is contained in:
parent
457ceb1375
commit
c71371b3cf
1 changed files with 3 additions and 10 deletions
|
|
@ -15,10 +15,9 @@ There are two similar but separate stores of sessions:
|
||||||
import time
|
import time
|
||||||
from codecs import decode as codecs_decode
|
from codecs import decode as codecs_decode
|
||||||
|
|
||||||
|
import evennia
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
import evennia
|
|
||||||
from evennia.commands.cmdhandler import CMD_LOGINSTART
|
from evennia.commands.cmdhandler import CMD_LOGINSTART
|
||||||
from evennia.server.portal import amp
|
from evennia.server.portal import amp
|
||||||
from evennia.server.signals import (
|
from evennia.server.signals import (
|
||||||
|
|
@ -28,13 +27,7 @@ from evennia.server.signals import (
|
||||||
SIGNAL_ACCOUNT_POST_LOGOUT,
|
SIGNAL_ACCOUNT_POST_LOGOUT,
|
||||||
)
|
)
|
||||||
from evennia.utils.logger import log_trace
|
from evennia.utils.logger import log_trace
|
||||||
from evennia.utils.utils import (
|
from evennia.utils.utils import callables_from_module, class_from_module, delay, is_iter, make_iter
|
||||||
callables_from_module,
|
|
||||||
class_from_module,
|
|
||||||
delay,
|
|
||||||
is_iter,
|
|
||||||
make_iter,
|
|
||||||
)
|
|
||||||
|
|
||||||
_FUNCPARSER_PARSE_OUTGOING_MESSAGES_ENABLED = settings.FUNCPARSER_PARSE_OUTGOING_MESSAGES_ENABLED
|
_FUNCPARSER_PARSE_OUTGOING_MESSAGES_ENABLED = settings.FUNCPARSER_PARSE_OUTGOING_MESSAGES_ENABLED
|
||||||
_BROADCAST_SERVER_RESTART_MESSAGES = settings.BROADCAST_SERVER_RESTART_MESSAGES
|
_BROADCAST_SERVER_RESTART_MESSAGES = settings.BROADCAST_SERVER_RESTART_MESSAGES
|
||||||
|
|
@ -790,7 +783,7 @@ class ServerSessionHandler(SessionHandler):
|
||||||
sessions (list): The sessions with matching .csessid, if any.
|
sessions (list): The sessions with matching .csessid, if any.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if csessid:
|
if not csessid:
|
||||||
return []
|
return []
|
||||||
return [
|
return [
|
||||||
session for session in self.values() if session.csessid and session.csessid == csessid
|
session for session in self.values() if session.csessid and session.csessid == csessid
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue