refactored code to place the booking specific actions inside a gestion-sports element

This commit is contained in:
Stanislas Jouffroy 2024-02-21 23:47:32 +01:00
parent 59e2271c1b
commit 1ec148e866

View file

@ -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)