From 7ccb02d9c5adefccaa162bc2e8658a2fc044eb34 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 5 Nov 2023 13:46:07 +0000 Subject: [PATCH] Increase cache time for GWR advance ticket date --- agenda/gwr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenda/gwr.py b/agenda/gwr.py index 6697bfd..992c69f 100644 --- a/agenda/gwr.py +++ b/agenda/gwr.py @@ -27,7 +27,7 @@ def extract_weekday_date(html: str) -> date | None: return datetime.strptime(date_str, "%A %d %B %Y").date() -def advance_tickets_page_html(data_dir: str, ttl: int = 3600) -> str: +def advance_tickets_page_html(data_dir: str, ttl: int = 60 * 60 * 6) -> str: """Get advance-tickets web page HTML with cache.""" filename = os.path.join(data_dir, "advance-tickets.html") url = "https://www.gwr.com/your-tickets/choosing-your-ticket/advance-tickets"