diff --git a/indexgen.py b/indexgen.py index 1e209fa..31576c6 100644 --- a/indexgen.py +++ b/indexgen.py @@ -1,4 +1,5 @@ import datetime,os,re +from collections import Counter import log,skel,variables,tcgcore def indexgen(): @@ -210,7 +211,7 @@ def indexgen(): tradein.append(event["event"]) except: pass - tradecommon = list(set(tradeout).intersection(tradein)) + tradecommon = list((Counter(tradeout) & Counter(tradein)).elements()) sketch = len(tradecommon) if sketch > 0: content.write("\n\n\n\n" + deckstring += "" + deckstring += "\n" if test % 5 == 0: deckstring += " \n" test += 1
9: - deckstring += str(test) + deckstring += printcard(deck + str(test)) else: - deckstring += "0" + str(test) + deckstring += printcard(deck + "0" + str(test)) else: - deckstring += "00" - deckstring += ".gif\">