We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950e552 commit 281b221Copy full SHA for 281b221
classes/repositories/subject_repository.py
@@ -244,11 +244,11 @@ def there_is_letter_batch_for_subject(
244
sql_query = """ SELECT lb.batch_id
245
FROM lett_batch_records lbr
246
INNER JOIN lett_batch lb
247
- ON lb.batch_id = lbr.batch_id
+ ON lb.batch_id = lbr.batch_id
248
INNER JOIN valid_values ld
249
- ON ld.valid_value_id = lb.description_id
+ ON ld.valid_value_id = lb.description_id
250
INNER JOIN valid_values lbs
251
- ON lbs.valid_value_id = lb.status_id
+ ON lbs.valid_value_id = lb.status_id
252
WHERE lb.batch_state_id = 12018
253
AND lbr.screening_subject_id = :subject_id
254
AND lbs.allowed_value = :batch_code
0 commit comments