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
+4
@@ -1130,6 +1130,10 @@ class InventoryOverview:
|
||||
progress_text = "Ready to claim ⏳"
|
||||
progress_color = "goldenrod"
|
||||
elif drop.preconditions:
|
||||
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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user