Fix sketchpad issue, add tooltips to deck tables
This commit is contained in:
parent
193e10c197
commit
f6594cc0f8
2 changed files with 7 additions and 6 deletions
|
@ -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("<table class=\"sketchpads\">\n<tbody>\n<tr>\n<td><img src=\"/assets/sketch/")
|
||||
|
|
10
tcgcore.py
10
tcgcore.py
|
@ -86,15 +86,15 @@ def printdeck(deck):
|
|||
while test < 21:
|
||||
if test % 5 == 1:
|
||||
deckstring += " <tr>\n"
|
||||
deckstring += " <td><img src=\"/decks/" + deck + "/"
|
||||
deckstring += " <td>"
|
||||
if test in deckcards(deck):
|
||||
if test > 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\"></td>\n"
|
||||
deckstring += "<img src=\"/decks/" + deck + "/00.gif\">"
|
||||
deckstring += "</td>\n"
|
||||
if test % 5 == 0:
|
||||
deckstring += " </tr>\n"
|
||||
test += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue