From 016116043107cecdaa30f15adb451f4408618ece Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Sun, 14 Jan 2024 14:54:34 +0530 Subject: [PATCH] rename func --- community-roundup/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community-roundup/main.py b/community-roundup/main.py index 3615cc6..7b5062e 100644 --- a/community-roundup/main.py +++ b/community-roundup/main.py @@ -29,7 +29,7 @@ def get_gist_content(gist_id): return gist["files"][filename]["content"] -def get_last_month_posts(): +def get_monthly_roundup(): saved_collection_posts = json.loads(get_gist_content(gist_id)) return saved_collection_posts @@ -76,7 +76,7 @@ def main(): subreddit = reddit.subreddit(sub) if is_last_day_of_month(): - posts = get_last_month_posts() + posts = get_monthly_roundup() create_community_roundup_post(subreddit, posts) print("Community Roundup post created successfully!") else: