strip extra space from title

This commit is contained in:
Bhupesh-V 2024-04-13 18:24:49 +05:30
parent 2df84308dd
commit 1dad8740e6
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ def main():
new_post = get_post_data(reddit, args.post_url)
if new_post["id"] not in saved_collection_ids:
new_post["title"] = new_post["title"].strip()
posts.append(new_post)
posts = sorted(posts, key=lambda k: k["created_at"])