20 lines
588 B
Python
20 lines
588 B
Python
import datetime,os
|
|
import log,skel,tcgcore
|
|
|
|
def ownedgen():
|
|
if not os.path.isdir("build/owned"):
|
|
os.mkdir("build/owned")
|
|
if os.path.exists("build/owned/index.html"):
|
|
os.remove("build/owned/index.html")
|
|
thefile = "build/owned/index.html"
|
|
skel.headerwrite(thefile,"owned")
|
|
content = open(thefile,"a")
|
|
content.write("<h1>owned cards</h1>\n<p>")
|
|
for card in tcgcore.ownedcards():
|
|
content.write(tcgcore.printcard(card))
|
|
content.write("</p>\n")
|
|
content.close()
|
|
skel.footerwrite(thefile)
|
|
|
|
if __name__ == "__main__":
|
|
ownedgen()
|