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()