mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-08 13:42:34 +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)
|
new_post = get_post_data(reddit, args.post_url)
|
||||||
if new_post["id"] not in saved_collection_ids:
|
if new_post["id"] not in saved_collection_ids:
|
||||||
|
new_post["title"] = new_post["title"].strip()
|
||||||
posts.append(new_post)
|
posts.append(new_post)
|
||||||
posts = sorted(posts, key=lambda k: k["created_at"])
|
posts = sorted(posts, key=lambda k: k["created_at"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user