Compare commits

..

No commits in common. "282d02d00077ea92dc209ca74a34a53ca5adf677" and "bcd06481675ac0fe8711f15a886e3a139d5a4c5e" have entirely different histories.

2 changed files with 5 additions and 11 deletions

View File

@ -73,7 +73,7 @@ def get_post_data(reddit, post_url):
submission.created_utc submission.created_utc
).isoformat(), ).isoformat(),
"flair_text": submission.link_flair_text, "flair_text": submission.link_flair_text,
"author": submission.author.name if submission.author else "", "author": submission.author.name,
} }
return post return post
@ -154,12 +154,8 @@ def main():
update_gist(gist_id, "collection.json", json.dumps(collection_json, indent=4)) update_gist(gist_id, "collection.json", json.dumps(collection_json, indent=4))
print("Internal database updated successfully!") print("Internal database updated successfully!")
update_wiki(reddit, "community-threads", posts) update_wiki(reddit, "community-threads", posts)
if new_post["author"]: send_message(reddit, new_post["author"], new_post["url"])
send_message(reddit, new_post["author"], new_post["url"]) print("Message sent to the author!")
print("Message sent to the author!")
else:
print("Author username is empty. No message sent.")
else: else:
print("Post is already in the collection. No changes were made.") print("Post is already in the collection. No changes were made.")

View File

@ -28,13 +28,11 @@ def create_showcase_sunday_megathread(subreddit):
title = "Showcase Sunday Megathread - {month} {year}".format(month=datetime.date.today().strftime("%B"), year=datetime.date.today().year) title = "Showcase Sunday Megathread - {month} {year}".format(month=datetime.date.today().strftime("%B"), year=datetime.date.today().year)
text = """ text = """
It's time for our monthly showcase thread where we celebrate the incredible talent in our community. Whether it's an app, a website, a tool, or anything else you've built, we want to see it! Share your latest creations, side projects, or even your work-in-progress. Ask for feedback, and help each other out. It's time for our monthly showcase thread where we celebrate the incredible talent in our community. Whether it's an app, a website, a tool, or anything else you've built, we want to see it! Share your latest creations, side projects, or even your work-in-progress.
Let's inspire each other and celebrate the diverse skills we have. Comment below with details about what you've built, the tech stack used, and any interesting challenges faced along the way. Let's inspire each other and celebrate the diverse skills we have. Comment below with details about what you've built, the tech stack used, and any interesting challenges faced along the way.
### [Looking for more projects built by developersIndia community members?](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22I%20Made%20This%20%3Asnoo_wink%3A%22) **Showcase Sunday thread is posted on the second Sunday of every month. You can find the [schedule on our calendar](https://developersindia.in/events-calendar).**
**Showcase Sunday thread is posted on the second Sunday of every month. You can find the [schedule on our calendar](https://developersindia.in/events-calendar). You can also find past [showcase sunday megathreads here](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22Showcase%20Sunday%20%3Asnoo_hearteyes%3A%22)**.
""" """
submission = subreddit.submit( submission = subreddit.submit(