From 7419fee0bd9a01f31d979456a2a497c3c046e301 Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Sun, 25 Feb 2024 14:30:58 +0530 Subject: [PATCH] fix the year count in threads wiki --- community-threads/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community-threads/main.py b/community-threads/main.py index c91d952..806c273 100644 --- a/community-threads/main.py +++ b/community-threads/main.py @@ -75,7 +75,7 @@ def update_wiki(reddit, wikipage, posts): wiki_header = """# A collection of must read discussions started by community members""" content = wiki_header + "\n\n" - content += f"A handpicked collection of **{total_posts}** interesting posts, discussions & high-quality threads gathered over **{total_years}** years & counting.\n\n" + content += f"A handpicked collection of **{total_posts}** interesting posts, discussions & high-quality threads gathered over **{total_years-1}** years & counting.\n\n" content += "If you spot a post that could be in this list, send us a [modmail](https://reddit.com/message/compose?to=r/developersIndia&subject=Community%20Threads%20Collection%20Suggestion&message=Hey%20folks%2C%0A%0A%3Cpost%20link%3E)\n\n" for year in sorted(posts_by_year.keys(), reverse=True):