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:
1 parent
98f5f7bc69
commit
0d0c9d89d1
1 file changed
+5
-1
@@ -1130,7 +1130,11 @@ class InventoryOverview:
|
|||||||
progress_text = "Ready to claim ⏳"
|
progress_text = "Ready to claim ⏳"
|
||||||
progress_color = "goldenrod"
|
progress_color = "goldenrod"
|
||||||
elif drop.preconditions:
|
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)
|
return (progress_text, progress_color)
|
||||||
|
|
||||||
def update_drop(self, drop: TimedDrop) -> None:
|
def update_drop(self, drop: TimedDrop) -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user