Compare commits
No commits in common. "327a79479d80dc7c1760f32887b7f07723529d66" and "4cfa13f24807311ce2ce924eadb16e6d8607dcb9" have entirely different histories.
327a79479d
...
4cfa13f248
|
@ -91,7 +91,7 @@ def main():
|
||||||
item["id"] = post.id
|
item["id"] = post.id
|
||||||
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://reddit.com{post.permalink:}"
|
||||||
item["time"] = post.created_utc
|
item["time"] = 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)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "intake-praw"
|
name = "intake-praw"
|
||||||
version = "1.0.2"
|
version = "1.0.1"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
intake-praw = "intake_praw.core:main"
|
intake-praw = "intake_praw.core:main"
|
||||||
|
|
|
@ -180,7 +180,7 @@ def main():
|
||||||
|
|
||||||
# Link
|
# Link
|
||||||
if post_link := post_data.get("permalink"):
|
if post_link := post_data.get("permalink"):
|
||||||
item["link"] = f"https://old.reddit.com{post_link}"
|
item["link"] = f"https://reddit.com{post_link}"
|
||||||
|
|
||||||
# TTL
|
# TTL
|
||||||
item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8)
|
item["ttl"] = SORT_TTL.get(sub_sort, 60 * 60 * 24 * 8)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "intake-reddit"
|
name = "intake-reddit"
|
||||||
version = "1.0.1"
|
version = "1.0.0"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
intake-reddit = "intake_reddit.core:main"
|
intake-reddit = "intake_reddit.core:main"
|
||||||
|
|
Loading…
Reference in New Issue