From 0c4b2bfe3276aba1ad7553ddbab2683ca50e2d50 Mon Sep 17 00:00:00 2001 From: Interitio Date: Wed, 24 Sep 2025 09:40:56 +1000 Subject: [PATCH] Adjust for rounding errors --- subathon/subathon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subathon/subathon.py b/subathon/subathon.py index d4386ec..b412e9c 100644 --- a/subathon/subathon.py +++ b/subathon/subathon.py @@ -97,10 +97,10 @@ class ActiveSubathon: async def get_remaining(self) -> int: """ Number of seconds remaining on the subathon timer. - Will be 0 if finished. + Will be 0 or slightly negative if finished. """ total_time = await self.get_earned() - return total_time - await self.get_duration() + return total_time - await self.get_duration() - 1 async def get_ending(self): """