def _get_takeoff_locations(user): locations = Location.get_clustered_locations( Flight.takeoff_location_wkt, filter=and_(Flight.pilot == user, Flight.is_rankable()), ) return [loc.to_lonlat() for loc in locations]
def _get_takeoff_locations(user): locations = Location.get_clustered_locations( Flight.takeoff_location_wkt, filter=and_(Flight.pilot == user, Flight.is_rankable()), ) return [loc.to_lonlat() for loc in locations]
def _get_takeoff_locations(): return Location.get_clustered_locations(Flight.takeoff_location_wkt, filter=(Flight.pilot == g.user))
def _get_takeoff_locations(): return Location.get_clustered_locations( Flight.takeoff_location_wkt, filter=and_(Flight.pilot == g.user, Flight.is_rankable()))
def _get_takeoff_locations(): return Location.get_clustered_locations(Flight.takeoff_location_wkt, filter=and_( Flight.pilot == g.user, Flight.is_rankable()))