From 101b529307bb52863eb42d4c6df7f2d59defd434 Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Tue, 31 Dec 2024 22:06:21 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20handle=20case=20for=20no?= =?UTF-8?q?=20announcements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aoc/main.py | 1 - community-roundup/main.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/aoc/main.py b/aoc/main.py index b19fae1..d474d74 100644 --- a/aoc/main.py +++ b/aoc/main.py @@ -60,7 +60,6 @@ def main(): leaderboard_data = get_leaderboard_data() formatted_stats = format_leaderboard(leaderboard_data) - print(formatted_stats) update_reddit_post(reddit, reddit_post_id, formatted_stats) if __name__ == "__main__": diff --git a/community-roundup/main.py b/community-roundup/main.py index 50e62bf..a8695ee 100644 --- a/community-roundup/main.py +++ b/community-roundup/main.py @@ -154,6 +154,7 @@ def create_community_roundup_post( **Community Roundup is posted on the last day of each month. To explore a compilation of all interesting posts and community threads over time, [visit our wiki](https://www.reddit.com/r/developersIndia/wiki/community-threads/).**\n The collection is curated by our volunteer team & is independent of the number of upvotes and comments (except for "I made This" posts). If you believe we may have overlooked any engaging posts or discussions, please share them with us via [modmail](https://reddit.com/message/compose?to=r/developersIndia&subject=Community%20Threads%20Collection%20Suggestion&message=Hey%20folks%2C%0A%0A%3Cpost%20link%3E).\n """ + text = "" if len(announcement_posts) > 0: text = "## Announcements\n|Announcements from volunteer team|\n|--------|\n"