Fix incorrect paths

This commit is contained in:
zandercymatics 2023-11-22 13:12:08 -07:00
parent 8e9dc82190
commit c070651a8d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 4 additions and 4 deletions

View file

@ -95,14 +95,14 @@ def available(request, domain=""):
@login_not_required
def get_current_full(request):
# Open the CSV file
file_path = './migrationData/current-full.csv'
file_path = '../migrationdata/current-full.csv'
return serve_file(file_path)
@require_http_methods(["GET"])
@login_not_required
def get_current_federal(request):
# Open the CSV file
file_path = './migrationData/current-federal.csv'
file_path = '../migrationdata/current-federal.csv'
return serve_file(file_path)
def serve_file(file_path):