smartbutnot / flightportal

Project for displaying the details of planes overhead on an Adafruit MatrixPortal and LED matrix
263 stars 23 forks source link

Flight Portal does not display airport information correctly when airport has a hyphen in the name #13

Closed Cobra800089 closed 1 year ago

Cobra800089 commented 1 year ago

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.

Cobra800089 commented 1 year ago

Just realizing I haven't updated my code on my portal in a while and this issue may have been fixed. Will update my flight portal and double check.