fix problems with socials

This commit is contained in:
2025-10-22 10:00:22 +02:00
parent 6ff2fcc2a7
commit bd19c1491a
3 changed files with 12 additions and 7 deletions

View File

@@ -23,13 +23,13 @@ SUBREDDITS = [
def extract_post(post: Submission) -> SocialPost:
social = SocialPost()
social.set_timestamp(timestamp_ms=post.created)
social.set_timestamp(timestamp_s=post.created)
social.title = post.title
social.description = post.selftext
for top_comment in post.comments:
comment = SocialComment()
comment.set_timestamp(timestamp_ms=top_comment.created)
comment.set_timestamp(timestamp_s=top_comment.created)
comment.description = top_comment.body
social.comments.append(comment)