JBecquer / KC-Flying-Club-Plane-Tracker

Generate a map of FCKC airplane tracks.
MIT License
0 stars 0 forks source link

date_last_ran drops data when working across different months #17

Open JBecquer opened 2 years ago

JBecquer commented 2 years ago

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.

JBecquer commented 1 year ago

This issue will also happen with year crossover, 2022 going into 2023. This condition will need to be addressed as well.