Fixed a bug with the timer misbehaving when displaying full hours

This commit is contained in:
DevilXD committed 2022-01-08 11:04:54 +01:00
1 parent 15d127bedd
commit c5f840e23b
1 file changed
+1 -1
+1 -1
View File
@@ -390,9 +390,9 @@ class CampaignProgress:
@staticmethod
def _divmod(minutes: int, seconds: int) -> Tuple[int, int]:
hours, minutes = divmod(minutes, 60)
if seconds < 60 and minutes > 0:
minutes -= 1
hours, minutes = divmod(minutes, 60)
return (hours, minutes)
def _update_time(self, seconds: int):