Skip to content

Commit 101b529

Browse files
committed
🐛 fix: handle case for no announcements
1 parent e9a454f commit 101b529

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

aoc/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def main():
6060

6161
leaderboard_data = get_leaderboard_data()
6262
formatted_stats = format_leaderboard(leaderboard_data)
63-
print(formatted_stats)
6463
update_reddit_post(reddit, reddit_post_id, formatted_stats)
6564

6665
if __name__ == "__main__":

community-roundup/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def create_community_roundup_post(
154154
**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
155155
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
156156
"""
157+
text = ""
157158

158159
if len(announcement_posts) > 0:
159160
text = "## Announcements\n|Announcements from volunteer team|\n|--------|\n"

0 commit comments

Comments
 (0)