diff --git a/check.py b/check.py index 7dd2d34..fc8d10c 100755 --- a/check.py +++ b/check.py @@ -89,7 +89,7 @@ def load_previous_dates() -> set[str]: return set() -def save_dates(dates: list[date]): +def save_dates(dates: list[date]) -> None: """Save current dates to file as ISO strings.""" DATA_DIR.mkdir(parents=True, exist_ok=True) with open(DATA_FILE, "w") as f: @@ -113,7 +113,11 @@ def send_email(new_dates: list[date], config: configparser.ConfigParser) -> None """Send email with new dates.""" email_config = config["mail"] subject = "New Ferrocarril Central Dates Available!" - body = "New dates found:\n" + "\n".join(d.strftime("%d %B %Y") for d in new_dates) + body = ( + "New dates found:\n" + + "\n".join(d.strftime("%d %B %Y") for d in new_dates) + + f"\n\n{URL}" + ) msg = MIMEText(body) msg["Subject"] = subject