Cleaning up the code - renaming routes to trains as it makes more sense (each isntance is an instance of an individual train)

Reworking the MTA to be ready for use by people other than me.
This commit is contained in:
Lucas
2022-02-25 18:39:17 -05:00
parent 9919eed55b
commit e12079fbde
7 changed files with 89 additions and 82 deletions

View File

@@ -86,7 +86,7 @@ if __name__ == "__main__":
async def mta_callback(routes):
global subway_data, old_data, last_updated
subway_data = link_to_station(mtaController.convert_routes_to_station_first(routes))
subway_data = link_to_station(mtaController.station_info_from_routes(routes))
subway_data["LastUpdated"] = last_updated
if old_data is None:
old_data = subway_data