Since the airport name is getting split on the hyphen, if one of the airports has a hyphen in its name the split happens incorrectly. I'm trying to find one of the airports that had this problem but having trouble finding it at the moment. Will update the issue when I get one.
I believe the issue is caused by these 2 lines: https://github.com/smartbutnot/flightportal/blob/main/code.py#L326-L327
Since the airport name is getting split on the hyphen, if one of the airports has a hyphen in its name the split happens incorrectly. I'm trying to find one of the airports that had this problem but having trouble finding it at the moment. Will update the issue when I get one.