mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-10 06:14:36 +00:00
Drop claim minutes fix
This commit is contained in:
@@ -102,6 +102,12 @@ class TimedDrop(BaseDrop):
|
||||
def progress(self) -> float:
|
||||
return self.current_minutes / self.required_minutes
|
||||
|
||||
async def claim(self) -> bool:
|
||||
result = await super().claim()
|
||||
if result:
|
||||
self.current_minutes = self.required_minutes
|
||||
return result
|
||||
|
||||
def update_claim(self, claim_id: str):
|
||||
self.claim_id = claim_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user