def detection_station_list(event, params):
    """
    Returns station list with only stations with detections.
    """
    all_stations = params['main', 'stations']
    unique_stations = set([x['station']['station'] for x in event])
    unique_stations_list = []
    for station in all_stations:
        if station['station'] in unique_stations:
            unique_stations_list.append(station)

    return unique_stations_list