mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-29 06:26:13 +02:00
14 lines
353 B
Python
14 lines
353 B
Python
from services.data_fetcher import fetch_airports, fetch_flights, cached_airports, latest_data
|
|
|
|
fetch_airports()
|
|
|
|
# We patch logger to see what happens inside fetch_flights
|
|
import logging
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
# let's run fetch_flights
|
|
fetch_flights()
|
|
|
|
flights = latest_data.get('flights', [])
|
|
print(f"Total flights: {len(flights)}")
|