Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreex committed May 7, 2021
1 parent 27f7e74 commit ff37280
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions fence/blueprints/data/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ def download_file(file_id):
"""
Get a presigned url to download a file given by file_id.
"""
print("#### In download route #####")
result = get_signed_url_for_file("download", file_id)
print(f"Result : {result}")
if not "redirect" in flask.request.args or not "url" in result:
return flask.jsonify(result)
return flask.redirect(result["url"])
1 change: 0 additions & 1 deletion fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ def get_signed_url(
self, action, expires_in, public_data=False, force_signed_url=True, **kwargs
):

print("AWS SIGNED URL")
aws_creds = get_value(
config, "AWS_CREDENTIALS", InternalError("credentials not configured")
)
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff37280

Please sign in to comment.