ABle to send the booking request to several courts at the same time
This commit is contained in:
parent
fcc08f03f1
commit
51af600d28
11 changed files with 288 additions and 99 deletions
|
@ -1,7 +1,21 @@
|
|||
import logging.config
|
||||
import os
|
||||
|
||||
import pendulum
|
||||
import yaml
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
GESTION_SPORTS_URL = "https://toulousepadelclub.gestion-sports.com"
|
||||
USER = os.environ.get("USER")
|
||||
PASSWORD = os.environ.get("PASSWORD")
|
||||
CLUB_ID = os.environ.get("CLUB_ID")
|
||||
_court_ids = os.environ.get("COURT_IDS") or ""
|
||||
COURT_IDS = [int(court_id) for court_id in _court_ids.split(",")] if _court_ids else []
|
||||
SPORT_ID = int(os.environ.get("SPORT_ID"))
|
||||
DATE_TIME = pendulum.parse(os.environ.get("DATE_TIME"))
|
||||
|
||||
|
||||
def init_log_config():
|
||||
|
@ -11,12 +25,3 @@ def init_log_config():
|
|||
with open(logging_file, "r") as f:
|
||||
logging_config = yaml.safe_load(f.read())
|
||||
logging.config.dictConfig(logging_config)
|
||||
|
||||
|
||||
GESTION_SPORTS_URL = "https://toulousepadelclub.gestion-sports.com"
|
||||
USER = os.environ.get("USER")
|
||||
PASSWORD = os.environ.get("PASSWORD")
|
||||
CLUB_ID = os.environ.get("CLUB_ID")
|
||||
COURT_ID = os.environ.get("COURT_ID")
|
||||
SPORT_ID = os.environ.get("SPORT_ID")
|
||||
DATE_TIME = os.environ.get("DATE_TIME")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue