Skip to content

Commit

Permalink
more general "text_data"
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Jun 28, 2023
1 parent 7d8f292 commit 27463e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions oda_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,9 +1281,8 @@ def from_response_json(cls, res_json, instrument, product):

if 'text_product_list' in res_json['products'].keys():
try:
data.extend([{'name': json.loads(text_data)['name'],
'value': json.loads(text_data)['value']}
for text_data in res_json['products']['text_product_list']])
data.extend([json.loads(text_data)
for text_data in res_json['products']['text_product_list']])
except:
data.extend([text_data
for text_data in res_json['products']['text_product_list']])
Expand Down

0 comments on commit 27463e3

Please sign in to comment.