Programmatically get barcode

This commit is contained in:
augustin64 2023-12-05 16:51:44 +01:00
parent 4b8fe23789
commit 4819c7dfcd
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ authorization = "Bearer ..."
cookies = "didomi_token=...; euconsent-v2=...; sticky__authentication=...; _dd_s=..."
customer_name = "Dupont"
# Discord Webhooks
error_url = "https://discord.com/api/webhooks/..."

View File

@ -77,7 +77,7 @@ def confirm_all(s, headers):
if datetime.fromisoformat(travel.departureDateTime) >= now:
print(travel)
print(travel.travelConfirmed)
if (travel.travelConfirmed != "CONFIRMED" and travel.travelConfirmed != "TOO_EARLY_TO_CONFIRM"):
if (travel.travelConfirmed == "TO_BE_CONFIRMED"):
travel.confirm(s, headers)
if check_confirmed(travel, s, headers):
utils.successDiscord(travel)