Spaces:
Sleeping
Sleeping
elfsong
commited on
Commit
·
e92d416
1
Parent(s):
de9fc43
Update
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def get_SMRT_train_arrival(station_code):
|
|
| 114 |
|
| 115 |
|
| 116 |
# stops = get_all_stops()
|
| 117 |
-
|
| 118 |
{
|
| 119 |
"caption": "COM 3",
|
| 120 |
"name": "COM3",
|
|
@@ -157,7 +157,7 @@ nus_stops = [
|
|
| 157 |
},
|
| 158 |
]
|
| 159 |
|
| 160 |
-
|
| 161 |
{
|
| 162 |
'name': "Opp HMK",
|
| 163 |
'code': "16061"
|
|
@@ -175,6 +175,7 @@ public_mrt_station = [
|
|
| 175 |
}
|
| 176 |
]
|
| 177 |
|
|
|
|
| 178 |
st.write(
|
| 179 |
"""
|
| 180 |
<style>
|
|
@@ -187,7 +188,7 @@ st.write(
|
|
| 187 |
)
|
| 188 |
|
| 189 |
# NUS Stops
|
| 190 |
-
for stop_info in
|
| 191 |
shuttle_info = get_nus_bus_arrival(stop_info['name'])
|
| 192 |
|
| 193 |
buses = list()
|
|
@@ -214,7 +215,7 @@ for stop_info in nus_stops:
|
|
| 214 |
cols[i+1].metric(bus['plate'], bus["shuttle_name"], str(bus["eta"]))
|
| 215 |
|
| 216 |
# Public Bus
|
| 217 |
-
for stop_info in
|
| 218 |
bus_info = get_lta_bus_arrival(stop_info['code'])
|
| 219 |
buses = list()
|
| 220 |
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
# stops = get_all_stops()
|
| 117 |
+
nus_bus_stops = [
|
| 118 |
{
|
| 119 |
"caption": "COM 3",
|
| 120 |
"name": "COM3",
|
|
|
|
| 157 |
},
|
| 158 |
]
|
| 159 |
|
| 160 |
+
public_bus_stops = [
|
| 161 |
{
|
| 162 |
'name': "Opp HMK",
|
| 163 |
'code': "16061"
|
|
|
|
| 175 |
}
|
| 176 |
]
|
| 177 |
|
| 178 |
+
# Hack the CSS to hide the delta icon
|
| 179 |
st.write(
|
| 180 |
"""
|
| 181 |
<style>
|
|
|
|
| 188 |
)
|
| 189 |
|
| 190 |
# NUS Stops
|
| 191 |
+
for stop_info in nus_bus_stops:
|
| 192 |
shuttle_info = get_nus_bus_arrival(stop_info['name'])
|
| 193 |
|
| 194 |
buses = list()
|
|
|
|
| 215 |
cols[i+1].metric(bus['plate'], bus["shuttle_name"], str(bus["eta"]))
|
| 216 |
|
| 217 |
# Public Bus
|
| 218 |
+
for stop_info in public_bus_stops:
|
| 219 |
bus_info = get_lta_bus_arrival(stop_info['code'])
|
| 220 |
buses = list()
|
| 221 |
|