diff --git a/.github/workflows/daily-csv-upload.yaml b/.github/workflows/daily-csv-upload.yaml index 9c9bfacd8..d4cc0a700 100644 --- a/.github/workflows/daily-csv-upload.yaml +++ b/.github/workflows/daily-csv-upload.yaml @@ -72,12 +72,12 @@ jobs: CF_PASSWORD: CF_${{ needs.variables.outputs.environment }}_PASSWORD - name: Generate current-federal.csv - run: cf run-task getgov-${{ env.ENVIRONMENT }} "python manage.py generate_current_full_report.py" + run: cf run-task getgov-${{ env.ENVIRONMENT }} "python manage.py generate_current_full_report" env: ENVIRONMENT: ${{ needs.variables.outputs.environment }} - name: Generate current-full.csv - run: cf run-task getgov-${{ env.ENVIRONMENT }} "/tmp/lifecycle/shell -c './manage.py generate_current_federal_report.py'" + run: cf run-task getgov-${{ env.ENVIRONMENT }} "/tmp/lifecycle/shell -c './manage.py generate_current_federal_report'" env: ENVIRONMENT: ${{ needs.variables.outputs.environment }} diff --git a/src/api/views.py b/src/api/views.py index 9653a906e..594ba3f22 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -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):