Skip to content

Commit

Permalink
Merge pull request #280 from cal-itp/patch-speedmap-links-aug
Browse files Browse the repository at this point in the history
fix speedmap links
  • Loading branch information
edasmalchi authored Sep 15, 2023
2 parents 6860ee9 + 580ecca commit 2edd0ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions reports/generate_rt_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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


Expand Down
1 change: 0 additions & 1 deletion reports/test_emails.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
First Name,Last Name,Main Email,Company name,ITP_ID
Charles,Costanzo,[email protected],Los Angeles County Metropolitan Transportation Authority,182
Olivia,Ramacier,[email protected],Los Angeles County Metropolitan Transportation Authority,182
Eric,Dasmalchi,[email protected],Los Angeles County Metropolitan Transportation Authority,182

0 comments on commit 2edd0ff

Please sign in to comment.