Skip to content

Commit

Permalink
Merge pull request #580 from rcpch/mbarton/upload-to-previous-audit-year
Browse files Browse the repository at this point in the history
Upload to previous audit year
  • Loading branch information
mbarton authored Feb 9, 2025
2 parents 548b298 + 8e9117a commit 3d0507d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions project/npda/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
refresh_session_object_asynchronously,
)
from ..general_functions.view_preference import get_or_update_view_preference
from ..general_functions.audit_period import get_current_audit_year

# RCPCH imports
from .decorators import login_and_otp_required
Expand Down Expand Up @@ -87,7 +86,7 @@ async def home(request):
)
return redirect("home")

audit_year = get_current_audit_year()
audit_year = request.session.get("selected_audit_year")

# CSV is valid, parse any errors and store the data in the tables.
errors_by_row_index = await csv_upload(
Expand Down

0 comments on commit 3d0507d

Please sign in to comment.