Skip to content

Commit

Permalink
Fix error multiple DicomWeb includefield paraemeters
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebic committed Jan 2, 2025
1 parent c2f31f5 commit a1f25dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion adit/dicom_web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _extract_query_parameters(
for key, value in request.GET.items():
assert isinstance(value, str)
if key == "includefield":
query[value] = ""
continue
else:
query[key] = value

Expand All @@ -82,6 +82,7 @@ def _extract_query_parameters(
limit_results = int(query.pop("limit"))

query_ds = QueryDataset.from_dict(query)
query_ds.ensure_elements(*request.GET.getlist('includefield'))
return query_ds, limit_results


Expand Down
2 changes: 1 addition & 1 deletion adit/selective_transfer/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def _make_query(self, form: SelectiveTransferJobForm, message_id: int) ->
except (DicomError, RetriableDicomError):
form_error_response = await self._build_form_error_response(
form,
"Something went wrong at your requested source."
"Something went wrong at your requested source. "
"A Dicom Error has occured at the source.",
)
await self.send(form_error_response)
Expand Down

0 comments on commit a1f25dd

Please sign in to comment.