From f6594cc0f8034c9b2baadbcad2dc618ba131a901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sun, 3 Nov 2024 10:24:43 +0000 Subject: [PATCH] Fix sketchpad issue, add tooltips to deck tables --- indexgen.py | 3 ++- tcgcore.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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\">