From de310ea7f4258a22d06dc072678ea66c8df2d3ec Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Thu, 21 Sep 2023 02:51:04 -0700 Subject: [PATCH] Hotfix/fix-quandl-regression (#5461) * fix quandl regression * Update cot_search.py * return`List[QuandlCotSearchData]` in Fetcher --------- Co-authored-by: Pratyush Shukla --- .../providers/quandl/openbb_quandl/models/cot_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py b/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py index 1a13976a541..fd04edd987f 100644 --- a/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py +++ b/openbb_sdk/providers/quandl/openbb_quandl/models/cot_search.py @@ -22,7 +22,7 @@ class QuandlCotSearchData(CotSearchData): """Quandl CFTC Commitment of Traders Reports Search data.""" -class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, QuandlCotSearchData]): +class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, List[QuandlCotSearchData]]): """Quandl CFTC Commitment of Traders Reports Search Fetcher.""" @staticmethod @@ -53,5 +53,5 @@ class QuandlCotSearchFetcher(Fetcher[CotSearchQueryParams, QuandlCotSearchData]) @staticmethod def transform_data( data: List[Dict], - ) -> QuandlCotSearchData: - return QuandlCotSearchData.parse_obj(data[0]) + ) -> List[QuandlCotSearchData]: + return [QuandlCotSearchData(**d) for d in data]