import datetime,os import log,variables,skel,tcgcore def wantedgen(): if not os.path.isdir("build/wanted"): os.mkdir("build/wanted") if os.path.exists("build/wanted/index.html"): os.remove("build/wanted/index.html") thefile = "build/wanted/index.html" skel.headerwrite(thefile,"wanted") content = open(thefile,"a") content.write("
") for card in highpriority: content.write(tcgcore.cardtext(card)) if highpriority.index(card) == len(highpriority) - 1: content.write(" ") else: content.write(", ") content.write("
\n") if len(medpriority) > 0: content.write("") for card in medpriority: content.write(tcgcore.cardtext(card)) if medpriority.index(card) == len(medpriority) - 1: content.write(" ") else: content.write(", ") content.write("
\n") if len(lowpriority) > 0: content.write("") for card in lowpriority: content.write(tcgcore.cardtext(card)) if lowpriority.index(card) == len(lowpriority) - 1: content.write(" ") else: content.write(", ") content.write("
\n") content.close() skel.footerwrite(thefile) if __name__ == "__main__": wantedgen()