Removed a nested _GA that made made lookup fail in players.models.player_search(). Thanks to Kelketek for pointing this bug out.

This commit is contained in:
Griatch 2012-09-22 10:23:42 +02:00
parent e874343387
commit 4dbdf680a1

View file

@ -424,7 +424,7 @@ class PlayerDB(TypedObject):
the Player object itself. If no Character exists (since Player is the Player object itself. If no Character exists (since Player is
OOC), None will be returned. OOC), None will be returned.
""" """
matches = _GA(_GA(_GA(self, "_class__"), "objects"), "player_search")(ostring) matches = _GA(self, "__class__").objects.player_search(ostring)
matches = _AT_SEARCH_RESULT(self, ostring, matches, global_search=True) matches = _AT_SEARCH_RESULT(self, ostring, matches, global_search=True)
if matches and return_character: if matches and return_character:
try: try: