fix 500 error

master
Aevann 2022-12-22 23:56:29 +02:00
parent 9da1287c6e
commit ad34c7df3f
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
from datetime import datetime
import datetime
from yattag import Doc
@ -48,12 +48,12 @@ def feeds_user(sort='hot', t='all'):
with tag("updated"):
if (post.edited_utc):
text(datetime.utcfromtimestamp(post.edited_utc).isoformat()+"Z")
text(datetime.datetime.utcfromtimestamp(post.edited_utc).isoformat()+"Z")
else:
text(datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z")
text(datetime.datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z")
with tag("published"):
text(datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z")
text(datetime.datetime.utcfromtimestamp(post.created_utc).isoformat()+"Z")
with tag("author"):
with tag("name"):