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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user