Skip to content

Commit

Permalink
revert previous, add text meta_data
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Jun 28, 2023
1 parent 27463e3 commit 868dc10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oda_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,10 @@ def from_response_json(cls, res_json, instrument, product):

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

Check warning on line 1284 in oda_api/api.py

View check run for this annotation

Codecov / codecov/patch

oda_api/api.py#L1283-L1284

Added lines #L1283 - L1284 were not covered by tests
'value': json.loads(text_data)['value'],
'meta_data': json.loads(text_data)['meta_data']}
for text_data in res_json['products']['text_product_list']])
except:
data.extend([text_data

Check warning on line 1289 in oda_api/api.py

View check run for this annotation

Codecov / codecov/patch

oda_api/api.py#L1288-L1289

Added lines #L1288 - L1289 were not covered by tests
for text_data in res_json['products']['text_product_list']])
Expand Down

0 comments on commit 868dc10

Please sign in to comment.