pkoers / Agora

Application to help streamline the handling of flights operated by a wet lease company within the company operations.
GNU General Public License v3.0
1 stars 0 forks source link

Flight numbers below 1000 cause an issue #22

Closed pkoers closed 1 year ago

pkoers commented 1 year ago

When the flight number is below 1000, the 'origin' and 'destination' are incorrectly read.

2023-07-12T06:42:23.067 app[4d89047c663e18] ams [info] Received email from {:token=>"dcsfm-no-reply", :host=>"amadeus.com", :email=>"dcsfm-no-reply@amadeus.com", :full=>"Altea Flight Management <dcsfm-no-reply@amadeus.com>", :name=>"Altea Flight Management"} with subject 'KL953 / 12JUL / AMSNCL - ACARS Final Loadsheet (Extended) Edno 1' and attachment 'KL953 12JUL AMSNCL - ACARS Final Loadsheet (Extended) Edno 1.txt'

2023-07-12T06:42:23.067 app[4d89047c663e18] ams [info] Origin MSN

2023-07-12T06:42:23.067 app[4d89047c663e18] ams [info] Destination CL

In the code, I need to check the length of validate the size of the flight number in order to read the origin/destination correctly.

pkoers commented 1 year ago

Fix verified in LE