Skip to content

Commit

Permalink
Updates from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-weinberg committed Aug 17, 2023
1 parent 0562797 commit 2901ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def generate_data_dashboard_link(sz):
color = sz['color']
stop1 = sz['fr_id']
stop2 = sz['to_id']
start = (datetime.strptime(sz['start'], '%Y-%m-%dT%H:%M:%SZ') - timedelta(days=14)).strftime('%Y-%m-%d')
start = (datetime.strptime(sz['start'], '%Y-%m-%dT%H:%M:%S') - timedelta(days=14)).strftime('%Y-%m-%d')
end = sz['end'].split('T')[0]
link = f"https://dashboard.transitmatters.org/rapidtransit?config={color},{stop1},{stop2},{start},{end}"
logging.debug(f"Generated Data Dashboard link: {link}")
Expand Down

0 comments on commit 2901ee7

Please sign in to comment.