Skip to content

Commit 60c18c2

Browse files
fix: student price only based on the presence of student card (#833)
### Description Please explain the changes you made here. ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] All tests passing - [ ] Extended the documentation, if necessary
1 parent 55d1b94 commit 60c18c2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/modules/raid/endpoints_raid.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,10 +1132,7 @@ async def get_payment_url(
11321132
raise HTTPException(status_code=404, detail="Participant not found.")
11331133

11341134
if not participant.payment:
1135-
if (
1136-
participant.student_card is not None
1137-
and participant.student_card.validation == DocumentValidation.accepted
1138-
):
1135+
if participant.student_card is not None:
11391136
price += raid_prices.student_price
11401137
checkout_name = "Inscription Raid - Tarif étudiant"
11411138
else:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "AEECL ECLAIR" }]
66

77
# Hyperion follows Semantic Versioning
88
# https://semver.org/
9-
version = "4.8.0"
9+
version = "4.8.1"
1010
minimal-titan-version-code = 139
1111
requires-python = ">= 3.11, < 3.13"
1212

0 commit comments

Comments
 (0)