1
0
forked from Hay1tsme/artemis

wacca: fix user/music/unlock error when using tickets.

This commit is contained in:
Hay1tsme 2023-05-22 12:24:16 -04:00
parent 4da8622977
commit 5ddfb88182

View File

@ -93,13 +93,10 @@ class UserMusicUnlockRequest(BaseRequest):
class UserMusicUnlockResponse(BaseResponse): class UserMusicUnlockResponse(BaseResponse):
def __init__(self, current_wp: int = 0, tickets_remaining: List = []) -> None: def __init__(self, current_wp: int = 0, tickets_remaining: List[TicketItem] = []) -> None:
super().__init__() super().__init__()
self.wp = current_wp self.wp = current_wp
self.tickets: List[TicketItem] = [] self.tickets = tickets_remaining
for ticket in tickets_remaining:
self.tickets.append(TicketItem(ticket[0], ticket[1], ticket[2]))
def make(self) -> Dict: def make(self) -> Dict:
tickets = [] tickets = []