Skip to content

Commit

Permalink
collect_many_bds empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Elter committed Nov 25, 2021
1 parent 8590f7e commit 31604a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/blp/blp.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,10 @@ def collect_many_to_bds(self, responses) -> Dict:
sec_dict = res.get(security, {})
for field in response["data"]:
data = response["data"][field]
rows = sec_dict.get(field, [])
rows.extend(data)
sec_dict[field] = rows
if data:
rows = sec_dict.get(field, [])
rows.extend(data)
sec_dict[field] = rows
res[security] = sec_dict
for s in res:
for f in res[s]:
Expand Down

0 comments on commit 31604a4

Please sign in to comment.