"""Logic for retrieving feeds.""" from ddtrace import tracer from oto import response as oto_response from analytics.utils.data_availability import ( get_feeds_with_outages, get_feeds_with_outages_v2, ) @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) def get_feeds_v2(): """Return feeds available to the user, and their details. Returns: oto.response.Response with feeds. """ feeds = get_feeds_with_outages_v2() return oto_response.Response(feeds)