add <info> key

This commit is contained in:
tooomm
2020-03-29 23:39:01 +02:00
committed by GitHub
parent a54349b037
commit 9f5b4c45a1

View File

@@ -197,6 +197,14 @@ def open_header(card_xml_file: IO[Any]) -> None:
+ " \n"
+ " THIS FILE IS AUTOMATICALLY GENERATED & ALL EDITS WILL BE OVERRIDDEN.\n"
+ " -->\n"
+ "<info>\n"
+ "<author>Cockatrice/Magic-Spoiler</author>\n"
#TODO, correct date format
+ "<createdAt>" + datetime.datetime.utcnow().strftime("%a, %b %d %Y, %H:%M:%S") + "</createdAt>\n"
+ "<sourceUrl>https://github.com/Cockatrice/Magic-Spoiler/blob/files/spoiler.xml</sourceUrl>\n"
#TODO, version schema
+ "<sourceVersion>???</sourceVersion>\n"
+ "</info>\n"
+ "<sets>\n"
)