From c8e524c6d31ab8ae8eb12dc595f3ecca20445920 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Jul 2021 11:45:54 +0200 Subject: map link: highlight requested stop --- bin/nvm | 2 ++ templates/departure_list.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/nvm b/bin/nvm index e6c973a..6bb82b3 100755 --- a/bin/nvm +++ b/bin/nvm @@ -154,6 +154,8 @@ class Departure: self.stop_name = obj.get("stop", dict()).get("name", None) self.station_name = obj.get("station", dict()).get("name", self.stop_name) + self.quoted_stop_name = aiohttp.helpers.quote(self.stop_name) + try: self.location = ( obj["stop"]["location"]["longitude"], diff --git a/templates/departure_list.html b/templates/departure_list.html index dea886c..de7b48d 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -15,7 +15,7 @@ {% endif %}