Spaces:
Sleeping
Sleeping
elfsong
commited on
Commit
·
d99c80d
1
Parent(s):
e269391
Update
Browse files
app.py
CHANGED
@@ -139,13 +139,13 @@ st.write(
|
|
139 |
)
|
140 |
|
141 |
|
142 |
-
|
143 |
for stop_info in stops:
|
144 |
shuttle_info = get_bus_arrival(stop_info['name'])
|
145 |
|
146 |
buses = list()
|
147 |
|
148 |
for shuttle in shuttle_info:
|
|
|
149 |
for bus in shuttle["_etas"]:
|
150 |
plate = bus["plate"]
|
151 |
eta = bus["eta"]
|
|
|
139 |
)
|
140 |
|
141 |
|
|
|
142 |
for stop_info in stops:
|
143 |
shuttle_info = get_bus_arrival(stop_info['name'])
|
144 |
|
145 |
buses = list()
|
146 |
|
147 |
for shuttle in shuttle_info:
|
148 |
+
if shuttle["_etas"] is None: continue
|
149 |
for bus in shuttle["_etas"]:
|
150 |
plate = bus["plate"]
|
151 |
eta = bus["eta"]
|