Don’t show negative trade balances, don’t trade away faves
This commit is contained in:
parent
bc66981557
commit
fadfd38754
1 changed files with 5 additions and 2 deletions
|
@ -123,7 +123,7 @@ for event in log.log:
|
|||
thecard["priority"] = 1
|
||||
else:
|
||||
if thecard["priority"] == 0:
|
||||
if thedeck in variables.highpriority:
|
||||
if thedeck in variables.highpriority or thecard["name"] in variables.faves:
|
||||
thecard["priority"] = 1
|
||||
elif len(thecard["mass"]) > 0:
|
||||
thecard["priority"] = 3
|
||||
|
@ -1156,7 +1156,10 @@ def indexgen():
|
|||
if len(variables.subfolder) > 0:
|
||||
content.write("/" + variables.subfolder)
|
||||
content.write("/assets/banner.png\" loading=\"lazy\">")
|
||||
content.write("\n<ul>\n<li>player name: <span class=\"name\">" + variables.name + "</span></li>\n<li>" + str(len(cardlist) + tradepend) + " cards <span class=\"rank " + rank + "\">(" + rank + ")</span></li>\n<li>" + str(tradepend) + " cards held for trades</li>\n<li>started <code>" + firstdate.strftime("%Y-%m-%d") + "</code></li>\n<li>last updated <code>" + datetime.datetime.now().strftime("%Y-%m-%d") + "</code></li>\n<li><a href=\"https://git.praze.net/tre/tcg\" target=\"_blank\">code</a> ")
|
||||
content.write("\n<ul>\n<li>player name: <span class=\"name\">" + variables.name + "</span></li>\n<li>" + str(len(cardlist) + tradepend) + " cards <span class=\"rank " + rank + "\">(" + rank + ")</span></li>\n")
|
||||
if tradepend > 0:
|
||||
content.write("<li>" + str(tradepend) + " cards held for trades</li>\n")
|
||||
content.write("<li>started <code>" + firstdate.strftime("%Y-%m-%d") + "</code></li>\n<li>last updated <code>" + datetime.datetime.now().strftime("%Y-%m-%d") + "</code></li>\n<li><a href=\"https://git.praze.net/tre/tcg\" target=\"_blank\">code</a> ")
|
||||
if variables.name == "Mez":
|
||||
content.write("under construction")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue