Fix get entity by exact name since 2ca8ddb

This commit is contained in:
Lonami Exo 2018-11-15 17:23:47 +01:00
parent 924b59d735
commit 0f7c2b891a

View File

@ -202,9 +202,9 @@ class MemorySession(Session):
if username and not invite:
result = self.get_entity_rows_by_username(username)
else:
key = utils.resolve_invite_link(key)[1]
if key:
result = self.get_entity_rows_by_id(key, exact=False)
tup = utils.resolve_invite_link(key)[1]
if tup:
result = self.get_entity_rows_by_id(tup, exact=False)
elif isinstance(key, int):
result = self.get_entity_rows_by_id(key, exact)