Commit 97da636f authored by berumuron's avatar berumuron
Browse files

fix: Always set a updated item in Atom feed

parent e4612f49
......@@ -44,9 +44,10 @@ class Atom:
timespec="seconds"
)
if "updated" in attributes:
ET.SubElement(entry, "updated").text = attributes["updated"].isoformat(
timespec="seconds"
)
updated = attributes["updated"]
else:
updated = attributes["published"]
ET.SubElement(entry, "updated").text = updated.isoformat(timespec="seconds")
ET.SubElement(entry, "content", type="html").text = attributes["content"]
def write(self, filepath):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment