shtuff
This commit is contained in:
@@ -98,6 +98,18 @@ class BusSequences extends InfoModule {
|
||||
|
||||
print("Loaded ${routes.length} routes");
|
||||
|
||||
// Remove any empty routes
|
||||
List<String> emptyRoutes = [];
|
||||
for (String routeNumber in routes.keys) {
|
||||
if (routes[routeNumber]!.routeVariants.isEmpty) {
|
||||
emptyRoutes.add(routeNumber);
|
||||
}
|
||||
}
|
||||
|
||||
for (String routeNumber in emptyRoutes) {
|
||||
routes.remove(routeNumber);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -225,6 +237,7 @@ class BusRouteStop {
|
||||
|
||||
// Replace space with underscore
|
||||
stopName = stopName.replaceAll(' ', '_');
|
||||
stopName = stopName.replaceAll('-', '_');
|
||||
|
||||
// convert to all caps
|
||||
stopName = stopName.toUpperCase();
|
||||
@@ -263,6 +276,7 @@ class BusDestination {
|
||||
|
||||
// Replace space with underscore
|
||||
name = name.replaceAll(' ', '_');
|
||||
name = name.replaceAll('-', '_');
|
||||
|
||||
// convert to all caps
|
||||
name = name.toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user