mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
Script cleanup / prepare for PR
This commit is contained in:
parent
a188137988
commit
f40e71ca8b
4 changed files with 11 additions and 49 deletions
|
@ -107,6 +107,7 @@ def get_current_federal(request):
|
|||
|
||||
def serve_file(file_path):
|
||||
"""Downloads a file based on a given filepath. Returns a 404 if not found."""
|
||||
# TODO - #1403, grab from the S3 instance instead
|
||||
if os.path.exists(file_path):
|
||||
# Serve the CSV file
|
||||
response = FileResponse(open(file_path, "rb"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue