Adjust for rounding errors

This commit is contained in:
2025-09-24 09:40:56 +10:00
parent a82b58b2c4
commit 0c4b2bfe32

View File

@@ -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):
"""