mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Another approach
This commit is contained in:
parent
9c05dcde44
commit
90282c7cdc
2 changed files with 19 additions and 23 deletions
|
@ -3,7 +3,6 @@ import os
|
|||
from django.apps import apps
|
||||
from django.views.decorators.http import require_http_methods
|
||||
from django.http import FileResponse, HttpResponse, JsonResponse
|
||||
|
||||
import requests
|
||||
|
||||
from login_required import login_not_required
|
||||
|
@ -107,7 +106,6 @@ def get_current_federal(request):
|
|||
file_path = "migrationdata/current-federal.csv"
|
||||
return serve_file(file_path)
|
||||
|
||||
|
||||
def serve_file(file_path):
|
||||
"""Downloads a file based on a given filepath. Returns a 404 if not found."""
|
||||
if os.path.exists(file_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue