Skip to content

Commit

Permalink
Filter out ended contests in hackerrank
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk-rnjn committed Mar 29, 2024
1 parent 0c56042 commit 17e8366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cogs/rtfm/rtfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ async def kontest_hackerrank(self) -> list:
self.kontests_cache["hackerrank"] = hackerrank.contests

contests = self.kontests_cache["hackerrank"]
contests = [c for c in contests if not c.ended]

return [
f"""ID: *{contest.id}* | **[{contest.name}]({contest.url})** | {'ENDED' if contest.ended else 'UPCOMING/ONGOING'}
Expand Down

0 comments on commit 17e8366

Please sign in to comment.