"""Logic for retrieving feeds.""" from ddtrace import tracer from oto import response as oto_response from sound_recordings.models.data_availability import get_feeds_with_outages @tracer.wrap(name="get_feeds") def get_feeds(): """Return feeds available to the user, and their details. Returns: oto.response.Response with feeds. """ feeds = get_feeds_with_outages() return oto_response.Response(feeds)