Minor syntax simplification

This commit is contained in:
DevilXD committed 2024-09-11 16:13:06 +02:00
1 parent 9e3ae85fa5
commit 84d0dc1045
1 file changed
+1 -3
+1 -3
View File
@@ -210,15 +210,13 @@ class TimedDrop(BaseDrop):
@property @property
def total_remaining_minutes(self) -> int: def total_remaining_minutes(self) -> int:
return ( return sum(
sum(
( (
self.campaign.timed_drops[pid].remaining_minutes self.campaign.timed_drops[pid].remaining_minutes
for pid in self._all_preconditions for pid in self._all_preconditions
), ),
start=self.remaining_minutes, start=self.remaining_minutes,
) )
)
@cached_property @cached_property
def progress(self) -> float: def progress(self) -> float: