intake-praw: fix time not being an int

This commit is contained in:
Tim Van Baak 2025-02-21 16:40:55 +00:00
parent c3ca076f03
commit a0ebec1a78
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ def main():
item["title"] = f"/{post.subreddit_name_prefixed}: {post.title}" item["title"] = f"/{post.subreddit_name_prefixed}: {post.title}"
item["author"] = f"/u/{post.author.name}" if post.author else "[deleted]" item["author"] = f"/u/{post.author.name}" if post.author else "[deleted]"
item["link"] = f"https://old.reddit.com{post.permalink:}" item["link"] = f"https://old.reddit.com{post.permalink:}"
item["time"] = post.created_utc item["time"] = int(post.created_utc)
item["tags"] = list(tags) item["tags"] = list(tags)
item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8) item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8)

View File

@ -1,6 +1,6 @@
[project] [project]
name = "intake-praw" name = "intake-praw"
version = "1.1.0" version = "1.1.1"
[project.scripts] [project.scripts]
intake-praw = "intake_praw.core:main" intake-praw = "intake_praw.core:main"