change some wording
[mlpccg-meta.git] / mlpccg / DeckList.py
index 415c91d..ec57645 100644 (file)
@@ -35,7 +35,7 @@ class DeckList:
         aspects_sorted = sorted(aspects.iteritems(), reverse=True, key=operator.itemgetter(1))
         aspects_sum = float(sum([aspect[1] for aspect in aspects_sorted]))
         aspects_filtered = []
-        cutoff = 0.5
+        cutoff = 0.6
         amount = 0.0
         for aspect, value in aspects_sorted:
             amount += value / aspects_sum
@@ -57,7 +57,7 @@ class DeckList:
     def ponyhead_link(self):
         cards = defaultdict(int)
         for card in self.cards:
-            cards[card['id'].replace('f', 'F')] += 1
+            cards[card['id'].replace('pf', 'PF').replace('f', 'F')] += 1
 
         cards = ['%sx%d' % (id, amount) for id, amount in cards.iteritems()]