From 580ecca0bda94d8e16c73a6349074b6073409f36 Mon Sep 17 00:00:00 2001 From: Eric Dasmalchi Date: Thu, 14 Sep 2023 15:13:23 -0700 Subject: [PATCH] fix speedmap links --- reports/generate_rt_feeds.py | 4 ++-- reports/test_emails.csv | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/reports/generate_rt_feeds.py b/reports/generate_rt_feeds.py index 8a7c8093c..804f3a973 100644 --- a/reports/generate_rt_feeds.py +++ b/reports/generate_rt_feeds.py @@ -49,7 +49,7 @@ def get_speedmap_urls(): html = response.content results = {} for line in html.decode("utf-8").split("\n"): - if "reference internal' href='/rt/district" not in line: + if "reference internal' href='/district" not in line: continue href = line.split("href='")[-1].split("'")[0] if "itp_id_" not in href or "__speedmaps__district_" not in line: @@ -58,7 +58,7 @@ def get_speedmap_urls(): if not itp_id.isdigit(): print(f"WARNING: skipping url because itp_id is not a number: {itp_id}") continue - results[int(itp_id)] = f"https://analysis.calitp.org{href}" + results[int(itp_id)] = f"https://rt--cal-itp-data-analyses.netlify.app{href}" return results diff --git a/reports/test_emails.csv b/reports/test_emails.csv index e69b539e6..559b7ddc4 100644 --- a/reports/test_emails.csv +++ b/reports/test_emails.csv @@ -1,4 +1,3 @@ First Name,Last Name,Main Email,Company name,ITP_ID -Charles,Costanzo,charlie.c@jarv.us,Los Angeles County Metropolitan Transportation Authority,182 Olivia,Ramacier,olivia@compiler.la,Los Angeles County Metropolitan Transportation Authority,182 Eric,Dasmalchi,eric.dasmalchi@dot.ca.gov,Los Angeles County Metropolitan Transportation Authority,182