Adjust for rounding errors
This commit is contained in:
@@ -97,10 +97,10 @@ class ActiveSubathon:
|
|||||||
async def get_remaining(self) -> int:
|
async def get_remaining(self) -> int:
|
||||||
"""
|
"""
|
||||||
Number of seconds remaining on the subathon timer.
|
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()
|
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):
|
async def get_ending(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user