From 4819c7dfcd99810b898d42c50ae4a79049d1ac68 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Tue, 5 Dec 2023 16:51:44 +0100 Subject: [PATCH] Programmatically get barcode --- src/example_config.py | 1 + src/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/example_config.py b/src/example_config.py index 4e737f9..5bf16ef 100644 --- a/src/example_config.py +++ b/src/example_config.py @@ -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/..." diff --git a/src/main.py b/src/main.py index 426f14c..724a483 100644 --- a/src/main.py +++ b/src/main.py @@ -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)