From 4dbdf680a149207640954cc3d5aaac294532a9fc Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 22 Sep 2012 10:23:42 +0200 Subject: [PATCH] Removed a nested _GA that made made lookup fail in players.models.player_search(). Thanks to Kelketek for pointing this bug out. --- src/players/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/players/models.py b/src/players/models.py index 2c31729e4f..13c3e8a837 100644 --- a/src/players/models.py +++ b/src/players/models.py @@ -424,7 +424,7 @@ class PlayerDB(TypedObject): the Player object itself. If no Character exists (since Player is 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) if matches and return_character: try: