mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 18:39:21 +02:00
Fix incorrect paths
This commit is contained in:
parent
8e9dc82190
commit
c070651a8d
2 changed files with 4 additions and 4 deletions
4
.github/workflows/daily-csv-upload.yaml
vendored
4
.github/workflows/daily-csv-upload.yaml
vendored
|
@ -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 }}
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue