Update notification channel

This commit is contained in:
Marty Oehme 2025-08-11 23:37:12 +02:00
parent f704d4dd02
commit 17825090cf
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

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