refactored code to place the booking specific actions inside a gestion-sports element
This commit is contained in:
parent
59e2271c1b
commit
1ec148e866
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ LOGGER = logging.getLogger(__name__)
|
|||
|
||||
class GestionSportsOperations:
|
||||
def __init__(self, club: Club):
|
||||
self.platform: GestionSportsConnector = None
|
||||
self.platform: GestionSportsConnector | None = None
|
||||
self.club: Club = club
|
||||
self.session: ClientSession | None = None
|
||||
|
||||
|
@ -30,7 +30,7 @@ class GestionSportsOperations:
|
|||
|
||||
await self.platform.land()
|
||||
await self.platform.login(user, self.club)
|
||||
self.wait_until_booking_time(self.club, booking_filter)
|
||||
wait_until_booking_time(self.club, booking_filter)
|
||||
return await self.platform.book(booking_filter, self.club)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue