Drops that haven't started yet within an active campaign;

are now labeled as Upcoming instead of showing unobtainable progress
This commit is contained in:
DevilXD committed 2022-08-08 21:45:22 +02:00
1 parent 98f5f7bc69
commit 0d0c9d89d1
1 file changed
+5 -1
+5 -1
View File
@@ -1130,7 +1130,11 @@ class InventoryOverview:
progress_text = "Ready to claim ⏳"
progress_color = "goldenrod"
elif drop.preconditions:
progress_text = f"{drop.progress:3.1%} of {drop.required_minutes} minutes"
if drop.starts_at > datetime.now(timezone.utc):
progress_text = "Upcoming ⏳"
progress_color = "goldenrod"
else:
progress_text = f"{drop.progress:3.1%} of {drop.required_minutes} minutes"
return (progress_text, progress_color)
def update_drop(self, drop: TimedDrop) -> None: