File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from onebusaway import OnebusawaySDK
6
6
7
- # Load settings from .en`v file, if it exists. If not, we'll use the
7
+ # Load settings from .env file, if it exists. If not, we'll use the
8
8
# Puget Sound server URL (which is also the default in the SDK) and
9
9
# the 'TEST' API key.
10
10
settings = load_settings (
27
27
28
28
# make it easy to look up routes by ID.
29
29
reference_map = {}
30
- for route in references .routes :
31
- reference_map [route .id ] = route
30
+ for ref_route in references .routes :
31
+ reference_map [ref_route .id ] = ref_route
32
32
33
33
for stop in stops :
34
34
print (f"{ stop .name } ({ stop .lat } , { stop .lon } )" )
39
39
route : Any = reference_map [route_id ]
40
40
41
41
# Get a string that looks like "D Line - Blue Ridge/Crown Hill - Ballard - Downtown Seattle"
42
- description = [route .null_safe_short_name , route .description ]
43
- description = [e for e in description if e ]
44
- description = " - " .join (description )
45
- print (f" { description } " )
42
+ description_list = [route .null_safe_short_name , route .description ]
43
+ description_list = [e for e in description_list if e ]
44
+ description_str = " - " .join (description_list )
45
+ print (f" { description_str } " )
You can’t perform that action at this time.
0 commit comments