X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/f1ac382521315742b3127c980d58f0d6db7e057b..c9893e996c9b2a857491eb403834b900e9ab3df1:/pokedex/__init__.py diff --git a/pokedex/__init__.py b/pokedex/__init__.py index 73391dc..ccffaf2 100644 --- a/pokedex/__init__.py +++ b/pokedex/__init__.py @@ -67,7 +67,12 @@ def command_lookup(name): print "Fuzzy-matched:" for result in results: - print "%s: %s" % (result.object.__tablename__, result.object.name), + if hasattr(result.object, 'full_name'): + name = result.object.full_name + else: + name = result.object.name + + print "%s: %s" % (result.object.__tablename__, name), if result.language: print "(%s in %s)" % (result.name, result.language) else: