Skip to content

Commit

Permalink
fix italics and bug reported by Razzishi
Browse files Browse the repository at this point in the history
  • Loading branch information
rrenaud committed Mar 1, 2012
1 parent 1c21ca6 commit 6d5ec97
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions card_filter_blurb.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@

<h3>Tips on using the card filters</h3>
<ul>
<p>
List different card names or card filters separated by a comma.
<h3>Tips on using the card filters</h3>
<ul>
<p>
List different card names or card filters separated by a comma.

Each filter is a JavaScript expression that is matched
against every card. The expression is evaluated with attributes
of the card filled as local variables. If this sounds confusing,
don't worry. Here are some examples:
Each filter is a JavaScript expression that is matched
against every card. The expression is evaluated with attributes
of the card filled as local variables. If this sounds confusing,
don't worry. Here are some examples:

<li><i>Expansion=="Dominion" || Expansion=="Intrigue"</li>
<BR>
<li><i>Cost==7</i> returns Bank, Expand, Forge, and King's Court</li>
<li><i>Cost == "P2"</i> returns Apothecary, Scrying Pool, and University</li>
<li><i>(""+Cost).indexOf("P")&gt;=0</i> returns all cards with Potion in cost</li>
<BR>
<li><i>Actions &gt;= 2</i> returns all cards that provide 2 or more Actions</li>
<li><i>Cards &lt; 2</i> returns all cards that draw either 0 or 1 Card when played</li>
<li><i>Coins == "?"</i> returns Bank, Philosopher's Stone, Pirate Ship, Salvager, Secret Chamber, Trade Route, Tribute, and Vault</li>
<li><i>Buys == 1</i> returns all cards that provide +1 Buy</li>
<li><i>VP &gt;= 6</i> returns Province and Colony</li>
<li><i>Trash == 4</i> returns Chapel</li>
<BR>
<li><i>Action && Victory</i> returns Great Hall, Islands, and Nobles</li>
<li><i>Treasure && Victory</i> returns Harem</li>
<BR>
<li><i>Attack</i> returns all Attack cards</li>
<li><i>Duration</i> returns all Duration cards</li>
<li><i>Reaction</i> returns all reaction cards</li>
</ul>
<li><i>Expansion=="Dominion" || Expansion=="Intrigue"</i></li>
<BR>
<li><i>Cost==7</i> returns Bank, Expand, Forge, and King's Court</li>
<li><i>Cost == "P2"</i> returns Apothecary, Scrying Pool, and University</li>
<li><i>(""+Cost).indexOf("P")&gt;=0</i> returns all cards with Potion in cost</li>
<BR>
<li><i>Actions &gt;= 2</i> returns all cards that provide 2 or more Actions</li>
<li><i>Cards &lt; 2</i> returns all cards that draw either 0 or 1 Card when played</li>
<li><i>Coins == "?"</i> returns Bank, Philosopher's Stone, Pirate Ship, Salvager, Secret Chamber, Trade Route, Tribute, and Vault</li>
<li><i>Buys == 1</i> returns all cards that provide +1 Buy</li>
<li><i>VP &gt;= 6</i> returns Province and Colony</li>
<li><i>Trash == 4</i> returns Chapel</li>
<BR>
<li><i>Action && Victory</i> returns Great Hall, Islands, and Nobles</li>
<li><i>Treasure && Victory</i> returns Harem</li>
<BR>
<li><i>Attack</i> returns all Attack cards</li>
<li><i>Duration</i> returns all Duration cards</li>
<li><i>Reaction</i> returns all reaction cards</li>
</ul>
2 changes: 1 addition & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def str_card_index(self, card_name):

def interaction_card_index_tuples(self, query_dict):
cards = query_dict.get('interaction', '').split(',')
cards = [c for c in cards if c] # remove empty strings
cards = [c.strip() for c in cards if c] # remove empty strings
indexes = sorted(map(self.str_card_index, cards), reverse=True)

# Singleton tuples are weird, but they make the fetching logic simpler.
Expand Down

0 comments on commit 6d5ec97

Please sign in to comment.