Increase cache time for GWR advance ticket date
This commit is contained in:
parent
a9c71afb97
commit
7ccb02d9c5
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue