Skip to content

Commit

Permalink
[Enhancement] Fix branch 13f
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaBri committed Dec 17, 2024
1 parent bac8206 commit 899777d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openbb_platform/providers/fmp/openbb_fmp/models/form_13FHR.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ async def aextract_data(
dates = await amake_request(date_url, response_callback=response_callback, **kwargs)
if not dates:
raise EmptyDataError("No data returned for the given symbol.")
if not dates or len(dates) == 0:
warn(f"Symbol Error: No data found for symbol {cik}")
results: List[Dict] = []

async def get_one(date):
Expand Down Expand Up @@ -134,4 +132,5 @@ def transform_data(
) -> List[FMPForm13FHRData]:
"""Return the transformed data."""
if query.symbol.isnumeric():
return [FMPForm13FHRData(**{k: v for k, v in d.items if k != "cik"}) for d in data]
return [FMPForm13FHRData(**{k: v for k, v in d.items() if k != "cik"}) for d in data]
return [FMPForm13FHRData(**d) for d in data]

0 comments on commit 899777d

Please sign in to comment.