Permalink
Browse files

factored card title handling into card_info library

  • Loading branch information...
1 parent 2492539 commit 54e16dc4a2fd9d52c45537cb8aa54bf52f12292a @rrenaud committed Jan 15, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 query_matcher.py
View
@@ -155,10 +155,7 @@ def __init__(self, **args):
if 'p2_name' in args:
self._add_name(args['p2_name'])
if 'kingdom' in args:
- def sane_title(card):
- return card.title().replace("'S", "'s").replace(' Of ', ' of ')
-
- self.kingdom_restrict = [sane_title(k).strip()
+ self.kingdom_restrict = [card_info.sane_title(k)
for k in args['kingdom'].split(',')]
self.db_query = {}

0 comments on commit 54e16dc

Please sign in to comment.