Script cleanup / prepare for PR

This commit is contained in:
zandercymatics 2023-11-27 12:41:26 -07:00
parent a188137988
commit f40e71ca8b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 11 additions and 49 deletions

View file

@ -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"))