Drop update now displays campaign progress too

This commit is contained in:
DevilXD committed 2021-12-16 19:09:38 +01:00
1 parent 38365ab3f0
commit f41ef63f85
1 file changed
+3 -3
+3 -3
View File
@@ -354,13 +354,13 @@ class WebsocketPool:
return return
drop.update(message) drop.update(message)
msg_type = message["type"] msg_type = message["type"]
campaign = drop.campaign
if msg_type == "drop-progress": if msg_type == "drop-progress":
print( print(
f"Drop: {drop.rewards_text()}: {drop.progress:6.1%} " f"Drop: {drop.rewards_text()} ({campaign.claimed_drops}/{campaign.total_drops}): "
f"({drop.remaining_minutes} minutes remaining)" f"{drop.progress:6.1%} ({drop.remaining_minutes} minutes remaining)"
) )
elif msg_type == "drop-claim": elif msg_type == "drop-claim":
campaign = drop.campaign
await drop.claim() await drop.claim()
print( print(
f"Claimed drop: {drop.rewards_text()} " f"Claimed drop: {drop.rewards_text()} "