Skip to content

Commit

Permalink
No need to decode json now.
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 18, 2024
1 parent 59aad25 commit c3a6b97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ena-submission/scripts/trigger_submission_to_ena.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def trigger_submission_to_ena(log_level, config_file, input_file=None):
)

if response.ok:
file_info = response.json()
sequences_to_upload = json.loads(base64.b64decode(file_info["content"]).decode("utf-8"))
sequences_to_upload = response.json()
else:
error_msg = f"Failed to retrieve file: {response.status_code}"
logger.error(error_msg)
Expand Down

0 comments on commit c3a6b97

Please sign in to comment.