Skip to content

Commit

Permalink
use existing translated string, and translate when user requests remi…
Browse files Browse the repository at this point in the history
…nder for patient without an outstanding questionnaire
  • Loading branch information
pbugni committed Jan 30, 2025
1 parent e5c6102 commit 50b398f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/views/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def patient_reminder_email(user_id):
as_of_date=datetime.utcnow())
if qstats.overall_status not in (
OverallStatus.due, OverallStatus.overdue, OverallStatus.in_progress):
raise BadRequest('No questionnaires available for patient to complete')
raise BadRequest(_('No questionnaire is due.'))

qbd = qstats.current_qbd()
if qbd:
Expand Down

0 comments on commit 50b398f

Please sign in to comment.