mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-09 23:12:03 +05:30
rename func
This commit is contained in:
parent
360e1aa292
commit
0161160431
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user