Currently flight data is pulled by getting history data for the current month (previous 14 days). There is an error condition where there are still flights not yet captured at the end of the previous month, that will cause early month data to be lost and vice versa.
For example:
date_last_ran is set as October 29th. The code is ran on November 3rd with October as the target month. Only the October data will be captured, and the date_last_ran will be updated to November 3rd. All of the flight data for Nov 1st-3rd is now lost unless you manually reset the date_last_ran back to the Nov 1st in the database.
Currently flight data is pulled by getting history data for the current month (previous 14 days). There is an error condition where there are still flights not yet captured at the end of the previous month, that will cause early month data to be lost and vice versa.
For example: date_last_ran is set as October 29th. The code is ran on November 3rd with October as the target month. Only the October data will be captured, and the date_last_ran will be updated to November 3rd. All of the flight data for Nov 1st-3rd is now lost unless you manually reset the date_last_ran back to the Nov 1st in the database.