mirror of
https://github.com/developersIndia/deviras.git
synced 2024-12-22 08:09:49 +05:30
strip extra space from title
This commit is contained in:
parent
2df84308dd
commit
1dad8740e6
@ -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"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user