Skip to content

Commit e65e94b

Browse files
committed
Minor fix and sonar bits and bobs
1 parent 0085718 commit e65e94b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/authorisation/authoriser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def filter_permitted_vacc_types(
6565
types that they cannot interact with without throwing an error"""
6666
supplier_permissions = self._get_supplier_permissions(supplier_system)
6767

68-
return set([
68+
return {
6969
vaccine_type
7070
for vaccine_type in vaccination_types
7171
if requested_operation in supplier_permissions.get(vaccine_type.lower(), [])
72-
])
72+
}

backend/src/fhir_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def search_immunizations(
324324
# TODO: is disease type a mandatory field? (I assumed it is)
325325
# i.e. Should we provide a search option for getting Patient's entire imms history?
326326
if not nhs_number_mod11_check(nhs_number):
327-
return create_diagnostics()
327+
return create_diagnostics(), False
328328

329329
permitted_vacc_types = self.authoriser.filter_permitted_vacc_types(
330330
supplier_system, ApiOperationCode.SEARCH, set(vaccine_types)

0 commit comments

Comments
 (0)