From 17825090cf8c248e467b96673cd7cc2f0ebe868a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 11 Aug 2025 23:37:12 +0200 Subject: [PATCH] Update notification channel --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3d791d7..491d182 100644 --- a/main.py +++ b/main.py @@ -11,6 +11,7 @@ BASE_URL = "https://www.nightjet.com" BASE_DIR = "out" CSV_LOWEST_FILE = f"{BASE_DIR}/lowest.csv" CSV_ALL_PRICES_PATTERN = f"{BASE_DIR}/%%DATE%%_all_prices.csv" +NOTIFICATION_CHANNEL="nightjet-price-notifier" def dprint(txt) -> None: @@ -226,7 +227,7 @@ def main(): # if the price changed, add it to lowest prices if not previous or new.price != previous.price: dprint(f"PRICE CHANGE. {previous} -> {new}") - notify_user(previous or Price("", "", 0.0), new, "alerta-alerta-pichi-133") + notify_user(previous or Price("", "", 0.0), new, NOTIFICATION_CHANNEL) add_to_csv(new)