\n"
deckstring += " 9:
deckstring += str(test)
else:
diff --git a/tradegen.py b/tradegen.py
new file mode 100644
index 0000000..c02b398
--- /dev/null
+++ b/tradegen.py
@@ -0,0 +1,22 @@
+import datetime,os
+import log,skel,tcgcore
+
+def tradegen():
+ if not os.path.isdir("build/trade"):
+ os.mkdir("build/trade")
+ if os.path.exists("build/trade/index.html"):
+ os.remove("build/trade/index.html")
+ thefile = "build/trade/index.html"
+ skel.headerwrite(thefile,"trade")
+ content = open(thefile,"a")
+ content.write("available for trade\n")
+ for card in tcgcore.ownedcards():
+ if card[0:4] != "sig_":
+ if not tcgcore.collecting(card[:-2]):
+ content.write(tcgcore.printcard(card))
+ content.write(" \n")
+ content.close()
+ skel.footerwrite(thefile)
+
+if __name__ == "__main__":
+ tradegen()
diff --git a/variables-template.py b/variables-template.py
index f7bff7c..87220d8 100644
--- a/variables-template.py
+++ b/variables-template.py
@@ -5,3 +5,4 @@ tradepost = "URL"
faves = ["favecard01","favecard02"]
headerbackground = "#000000"
british = True
+collectthreshold = 2
diff --git a/wantedgen.py b/wantedgen.py
index 10583b8..e56a295 100644
--- a/wantedgen.py
+++ b/wantedgen.py
@@ -31,7 +31,8 @@ def wantedgen():
elif card[:-2] in variables.medpriority:
medpriority.append(card)
else:
- lowpriority.append(card)
+ if tcgcore.collecting(card[:-2]):
+ lowpriority.append(card)
if len(highpriority) > 0:
content.write("High priority: ")
for card in highpriority:
|