upload.py: fix delayed analysis of flights