Skip to content

Commit

Permalink
json_dump_loads
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB authored and BinamB committed Apr 30, 2020
1 parent 4f3068f commit 56fa282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexd/index/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def post_bundle():
bundle_id=bundle_id,
name=name,
size=size,
bundle_data=str(bundle_data),
bundle_data=json.dumps(bundle_data),
checksum=checksum,
)

Expand Down
3 changes: 2 additions & 1 deletion indexd/index/drivers/alchemy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime
import uuid
import json
import hashlib
from contextlib import contextmanager
from cdislogging import get_logger
Expand Down Expand Up @@ -275,7 +276,7 @@ def to_document_dict(self, expand):
}

if expand:
bundle_data = eval(self.bundle_data)
bundle_data = json.loads(self.bundle_data)
ret["bundle_data"] = bundle_data

return ret
Expand Down

0 comments on commit 56fa282

Please sign in to comment.