import datetime,os import log,priority,skel 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("
High priority: ")
for card in highpriority:
content.write("" + card + "
")
if highpriority.index(card) == len(highpriority) - 1:
content.write(" ")
else:
content.write(", ")
content.write("
Medium priority: ")
for card in medpriority:
content.write("" + card + "
")
if medpriority.index(card) == len(medpriority) - 1:
content.write(" ")
else:
content.write(", ")
content.write("